unified-ai-router 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -7
- package/readme.md +2 -0
- package/vercel-project/api/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unified-ai-router",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "A unified interface for multiple LLM providers with automatic fallback
|
|
3
|
+
"version": "2.3.3",
|
|
4
|
+
"description": "A unified interface for multiple LLM providers with automatic fallback, featuring an OpenAI-compatible server, tool support, and a deployable Telegram bot.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "mlibre",
|
|
7
7
|
"type": "commonjs",
|
|
@@ -12,23 +12,24 @@
|
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"ai",
|
|
15
|
+
"telegram-bot",
|
|
16
|
+
"openai-compatible",
|
|
17
|
+
"openai-compatible-server",
|
|
15
18
|
"llm",
|
|
19
|
+
"fallback",
|
|
20
|
+
"load-balancing",
|
|
16
21
|
"openai",
|
|
17
22
|
"gemini",
|
|
18
23
|
"chatgpt",
|
|
19
24
|
"router",
|
|
20
|
-
"fallback",
|
|
21
|
-
"load-balancing",
|
|
22
25
|
"multi-provider",
|
|
23
26
|
"langchain",
|
|
24
27
|
"artificial-intelligence",
|
|
25
|
-
"machine-learning",
|
|
26
28
|
"grok",
|
|
27
29
|
"openrouter",
|
|
28
30
|
"cohere",
|
|
29
31
|
"vercel",
|
|
30
|
-
"cerebras"
|
|
31
|
-
"telegram-bot"
|
|
32
|
+
"cerebras"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@langchain/openai": "^1.0.0-alpha.1",
|
package/readme.md
CHANGED
|
@@ -208,6 +208,8 @@ After deploying the bot, you need to configure the Telegram Mini App and menu bu
|
|
|
208
208
|
|
|
209
209
|
Once configured, users can access the Mini App by sending `/start` or `/app` to your bot, or through the menu button.
|
|
210
210
|
|
|
211
|
+
An example of a deployed bot is accessible on Telegram: [https://t.me/freePulseAIbot](https://t.me/freePulseAIbot)
|
|
212
|
+
|
|
211
213
|
## 📁 Project Structure
|
|
212
214
|
|
|
213
215
|
* `main.js` - The core AIRouter library.
|
|
@@ -52,7 +52,7 @@ module.exports = async ( req, res ) =>
|
|
|
52
52
|
// Use your existing AI Router with the full message history
|
|
53
53
|
const aiResponse = await telegramClient.aiRouter.chatCompletion( messages );
|
|
54
54
|
|
|
55
|
-
return res.status( 200 ).json({ response: aiResponse });
|
|
55
|
+
return res.status( 200 ).json({ response: aiResponse.content });
|
|
56
56
|
|
|
57
57
|
}
|
|
58
58
|
catch ( error )
|