multichatbot
v1.0.0
Published
A Node.js Package Multi AI chatbot wrapper for GPT, Gemini and DeepSeek
Maintainers
Readme
ChatbotAI
Chatbot is a lightweight Node.js package that provides a unified interface for working with multiple AI providers in a single project.
The goal is simple: write once, switch AI providers without refactoring your logic.
No framework. No hidden magic. No forced conversation handling. You stay in control.
Overview
Currently supported AI providers:
- OpenAI GPT
- Google Gemini
- DeepSeek (OpenAI-compatible API)
Designed for:
- Chatbots
- CLI tools
- Code generators
- Developer assistants
Installation
Install from npm:
npm install chatbot
For local development:
npm link
Requirements
- Node.js 18 or higher
- ES Module environment
- Valid API keys for the AI providers you use
If your project does not use ES Modules yet, add this to your package.json:
{ "type": "module" }
Package Structure
chatbot/ ├─ package.json ├─ index.js ├─ README.md └─ src/ ├─ gemini.js ├─ gpt.js └─ deepseek.js
Importing
import chatbot from "chatbot";
Each AI provider is isolated. No shared state. No side effects.
Gemini
Set API key:
chatbot.Gemini.SetApiKey("GEMINI_API_KEY");
Set model (optional):
chatbot.Gemini.SetModel("gemini-2.5-flash");
If not set, the default model is used.
Send a prompt:
const result = await chatbot.Gemini.Send("What is Luau?"); console.log(result);
OpenAI GPT
Set API key:
chatbot.GPT.SetOpenAIApiKey("OPENAI_API_KEY");
Set model (optional):
chatbot.GPT.SetModel("gpt-4.1");
Default model is gpt-4o-mini.
Send a prompt:
const result = await chatbot.GPT.Send("Write a Lua function to sum numbers"); console.log(result);
DeepSeek
DeepSeek uses an OpenAI-compatible API. It works with the same request format, only the base URL and model change.
Set API key:
chatbot.DeepSeek.SetApiKey("DEEPSEEK_API_KEY");
Set model (optional):
chatbot.DeepSeek.SetModel("deepseek-chat");
Default model is deepseek-chat.
Send a prompt:
const result = await chatbot.DeepSeek.Send("Write Lua code to handle a table"); console.log(result);
DeepSeek Models
Commonly used DeepSeek models:
deepseek-chat
General-purpose chat model.
deepseek-coder
Optimized for programming, code generation, and refactoring.
deepseek-coder-instruct
Strict instruction-following model for automated tools.
Example:
chatbot.DeepSeek.SetModel("deepseek-coder");
API Design Philosophy
- API keys are set once
- Models are optional
- Send always works after API key setup
- No conversation history management
- No prompt mutation
- No output formatting
This package does one thing only: send text to an AI and return text.
Why This Package Exists
- Avoid rewriting AI wrappers for every project
- Switch AI providers in seconds
- Keep dependencies minimal
- Maintain full control over prompts and output
Roadmap
- chatbot.Use("gemini" | "gpt" | "deepseek")
- Unified chatbot.Send()
- Preset modes for Lua, Luau, JavaScript
- Streaming responses
- Official CLI tool
License
MIT License
Free to use, modify, and distribute. No warranty provided.
