feat(openai): add chat streaming and model commands

- add /openai (/chatgpt) chat command using OpenAI Responses API (streaming + incremental edits)
- add /openAIListModels, /openAIGetModel, /openAISetModel
- introduce base Command class and migrate non-chat commands to it
- wire OpenAI client + env vars (OPENAI_API_KEY, OPENAI_MODEL)
- bump deps (@google/genai, systeminformation, @types/node) and add openai
This commit is contained in:
2026-02-03 13:39:01 +03:00
parent 810151263d
commit a736f786c2
58 changed files with 512 additions and 211 deletions
+4 -3
View File
@@ -8,7 +8,7 @@
"bun:start": "bun run dist/index.js"
},
"dependencies": {
"@google/genai": "^1.38.0",
"@google/genai": "^1.39.0",
"@libsql/client": "^0.17.0",
"@mistralai/mistralai": "^1.13.0",
"@napi-rs/canvas": "^0.1.89",
@@ -17,19 +17,20 @@
"drizzle-orm": "^1.0.0-beta.12-5845444",
"emoji-regex": "^10.6.0",
"ollama": "^0.6.3",
"openai": "^6.17.0",
"puppeteer": "^24.36.1",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"qrcode": "^1.5.4",
"sharp": "^0.34.5",
"systeminformation": "^5.30.6",
"systeminformation": "^5.30.7",
"twemoji": "^14.0.2",
"typescript-telegram-bot-api": "^0.11.0",
"youtubei.js": "^16.0.1"
},
"devDependencies": {
"@types/bun": "^1.3.8",
"@types/node": "^25.1.0",
"@types/node": "^25.2.0",
"@types/qrcode": "^1.5.6",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",