@diegopetrucci/pi-oracle 0.1.19 → 0.1.20
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/index.ts +24 -9
- package/package.json +5 -1
package/index.ts
CHANGED
|
@@ -231,7 +231,7 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
231
231
|
"MiniMaxAI/MiniMax-M2.5",
|
|
232
232
|
"Qwen/Qwen3-Coder-Next",
|
|
233
233
|
],
|
|
234
|
-
"kimi-coding": ["
|
|
234
|
+
"kimi-coding": ["k3", "kimi-for-coding", "kimi-for-coding-highspeed"],
|
|
235
235
|
minimax: ["MiniMax-M3", "MiniMax-M2.7-highspeed", "MiniMax-M2.7"],
|
|
236
236
|
"minimax-cn": ["MiniMax-M3", "MiniMax-M2.7-highspeed", "MiniMax-M2.7"],
|
|
237
237
|
mistral: [
|
|
@@ -359,17 +359,35 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
359
359
|
"z-ai/glm-5.2",
|
|
360
360
|
"z-ai/glm-5.1",
|
|
361
361
|
],
|
|
362
|
+
"qwen-token-plan": [
|
|
363
|
+
"qwen3.8-max-preview",
|
|
364
|
+
"qwen3.7-max",
|
|
365
|
+
"qwen3.7-plus",
|
|
366
|
+
"qwen3.6-plus",
|
|
367
|
+
"deepseek-v4-pro",
|
|
368
|
+
"glm-5.2",
|
|
369
|
+
"kimi-k2.7-code",
|
|
370
|
+
"minimax-m2.5",
|
|
371
|
+
],
|
|
372
|
+
"qwen-token-plan-cn": [
|
|
373
|
+
"qwen3.8-max-preview",
|
|
374
|
+
"qwen3.7-max",
|
|
375
|
+
"qwen3.7-plus",
|
|
376
|
+
"qwen3.6-plus",
|
|
377
|
+
"deepseek-v4-pro",
|
|
378
|
+
"glm-5.2",
|
|
379
|
+
"kimi-k2.7-code",
|
|
380
|
+
"minimax-m2.5",
|
|
381
|
+
],
|
|
362
382
|
together: [
|
|
363
383
|
"deepseek-ai/DeepSeek-V4-Pro",
|
|
364
384
|
"zai-org/GLM-5.2",
|
|
365
|
-
"zai-org/GLM-5.1",
|
|
366
385
|
"moonshotai/Kimi-K2.7-Code",
|
|
367
386
|
"moonshotai/Kimi-K2.6",
|
|
368
387
|
"Qwen/Qwen3.7-Max",
|
|
369
388
|
"Qwen/Qwen3.6-Plus",
|
|
370
389
|
"MiniMaxAI/MiniMax-M3",
|
|
371
390
|
"MiniMaxAI/MiniMax-M2.7",
|
|
372
|
-
"Qwen/Qwen3.5-397B-A17B",
|
|
373
391
|
"openai/gpt-oss-120b",
|
|
374
392
|
"openai/gpt-oss-20b",
|
|
375
393
|
"nvidia/nemotron-3-ultra-550b-a55b",
|
|
@@ -417,13 +435,8 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
417
435
|
],
|
|
418
436
|
xai: [
|
|
419
437
|
"grok-4.5",
|
|
420
|
-
"grok-4.20-0309-reasoning",
|
|
421
|
-
"grok-4.20-0309-non-reasoning",
|
|
422
438
|
"grok-4.3",
|
|
423
439
|
"grok-build-0.1",
|
|
424
|
-
"grok-code-fast-1",
|
|
425
|
-
"grok-3-fast",
|
|
426
|
-
"grok-3",
|
|
427
440
|
],
|
|
428
441
|
xiaomi: ["mimo-v2.5-pro", "mimo-v2.5", "mimo-v2-pro", "mimo-v2-omni", "mimo-v2-flash"],
|
|
429
442
|
"xiaomi-token-plan-ams": ["mimo-v2.5-pro", "mimo-v2.5", "mimo-v2-pro"],
|
|
@@ -434,7 +447,8 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
434
447
|
"nvidia/nemotron-3-super-120b-a12b",
|
|
435
448
|
"moonshotai/kimi-k2.6",
|
|
436
449
|
"z-ai/glm-5.2",
|
|
437
|
-
"
|
|
450
|
+
"minimaxai/minimax-m3",
|
|
451
|
+
"mistralai/mistral-large-3-675b-instruct-2512",
|
|
438
452
|
"openai/gpt-oss-120b",
|
|
439
453
|
"nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",
|
|
440
454
|
"nvidia/nemotron-3-nano-30b-a3b",
|
|
@@ -1125,6 +1139,7 @@ function renderCollapsedText(text: string, lineLimit = COLLAPSED_LINE_LIMIT): st
|
|
|
1125
1139
|
|
|
1126
1140
|
export const __test__ = {
|
|
1127
1141
|
findAvailableModel,
|
|
1142
|
+
isModelAvailabilityError,
|
|
1128
1143
|
parseModelPreference,
|
|
1129
1144
|
resolveThinkingLevel,
|
|
1130
1145
|
selectOracleModel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-oracle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "An Amp-style oracle extension for pi that consults the strongest reasoning model on your current provider.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -34,5 +34,9 @@
|
|
|
34
34
|
"@earendil-works/pi-coding-agent": "*",
|
|
35
35
|
"@earendil-works/pi-tui": "*",
|
|
36
36
|
"typebox": "*"
|
|
37
|
+
},
|
|
38
|
+
"type": "module",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=22.19.0"
|
|
37
41
|
}
|
|
38
42
|
}
|