Features 🌟
- OpenAI GPT-5 with advanced reasoning capabilities.
- Control reasoning depth with effort levels:
minimal,low,medium,high. - Model Context Protocol (MCP) integration: connect to external tools and data sources.
Code 🤖
GPT-5 with reasoning:
const { Chatbot, ChatGPTInput } = require('intellinode');
const bot = new Chatbot(openaiKey);
const input = new ChatGPTInput('You are a helpful assistant.', {
model: 'gpt-5',
effort: 'high' // minimal, low, medium, high
});
input.addUserMessage('Explain quantum computing');
const responses = await bot.chat(input);MCP:
const { MCPClient, Chatbot, ChatGPTInput } = require('intellinode');
// Connect to MCP server
const mcpClient = new MCPClient('http://localhost:3000');
await mcpClient.initialize();
// Use tools with your chatbot
const toolsContext = mcpClient.listTools()
.map(t => `- ${t.name}: ${t.description}`)
.join('\n');
const input = new ChatGPTInput('You are an assistant with access to tools');
input.addSystemMessage(`Available tools:\n${toolsContext}`);