@oh-my-pi/pi-ai 15.6.0 → 15.7.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-ai",
4
- "version": "15.6.0",
4
+ "version": "15.7.1",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@anthropic-ai/sdk": "^0.99.0",
42
42
  "@bufbuild/protobuf": "^2.12.0",
43
- "@oh-my-pi/pi-utils": "15.6.0",
43
+ "@oh-my-pi/pi-utils": "15.7.1",
44
44
  "openai": "^6.39.0",
45
45
  "partial-json": "^0.1.7",
46
46
  "zod": "4.4.3"
@@ -10,119 +10,127 @@ import type {
10
10
  } from "./types";
11
11
 
12
12
  const builtInOAuthProviders: OAuthProviderInfo[] = [
13
+ // Most popular coding subscriptions / gateways.
14
+ {
15
+ id: "openai-codex",
16
+ name: "ChatGPT Plus/Pro (Codex Subscription)",
17
+ available: true,
18
+ },
13
19
  {
14
20
  id: "anthropic",
15
21
  name: "Anthropic (Claude Pro/Max)",
16
22
  available: true,
17
23
  },
18
24
  {
19
- id: "alibaba-coding-plan",
20
- name: "Alibaba Coding Plan",
25
+ id: "zai",
26
+ name: "Z.AI (GLM Coding Plan)",
21
27
  available: true,
22
28
  },
23
29
  {
24
- id: "openai-codex",
25
- name: "ChatGPT Plus/Pro (Codex Subscription)",
30
+ id: "kimi-code",
31
+ name: "Kimi Code",
26
32
  available: true,
27
33
  },
28
34
  {
29
- id: "openai-codex-device",
30
- name: "ChatGPT Plus/Pro (Codex, headless/device)",
35
+ id: "openrouter",
36
+ name: "OpenRouter",
31
37
  available: true,
32
38
  },
39
+ // Other coding subscriptions & first-party assistants.
33
40
  {
34
- id: "gitlab-duo",
35
- name: "GitLab Duo",
41
+ id: "github-copilot",
42
+ name: "GitHub Copilot",
36
43
  available: true,
37
44
  },
38
45
  {
39
- id: "kimi-code",
40
- name: "Kimi Code",
46
+ id: "cursor",
47
+ name: "Cursor (Claude, GPT, etc.)",
41
48
  available: true,
42
49
  },
43
50
  {
44
- id: "kilo",
45
- name: "Kilo Gateway",
51
+ id: "google-antigravity",
52
+ name: "Antigravity (Gemini 3, Claude, GPT-OSS)",
46
53
  available: true,
47
54
  },
48
55
  {
49
- id: "kagi",
50
- name: "Kagi",
56
+ id: "google-gemini-cli",
57
+ name: "Google Cloud Code Assist (Gemini CLI)",
51
58
  available: true,
52
59
  },
53
60
  {
54
- id: "cerebras",
55
- name: "Cerebras",
61
+ id: "openai-codex-device",
62
+ name: "ChatGPT Plus/Pro (Codex, headless/device)",
56
63
  available: true,
57
64
  },
58
65
  {
59
- id: "deepseek",
60
- name: "DeepSeek",
66
+ id: "xai-oauth",
67
+ name: "xAI Grok OAuth (SuperGrok Subscription)",
61
68
  available: true,
62
69
  },
63
70
  {
64
- id: "fireworks",
65
- name: "Fireworks",
71
+ id: "gitlab-duo",
72
+ name: "GitLab Duo",
66
73
  available: true,
67
74
  },
68
75
  {
69
- id: "firepass",
70
- name: "Fire Pass (Fireworks Kimi K2.6 Turbo subscription)",
76
+ id: "alibaba-coding-plan",
77
+ name: "Alibaba Coding Plan",
71
78
  available: true,
72
79
  },
73
80
  {
74
- id: "github-copilot",
75
- name: "GitHub Copilot",
81
+ id: "zhipu-coding-plan",
82
+ name: "Zhipu Coding Plan (智谱)",
76
83
  available: true,
77
84
  },
78
85
  {
79
- id: "google-gemini-cli",
80
- name: "Google Cloud Code Assist (Gemini CLI)",
86
+ id: "qwen-portal",
87
+ name: "Qwen Portal",
81
88
  available: true,
82
89
  },
83
90
  {
84
- id: "google-antigravity",
85
- name: "Antigravity (Gemini 3, Claude, GPT-OSS)",
91
+ id: "minimax-code",
92
+ name: "MiniMax Coding Plan (International)",
86
93
  available: true,
87
94
  },
88
95
  {
89
- id: "cursor",
90
- name: "Cursor (Claude, GPT, etc.)",
96
+ id: "minimax-code-cn",
97
+ name: "MiniMax Coding Plan (China)",
91
98
  available: true,
92
99
  },
93
100
  {
94
- id: "litellm",
95
- name: "LiteLLM",
101
+ id: "xiaomi",
102
+ name: "Xiaomi MiMo",
96
103
  available: true,
97
104
  },
98
105
  {
99
- id: "lm-studio",
100
- name: "LM Studio (Local OpenAI-compatible)",
106
+ id: "firepass",
107
+ name: "Fire Pass (Fireworks Kimi K2.6 Turbo subscription)",
101
108
  available: true,
102
109
  },
103
110
  {
104
- id: "ollama",
105
- name: "Ollama (Local OpenAI-compatible)",
111
+ id: "wafer-pass",
112
+ name: "Wafer Pass (flat-rate subscription)",
106
113
  available: true,
107
114
  },
115
+ // Direct model-provider APIs (pay-as-you-go inference).
108
116
  {
109
- id: "ollama-cloud",
110
- name: "Ollama Cloud",
117
+ id: "deepseek",
118
+ name: "DeepSeek",
111
119
  available: true,
112
120
  },
113
121
  {
114
- id: "huggingface",
115
- name: "Hugging Face Inference",
122
+ id: "moonshot",
123
+ name: "Moonshot (Kimi API)",
116
124
  available: true,
117
125
  },
118
126
  {
119
- id: "synthetic",
120
- name: "Synthetic",
127
+ id: "cerebras",
128
+ name: "Cerebras",
121
129
  available: true,
122
130
  },
123
131
  {
124
- id: "tavily",
125
- name: "Tavily",
132
+ id: "fireworks",
133
+ name: "Fireworks",
126
134
  available: true,
127
135
  },
128
136
  {
@@ -131,118 +139,116 @@ const builtInOAuthProviders: OAuthProviderInfo[] = [
131
139
  available: true,
132
140
  },
133
141
  {
134
- id: "xiaomi",
135
- name: "Xiaomi MiMo",
136
- available: true,
137
- },
138
- {
139
- id: "opencode-zen",
140
- name: "OpenCode Zen",
142
+ id: "nvidia",
143
+ name: "NVIDIA",
141
144
  available: true,
142
145
  },
143
146
  {
144
- id: "opencode-go",
145
- name: "OpenCode Go",
147
+ id: "huggingface",
148
+ name: "Hugging Face Inference",
146
149
  available: true,
147
150
  },
148
151
  {
149
- id: "openrouter",
150
- name: "OpenRouter",
152
+ id: "perplexity",
153
+ name: "Perplexity (Pro/Max)",
151
154
  available: true,
152
155
  },
153
156
  {
154
- id: "zai",
155
- name: "Z.AI (GLM Coding Plan)",
157
+ id: "qianfan",
158
+ name: "Qianfan",
156
159
  available: true,
157
160
  },
158
161
  {
159
- id: "zhipu-coding-plan",
160
- name: "Zhipu Coding Plan (智谱)",
162
+ id: "venice",
163
+ name: "Venice",
161
164
  available: true,
162
165
  },
163
166
  {
164
- id: "minimax-code",
165
- name: "MiniMax Coding Plan (International)",
167
+ id: "synthetic",
168
+ name: "Synthetic",
166
169
  available: true,
167
170
  },
168
171
  {
169
- id: "minimax-code-cn",
170
- name: "MiniMax Coding Plan (China)",
172
+ id: "nanogpt",
173
+ name: "NanoGPT",
171
174
  available: true,
172
175
  },
173
176
  {
174
- id: "moonshot",
175
- name: "Moonshot (Kimi API)",
177
+ id: "wafer-serverless",
178
+ name: "Wafer Serverless (pay-as-you-go)",
176
179
  available: true,
177
180
  },
181
+ // Aggregator gateways / routers.
178
182
  {
179
- id: "nanogpt",
180
- name: "NanoGPT",
183
+ id: "vercel-ai-gateway",
184
+ name: "Vercel AI Gateway",
181
185
  available: true,
182
186
  },
183
187
  {
184
- id: "parallel",
185
- name: "Parallel",
188
+ id: "cloudflare-ai-gateway",
189
+ name: "Cloudflare AI Gateway",
186
190
  available: true,
187
191
  },
188
192
  {
189
- id: "perplexity",
190
- name: "Perplexity (Pro/Max)",
193
+ id: "litellm",
194
+ name: "LiteLLM",
191
195
  available: true,
192
196
  },
193
197
  {
194
- id: "nvidia",
195
- name: "NVIDIA",
198
+ id: "kilo",
199
+ name: "Kilo Gateway",
196
200
  available: true,
197
201
  },
198
202
  {
199
- id: "qwen-portal",
200
- name: "Qwen Portal",
203
+ id: "zenmux",
204
+ name: "ZenMux",
201
205
  available: true,
202
206
  },
203
207
  {
204
- id: "qianfan",
205
- name: "Qianfan",
208
+ id: "opencode-zen",
209
+ name: "OpenCode Zen",
206
210
  available: true,
207
211
  },
208
212
  {
209
- id: "venice",
210
- name: "Venice",
213
+ id: "opencode-go",
214
+ name: "OpenCode Go",
211
215
  available: true,
212
216
  },
217
+ // Search & tool providers.
213
218
  {
214
- id: "zenmux",
215
- name: "ZenMux",
219
+ id: "tavily",
220
+ name: "Tavily",
216
221
  available: true,
217
222
  },
218
223
  {
219
- id: "vllm",
220
- name: "vLLM (Local OpenAI-compatible)",
224
+ id: "kagi",
225
+ name: "Kagi",
221
226
  available: true,
222
227
  },
223
228
  {
224
- id: "cloudflare-ai-gateway",
225
- name: "Cloudflare AI Gateway",
229
+ id: "parallel",
230
+ name: "Parallel",
226
231
  available: true,
227
232
  },
233
+ // Local runtimes.
228
234
  {
229
- id: "vercel-ai-gateway",
230
- name: "Vercel AI Gateway",
235
+ id: "ollama",
236
+ name: "Ollama (Local OpenAI-compatible)",
231
237
  available: true,
232
238
  },
233
239
  {
234
- id: "xai-oauth",
235
- name: "xAI Grok OAuth (SuperGrok Subscription)",
240
+ id: "ollama-cloud",
241
+ name: "Ollama Cloud",
236
242
  available: true,
237
243
  },
238
244
  {
239
- id: "wafer-pass",
240
- name: "Wafer Pass (flat-rate subscription)",
245
+ id: "lm-studio",
246
+ name: "LM Studio (Local OpenAI-compatible)",
241
247
  available: true,
242
248
  },
243
249
  {
244
- id: "wafer-serverless",
245
- name: "Wafer Serverless (pay-as-you-go)",
250
+ id: "vllm",
251
+ name: "vLLM (Local OpenAI-compatible)",
246
252
  available: true,
247
253
  },
248
254
  ];