@oh-my-pi/pi-catalog 18.12.2 → 18.12.4

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 (35) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/types/compat/auth-ids.d.ts +2 -2
  3. package/dist/types/compat/image-tokenization.d.ts +13 -1
  4. package/dist/types/compat/provider-ids.d.ts +1 -1
  5. package/dist/types/compat/request-size.d.ts +11 -6
  6. package/dist/types/discovery/devin.d.ts +1 -1
  7. package/dist/types/hosts.d.ts +3 -1
  8. package/dist/types/provider-models/openai-compat.d.ts +7 -0
  9. package/dist/types/types.d.ts +10 -3
  10. package/dist/types/wire/devin.d.ts +1 -15
  11. package/package.json +4 -4
  12. package/src/compat/auth-ids.ts +2 -0
  13. package/src/compat/axes.ts +18 -2
  14. package/src/compat/image-tokenization.ts +55 -1
  15. package/src/compat/provider-ids.ts +1 -0
  16. package/src/compat/request-size.ts +18 -8
  17. package/src/compat/resolve.ts +1 -0
  18. package/src/compat/rules/README.md +6 -2
  19. package/src/compat/rules/auth/_order.kdl +1 -1
  20. package/src/compat/rules/auth/inception.kdl +11 -0
  21. package/src/compat/rules/classes/anthropic.kdl +23 -21
  22. package/src/compat/rules/classes/deepseek.kdl +31 -0
  23. package/src/compat/rules/classes/gemma.kdl +11 -0
  24. package/src/compat/rules/classes/minimax.kdl +13 -8
  25. package/src/compat/rules/providers/amazon-bedrock.kdl +56 -0
  26. package/src/compat/rules/providers/factory-droid.kdl +12 -0
  27. package/src/compat/rules/providers/inception.kdl +61 -0
  28. package/src/compat/rules.json +1 -1
  29. package/src/discovery/devin.ts +33 -66
  30. package/src/hosts.ts +5 -2
  31. package/src/models.json +1 -1
  32. package/src/provider-models/descriptors.ts +2 -0
  33. package/src/provider-models/openai-compat.ts +44 -2
  34. package/src/types.ts +10 -3
  35. package/src/wire/devin.ts +16 -20
@@ -11,4 +11,15 @@ class "gemma" {
11
11
  on "google" "vercel-ai-gateway" {
12
12
  thinking-mode "budget"
13
13
  }
14
+ // Gemma 4 on the Gemini API toggles thinking only through `thinkingLevel`
15
+ // (`HIGH` on, `MINIMAL` off) and rejects any `thinkingBudget` with a 400
16
+ // (https://ai.google.dev/gemma/docs/core/gemma_on_gemini_api#thinking).
17
+ // Off must be sent explicitly as `MINIMAL` rather than omitting the config.
18
+ on "google" {
19
+ revision ">=4" {
20
+ thinking-mode "google-level"
21
+ thinking-efforts "high"
22
+ thinking-suppress-when-off #true
23
+ }
24
+ }
14
25
  }
@@ -81,15 +81,17 @@ class "minimax" {
81
81
  thinking-efforts "low" "medium" "high"
82
82
  }
83
83
  }
84
- // MiniMax-M3.1-Flash-Preview always thinks (`thinking.type: "disabled"` and
85
- // effort `none` 400 with error 2013) and tunes depth through
86
- // `output_config.effort` from `low` to `max` (the default when omitted).
87
- // The identity map replaces the M3 family's adaptive-tag-only map so each
88
- // level reaches the wire. Like the M2 family, thinking cannot be turned off:
89
- // `thinking-requires-effort` hides the off level and clamps forced-off
90
- // requests to the lowest effort instead of sending `disabled`.
84
+ // MiniMax-M3.1-Flash (and its bundled `-Preview` id) always thinks
85
+ // (`thinking.type: "disabled"` and effort `none` 400 with error 2013) and
86
+ // tunes depth through `output_config.effort` from `low` to `max` (the
87
+ // default when omitted). The identity map replaces the M3 family's
88
+ // adaptive-tag-only map so each level reaches the wire. Like the M2 family,
89
+ // thinking cannot be turned off: `thinking-requires-effort` hides the off
90
+ // level and clamps forced-off requests to the lowest effort instead of
91
+ // sending `disabled`. The launch id also rejects sampling params
92
+ // (`temperature`, `top_p`, `top_k`).
91
93
  on "minimax" "minimax-cn" "minimax-code" "minimax-code-cn" {
92
- models "MiniMax-M3.1-Flash-Preview" {
94
+ models "MiniMax-M3.1-Flash" "MiniMax-M3.1-Flash-Preview" {
93
95
  thinking-requires-effort #true
94
96
  thinking-efforts "low" "medium" "high" "xhigh" "max"
95
97
  thinking-effort-map {
@@ -98,6 +100,9 @@ class "minimax" {
98
100
  high "high"
99
101
  }
100
102
  }
103
+ models "MiniMax-M3.1-Flash" {
104
+ supports-sampling-params #false
105
+ }
101
106
  }
102
107
  // Token Plan rows ride the Anthropic route; these OpenAI-only wire axes
103
108
  // serve the legacy lightning rows that stay on the OpenAI-compatible one.
@@ -51,10 +51,66 @@ provider "amazon-bedrock" {
51
51
  thinking-efforts "minimal" "low" "medium" "high"
52
52
  thinking-mode "budget"
53
53
  }
54
+ // AWS documents compact-2026-09-04 for native Runtime APIs, not Converse.
55
+ // Expose this only as a side-compaction capability; ordinary turns
56
+ // continue to use the model's bedrock-converse-stream API. These revisions
57
+ // are limited to the Bedrock model cards that name the new beta:
58
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-compaction.html
59
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-4-5.html
60
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-5-5.html
61
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-5.html
62
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-5-5.html
63
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html
64
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-8.html
65
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-5.html
66
+ // https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-5-5.html
67
+ // The haiku/sonnet/opus families are Anthropic-only (taxonomy/anthropic.kdl).
68
+ on-api "bedrock-converse-stream" {
69
+ family "haiku" {
70
+ revision ">=4.5 <4.6" {
71
+ supports-server-compaction #true
72
+ }
73
+ revision ">=5.5 <5.6" {
74
+ supports-server-compaction #true
75
+ }
76
+ }
77
+ family "sonnet" {
78
+ revision ">=5 <5.1" {
79
+ supports-server-compaction #true
80
+ }
81
+ revision ">=5.5 <5.6" {
82
+ supports-server-compaction #true
83
+ }
84
+ }
85
+ family "opus" {
86
+ revision ">=4.7 <4.9" {
87
+ supports-server-compaction #true
88
+ }
89
+ revision ">=5 <5.1" {
90
+ supports-server-compaction #true
91
+ }
92
+ revision ">=5.5 <5.6" {
93
+ supports-server-compaction #true
94
+ }
95
+ }
96
+ }
54
97
  // residue: taxonomy ranks and exact globs do not isolate these models.
55
98
  models "moonshot.kimi-k2-thinking" {
56
99
  thinking-requires-effort #true
57
100
  }
101
+ // residue: the inference-profile prefixes leave the K3 rows in the
102
+ // "unknown" class, so an exact selector is the only match. K3 reasons via
103
+ // OpenAI-style reasoning_effort (low/high/max, default max), matching
104
+ // Moonshot's official API and every other provider's K3 entry. Verified
105
+ // live via Converse on global.moonshotai.kimi-k3: identical prompt yields
106
+ // ~1K output tokens at "high" vs ~2.4K at "max" (invalid values are
107
+ // accepted silently and behave like the max default).
108
+ models "*.moonshotai.kimi-k3" {
109
+ thinking-mode "effort"
110
+ thinking-efforts "low" "high" "max"
111
+ thinking-default-level "max"
112
+ thinking-requires-effort #true
113
+ }
58
114
  // The Qwen rows arrive with maxTokens copied from the upstream context
59
115
  // window (262000 on a 262144 window), so a request that does not set an
60
116
  // output budget of its own asks Bedrock for more than the model accepts
@@ -12,6 +12,18 @@ provider "factory-droid" {
12
12
  dynamic-models-authoritative #true
13
13
  // Native subscription limits are not direct-host price-tier or capacity heuristics.
14
14
  context-window-authoritative #true
15
+ // Factory's hosted HTTP routes refuse request bodies over 4,500,000 bytes.
16
+ // The native CLI keeps inline media under 3,500,000 base64 bytes, leaving
17
+ // ~1 MB for system, tools and text, but never evicts the newest user
18
+ // message's or newest tool result's media. Applied only on Factory's own
19
+ // hosts; a custom gateway baseUrl keeps its own limit.
20
+ inline-image-byte-budget 3500000
21
+ request-body-byte-limit 4500000
22
+ // Factory's own hosts per residency (wire/factory-droid.ts factoryDroidApiBaseUrl);
23
+ // seed rows are never bundled, so they are listed here for isCatalogEndpointUrl,
24
+ // which gates the budgets above (Factory's compat names no official endpoint).
25
+ endpoint-hosts "api.factory.ai" "api.eu.factory.ai"
26
+ catalog-endpoint-budgets #true
15
27
 
16
28
  // The registry roster. Factory has no model-listing endpoint, so first-party
17
29
  // clients ship this list and narrow it per account with feature flags, org
@@ -0,0 +1,61 @@
1
+ // https://docs.inceptionlabs.ai/get-started/models (2026-10-20).
2
+ provider "inception" {
3
+ default-model "mercury-3"
4
+ env "INCEPTION_API_KEY"
5
+ dynamic-models-authoritative #true
6
+ discovery label="Inception"
7
+
8
+ seed api="openai-completions" base-url="https://api.inceptionlabs.ai/v1" bundle="fallback" {
9
+ model "mercury-3" name="Mercury 3" {
10
+ reasoning #true
11
+ input "text"
12
+ cost input=0.1 output=0.35 cache-read=0.01 cache-write=0
13
+ limits context=1000000 max-tokens=131072
14
+ }
15
+ model "mercury-2.5" name="Mercury 2.5" {
16
+ reasoning #true
17
+ input "text"
18
+ cost input=0.2 output=0.75 cache-read=0.02 cache-write=0
19
+ limits context=260000 max-tokens=65536
20
+ }
21
+ model "mercury-2" name="Mercury 2" {
22
+ reasoning #true
23
+ input "text"
24
+ cost input=0.25 output=0.75 cache-read=0.025 cache-write=0
25
+ limits context=128000 max-tokens=50000
26
+ }
27
+ }
28
+
29
+ supports-developer-role #false
30
+ supports-store #false
31
+ max-tokens-field "max_completion_tokens"
32
+ clamp-output-to-model-max #true
33
+
34
+ // No Mercury taxonomy exists; these reviewed chat ids expose reasoning
35
+ // controls omitted by /models. Other endpoints must not inherit them.
36
+ models "mercury-2" "mercury-2.5" "mercury-3" {
37
+ thinking-upgrade-neutral #true
38
+ thinking-mode "effort"
39
+ thinking-efforts "minimal" "low" "medium" "high"
40
+ thinking-effort-map { minimal "instant" }
41
+ thinking-default-level "medium"
42
+ supports-reasoning-effort #true
43
+ reasoning-disable-mode "lowest-effort"
44
+ }
45
+ models "mercury-3" priority=1 {
46
+ thinking-default-level "low"
47
+ // Mercury streams nothing while it reasons. High effort defaults to a
48
+ // 131,072-token budget; at the measured ~400 reasoning tokens/s that
49
+ // can take ~330s before the first chunk, past the 300s default.
50
+ stream-first-event-timeout-ms 600000
51
+ // /models reports $0. `cost-fallback` seeds the published launch price
52
+ // ($0.10/$0.35, 50% off the $0.20/$0.70 list price, no announced end) only
53
+ // while it does, so a real upstream tariff takes over once published.
54
+ cost-fallback {
55
+ input 0.1
56
+ output 0.35
57
+ cache-read 0.01
58
+ cache-write 0
59
+ }
60
+ }
61
+ }