unified-ai-router 3.5.0 → 3.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/provider.js +40 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unified-ai-router",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "A unified interface for multiple LLM providers with automatic fallback. This project includes an OpenAI-compatible server and a deployable Telegram bot with a Mini App interface. It supports major providers like OpenAI, Google, Grok, and more, ensuring reliability and flexibility for your AI applications.",
5
5
  "license": "ISC",
6
6
  "author": "mlibre",
package/provider.js CHANGED
@@ -1,10 +1,21 @@
1
1
  module.exports = [
2
+ {
3
+ name: "qroq",
4
+ apiKey: [
5
+ process.env.QROQ_API_KEY,
6
+ process.env.QROQ_API_KEY_2,
7
+ process.env.QROQ_API_KEY_3
8
+ ],
9
+ model: "openai/gpt-oss-120b",
10
+ apiUrl: "https://api.groq.com/openai/v1",
11
+ },
2
12
  {
3
13
  name: "gemini_pro",
4
14
  apiKey: [
5
15
  process.env.GEMINI_API_KEY,
6
16
  process.env.GEMINI_API_KEY_2,
7
17
  process.env.GEMINI_API_KEY_3,
18
+ process.env.GEMINI_API_KEY_4,
8
19
  ],
9
20
  model: "gemini-2.5-pro",
10
21
  apiUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
@@ -14,10 +25,17 @@ module.exports = [
14
25
  apiKey: [
15
26
  process.env.CEREBRAS_API_KEY,
16
27
  process.env.CEREBRAS_API_KEY_2,
28
+ process.env.CEREBRAS_API_KEY_3,
17
29
  ],
18
30
  model: "gpt-oss-120b",
19
31
  apiUrl: "https://api.cerebras.ai/v1",
20
32
  },
33
+ {
34
+ name: "llm7",
35
+ apiKey: process.env.LLM7_API_KEY,
36
+ model: "deepseek-v3.1",
37
+ apiUrl: "https://api.llm7.io/v1",
38
+ },
21
39
  {
22
40
  name: "openrouter_qwen",
23
41
  apiKey: [
@@ -28,11 +46,11 @@ module.exports = [
28
46
  process.env.OPENROUTER_API_KEY_5,
29
47
  process.env.OPENROUTER_API_KEY_6
30
48
  ],
31
- model: "qwen/qwen3-coder:free",
49
+ model: "minimax/minimax-m2:free",
32
50
  apiUrl: "https://openrouter.ai/api/v1",
33
51
  },
34
52
  {
35
- name: "openrouter_glm",
53
+ name: "openrouter_qwen",
36
54
  apiKey: [
37
55
  process.env.OPENROUTER_API_KEY,
38
56
  process.env.OPENROUTER_API_KEY_2,
@@ -41,38 +59,40 @@ module.exports = [
41
59
  process.env.OPENROUTER_API_KEY_5,
42
60
  process.env.OPENROUTER_API_KEY_6
43
61
  ],
44
- model: "z-ai/glm-4.5-air:free",
62
+ model: "qwen/qwen3-coder:free",
45
63
  apiUrl: "https://openrouter.ai/api/v1",
46
64
  },
47
- {
48
- name: "qroq",
49
- apiKey: [
50
- process.env.QROQ_API_KEY,
51
- process.env.QROQ_API_KEY_2
52
- ],
53
- model: "openai/gpt-oss-120b",
54
- apiUrl: "https://api.groq.com/openai/v1",
55
- },
56
65
  {
57
66
  name: "gemini_flash",
58
67
  apiKey: [
59
68
  process.env.GEMINI_API_KEY,
60
69
  process.env.GEMINI_API_KEY_2,
61
70
  process.env.GEMINI_API_KEY_3,
71
+ process.env.GEMINI_API_KEY_4,
62
72
  ],
63
73
  model: "gemini-2.5-flash",
64
74
  apiUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
65
75
  },
76
+ {
77
+ name: "openrouter_glm",
78
+ apiKey: [
79
+ process.env.OPENROUTER_API_KEY,
80
+ process.env.OPENROUTER_API_KEY_2,
81
+ process.env.OPENROUTER_API_KEY_3,
82
+ process.env.OPENROUTER_API_KEY_4,
83
+ process.env.OPENROUTER_API_KEY_5,
84
+ process.env.OPENROUTER_API_KEY_6
85
+ ],
86
+ model: "z-ai/glm-4.5-air:free",
87
+ apiUrl: "https://openrouter.ai/api/v1",
88
+ },
66
89
  {
67
90
  name: "z.ai",
68
- apiKey: process.env.ZAI_API_KEY,
91
+ apiKey: [
92
+ process.env.ZAI_API_KEY,
93
+ process.env.ZAI_API_KEY_2
94
+ ],
69
95
  model: "glm-4.5-flash",
70
96
  apiUrl: "https://api.z.ai/api/paas/v4",
71
- },
72
- {
73
- name: "llm7", // does not support tool calling
74
- apiKey: process.env.LLM7_API_KEY,
75
- model: "gpt-o4-mini-2025-04-16",
76
- apiUrl: "https://api.llm7.io/v1",
77
- },
97
+ }
78
98
  ];