Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
449b926f40 | ||
|
|
2546ffe570 | ||
|
|
f33ff9ba78 | ||
|
|
98bf80cd77 | ||
|
|
68660cad83 | ||
|
|
062ba1fbb7 | ||
|
|
6ce2f88eac | ||
|
|
3b55102a45 |
No files matched your search
@@ -46,7 +46,8 @@
|
||||
- Merge semantics:
|
||||
- Plain objects (`[cost]`, `[limit]`, `[modalities]`, `[provider]`, `[experimental]`, …) are **deep-merged**
|
||||
- Arrays (e.g. `modalities.input`) and primitives are **replaced** wholesale by the child
|
||||
- Any field the child omits is inherited verbatim from the base
|
||||
- Any field the child omits is inherited verbatim from the base, except `reasoning_options`
|
||||
- `reasoning_options` describes the endpoint interface and is never inherited; each derived provider must declare the controls its API exposes explicitly
|
||||
- `omit` runs **after** the merge and deletes each dot-path from the result (used when the child needs to *remove* something the base defines, e.g. a provider-specific experimental mode). Every listed path must exist in the merged model, else an error is thrown. Ancestor tables that become empty as a result are also pruned, so `omit = ["experimental.modes.fast"]` yields no `experimental` key in the final JSON when `fast` was the only mode.
|
||||
- Chains are allowed (A extends B extends C); cycles throw
|
||||
- The base model must exist; `[extends.from]` pointing at a missing provider/model is an error
|
||||
@@ -72,4 +73,4 @@
|
||||
| `attachment`, `reasoning`, `tool_call`, `open_weights` | Yes | Boolean capabilities |
|
||||
| `cost`, `limit`, `modalities` | Yes | Objects with their own required fields |
|
||||
| `family`, `knowledge`, `temperature`, `structured_output` | No | Optional metadata |
|
||||
| `status` | No | Use for `"alpha"`, `"beta"`, `"deprecated"` lifecycle |
|
||||
| `status` | No | Use for `"alpha"`, `"beta"`, `"deprecated"` lifecycle |
|
||||
@@ -104,8 +104,11 @@ export async function generate(directory: string) {
|
||||
}
|
||||
|
||||
const { extends: extendsConfig, ...overrides } = pendingModel.model;
|
||||
// Reasoning controls describe the endpoint interface, not just the model.
|
||||
// Derived providers must declare the controls their API exposes explicitly.
|
||||
const { reasoning_options: _reasoningOptions, ...inherited } = baseModel;
|
||||
const merged: Record<string, unknown> = structuredClone(
|
||||
mergeDeep(baseModel, overrides),
|
||||
mergeDeep(inherited, overrides),
|
||||
);
|
||||
|
||||
for (const omit of extendsConfig.omit ?? []) {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 44 40" fill="currentColor">
|
||||
<path d="M30.4629 10.9775L0 39.6572L23.877 0L30.4629 10.9775ZM30.5039 19.8975C32.2655 19.8976 33.8971 20.8245 34.7988 22.3379L43.0703 36.2217C43.8645 37.5548 42.9033 39.2451 41.3516 39.2451H35.3623C33.6007 39.245 31.9691 38.3181 31.0674 36.8047L20.9951 19.8975H30.5039Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 374 B |
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "anthropic/claude-haiku-4-5"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "anthropic/claude-opus-4-6"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "anthropic/claude-opus-4-7"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "anthropic/claude-sonnet-4-5"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "anthropic/claude-sonnet-4-6"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "cohere/command-r-plus-08-2024"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-chat"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-reasoner"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-v4-flash"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-v4-pro"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "google/gemini-2.5-flash-lite"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "google/gemini-2.5-flash"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "google/gemini-2.5-pro"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "google/gemini-3-flash-preview"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "google/gemini-3-pro-preview"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "mistral/devstral-2512"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "mistral/mistral-large-2512"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-4.1-mini"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-4.1"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-5-mini"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-5.1"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-5.2"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-5.4"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/gpt-5"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/o3-mini"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/o3"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "openai/o4-mini"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "perplexity/sonar-pro"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "perplexity/sonar-reasoning-pro"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[extends]
|
||||
from = "xai/grok-4.3"
|
||||
omit = ["cost"]
|
||||
@@ -0,0 +1,5 @@
|
||||
name = "AnyAPI"
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
env = ["ANYAPI_API_KEY"]
|
||||
api = "https://api.anyapi.ai/v1"
|
||||
doc = "https://docs.anyapi.ai"
|
||||
@@ -0,0 +1,23 @@
|
||||
name = "MiniMax-M3"
|
||||
family = "minimax"
|
||||
release_date = "2026-06-01"
|
||||
last_updated = "2026-06-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 512_000
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,23 @@
|
||||
name = "MiniMax-M3"
|
||||
family = "minimax"
|
||||
release_date = "2026-06-01"
|
||||
last_updated = "2026-06-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.30
|
||||
output = 1.20
|
||||
cache_read = 0.06
|
||||
cache_write = 0.375
|
||||
|
||||
[limit]
|
||||
context = 512_000
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,23 @@
|
||||
name = "MiniMax-M3"
|
||||
family = "minimax"
|
||||
release_date = "2026-06-01"
|
||||
last_updated = "2026-06-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 512_000
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,23 @@
|
||||
name = "MiniMax-M3"
|
||||
family = "minimax"
|
||||
release_date = "2026-06-01"
|
||||
last_updated = "2026-06-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.30
|
||||
output = 1.20
|
||||
cache_read = 0.06
|
||||
cache_write = 0.375
|
||||
|
||||
[limit]
|
||||
context = 512_000
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -7,7 +7,7 @@ from = "minimax/MiniMax-M2.7"
|
||||
omit = ["cost.cache_read", "cost.cache_write"]
|
||||
|
||||
[cost]
|
||||
input = 0.26
|
||||
input = 0.279
|
||||
output = 1.2
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -11,12 +11,12 @@ knowledge = "2025-06-30"
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.09
|
||||
output = 0.3
|
||||
input = 0.0428
|
||||
output = 0.1716
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
context = 128_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -10,9 +10,9 @@ structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.066
|
||||
output = 0.26
|
||||
cache_read = 0.029
|
||||
input = 0.063
|
||||
output = 0.21
|
||||
cache_read = 0.021
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
|
||||
Reference in new issue
Block a user