Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d17b5b2ac3 |
No files matched your search
@@ -73,7 +73,6 @@ jobs:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
VENICE_API_KEY: ${{ secrets.VENICE_API_KEY }}
|
||||
LLMGATEWAY_API_KEY: ${{ secrets.LLMGATEWAY_API_KEY }}
|
||||
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
|
||||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
|
||||
|
||||
@@ -105,24 +105,10 @@ items are **hard blockers**; the last two are **strongly recommended** but not b
|
||||
- Plain objects from metadata and provider TOML (`[limit]`, `[modalities]`, …) are **deep-merged**
|
||||
- Arrays (e.g. `modalities.input`) and primitives are **replaced** wholesale by the child
|
||||
- Any provider field omitted is inherited verbatim from model metadata
|
||||
- `cost`, `provider`, `experimental`, `reasoning_options`, `variants`, `interleaved`, and `status` are provider-specific and must be declared in provider TOMLs when needed
|
||||
- `cost`, `provider`, `experimental`, `reasoning_options`, `interleaved`, and `status` are provider-specific and must be declared in provider TOMLs when needed
|
||||
- `base_model_omit` runs **after** the merge and deletes each dot-path from the result. Missing paths are ignored. Ancestor tables that become empty as a result are also pruned.
|
||||
- The base model metadata file must exist; `base_model` pointing at a missing `models/` entry is an error
|
||||
|
||||
### Provider request variants
|
||||
|
||||
- Provider model TOMLs may declare exact request bodies under `variants.<id>` when semantic `reasoning_options` are insufficient to describe the provider's wire format.
|
||||
- Variant values are copied unchanged into clients' ordinary model variants; do not use them for client-specific transformations.
|
||||
- Select an ordinary default variant with `provider.variant`. Use `provider.body` only for defaults shared by every variant.
|
||||
- Example:
|
||||
```toml
|
||||
[variants.none.chat_template_kwargs]
|
||||
thinking_mode = "disabled"
|
||||
|
||||
[variants.thinking.chat_template_kwargs]
|
||||
thinking_mode = "enabled"
|
||||
```
|
||||
|
||||
### Bedrock Naming Patterns
|
||||
- Dated models: `-v1:0` suffix (`anthropic.claude-3-5-sonnet-20241022-v1:0.toml`)
|
||||
- Latest/undated models: bare `-v1` (`anthropic.claude-opus-4-6-v1.toml`)
|
||||
|
||||
@@ -16,67 +16,3 @@ output = 65_536
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 80.4
|
||||
metric = "resolved"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 60.6
|
||||
metric = "resolve rate"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 78.3
|
||||
metric = "resolve rate"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 69.7
|
||||
metric = "success rate"
|
||||
harness = "Terminus-2"
|
||||
version = "2.0"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 92.4
|
||||
metric = "accuracy"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 41.4
|
||||
metric = "accuracy"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SciCode"
|
||||
score = 53.5
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 76.4
|
||||
metric = "success rate"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "NL2Repo"
|
||||
score = 47.2
|
||||
harness = "Claude Code"
|
||||
source = "https://qwen.ai/blog?id=qwen3.7"
|
||||
date = "2026-05-19"
|
||||
@@ -1,30 +0,0 @@
|
||||
# Sources (accessed 2026-07-20):
|
||||
# https://docs.qwencloud.com/token-plan/personal/token-plan-personal-overview
|
||||
# https://platform.qianwenai.com/docs/token-plan/personal/token-plan-personal-overview
|
||||
# https://docs.qwencloud.com/developer-guides/getting-started/text-generation-models
|
||||
# https://platform.qianwenai.com/docs/developer-guides/getting-started/text-generation-models
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://github.com/QwenLM/qwen-code/issues/7198
|
||||
# https://github.com/QwenLM/qwen-code/pull/7199
|
||||
|
||||
name = "Qwen3.8 Max Preview"
|
||||
description = "Preview Qwen flagship for million-token multimodal reasoning and long-horizon agentic workflows"
|
||||
family = "qwen"
|
||||
release_date = "2026-07-19"
|
||||
last_updated = "2026-07-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -17,70 +17,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 80.3
|
||||
metric = "resolve rate"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 95
|
||||
metric = "resolved"
|
||||
source = "https://benchlm.ai/benchmarks/sweVerified"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 88.0
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 59
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 64.5
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 85
|
||||
metric = "success rate"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierCode"
|
||||
score = 29.3
|
||||
metric = "pass rate"
|
||||
variant = "high effort"
|
||||
dataset = "Diamond"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval-AA"
|
||||
score = 1932
|
||||
metric = "Elo"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "AutomationBench"
|
||||
score = 17.4
|
||||
metric = "success rate"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
@@ -142,33 +142,3 @@ harness = "Claude Code"
|
||||
variant = "medium"
|
||||
version = "2.1"
|
||||
source = "https://artificialanalysis.ai/agents/coding-agents"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 94.2
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 46.9
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 54.7
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 78.0
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
@@ -33,41 +33,3 @@ harness = "Terminus-2"
|
||||
version = "2.1"
|
||||
source = "https://www.anthropic.com/news/claude-opus-4-8"
|
||||
date = "2026-05-28"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 88.6
|
||||
metric = "resolved"
|
||||
source = "https://benchlm.ai/benchmarks/sweVerified"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 49.8
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 57.9
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 83.4
|
||||
metric = "success rate"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierCode"
|
||||
score = 13.4
|
||||
metric = "pass rate"
|
||||
variant = "high effort"
|
||||
dataset = "Diamond"
|
||||
source = "https://www.anthropic.com/news/claude-fable-5-mythos-5"
|
||||
date = "2026-06-09"
|
||||
@@ -72,35 +72,3 @@ harness = "Claude Code"
|
||||
variant = "medium"
|
||||
version = "2.1"
|
||||
source = "https://artificialanalysis.ai/agents/coding-agents"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 67.0
|
||||
metric = "success rate"
|
||||
harness = "Terminus-2"
|
||||
version = "2.1"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 34.6
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 46.8
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 78.5
|
||||
metric = "success rate"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
@@ -17,56 +17,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 85.2
|
||||
metric = "resolved"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 63.2
|
||||
metric = "resolve rate"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 78.3
|
||||
metric = "resolve rate"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 80.4
|
||||
metric = "success rate"
|
||||
harness = "Terminus-2"
|
||||
version = "2.1"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 81.2
|
||||
metric = "success rate"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 84.7
|
||||
metric = "accuracy"
|
||||
variant = "single agent"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierCode"
|
||||
score = 38.8
|
||||
metric = "pass rate"
|
||||
version = "v1"
|
||||
source = "https://www.anthropic.com/news/claude-sonnet-5"
|
||||
date = "2026-06-30"
|
||||
@@ -1,23 +0,0 @@
|
||||
# https://huggingface.co/CohereLabs/aya-expanse-32b
|
||||
name = "Aya Expanse 32B"
|
||||
description = "Open multilingual model optimized for generation across 23 languages"
|
||||
release_date = "2024-10-24"
|
||||
last_updated = "2024-10-24"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-expanse-32b"
|
||||
@@ -1,23 +0,0 @@
|
||||
# https://huggingface.co/CohereLabs/aya-expanse-8b
|
||||
name = "Aya Expanse 8B"
|
||||
description = "Compact open multilingual model optimized for generation across 23 languages"
|
||||
release_date = "2024-10-24"
|
||||
last_updated = "2024-10-24"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 8_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-expanse-8b"
|
||||
@@ -1,23 +0,0 @@
|
||||
# https://huggingface.co/CohereLabs/aya-vision-32b
|
||||
name = "Aya Vision 32B"
|
||||
description = "Open multilingual vision model for OCR, visual reasoning, and image question answering"
|
||||
release_date = "2025-03-04"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 16_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-vision-32b"
|
||||
@@ -1,23 +0,0 @@
|
||||
# https://huggingface.co/CohereLabs/aya-vision-8b
|
||||
name = "Aya Vision 8B"
|
||||
description = "Compact open multilingual vision model for OCR and visual question answering"
|
||||
release_date = "2025-03-04"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 16_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-vision-8b"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://docs.cohere.com/docs/command-a-reasoning
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-reasoning-08-2025
|
||||
name = "Command A Reasoning"
|
||||
description = "Cohere reasoning model for multilingual enterprise agents, tools, and complex workflows"
|
||||
family = "command-a"
|
||||
release_date = "2025-08-21"
|
||||
last_updated = "2025-08-21"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-reasoning-08-2025"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://docs.cohere.com/docs/models
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-translate-08-2025
|
||||
name = "Command A Translate"
|
||||
description = "Translation model for multilingual conversion, localization, and cross-language workflows"
|
||||
family = "command-a"
|
||||
release_date = "2025-08-28"
|
||||
last_updated = "2025-08-28"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 8_000
|
||||
output = 8_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-translate-08-2025"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://docs.cohere.com/docs/command-a-vision
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-vision-07-2025
|
||||
name = "Command A Vision"
|
||||
description = "Cohere vision model for multilingual document analysis, OCR, and image understanding"
|
||||
family = "command-a"
|
||||
release_date = "2025-07-31"
|
||||
last_updated = "2025-07-31"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-vision-07-2025"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-r7b-arabic-02-2025
|
||||
# https://docs.cohere.com/changelog/command-r7b-arabic
|
||||
name = "Command R7B Arabic"
|
||||
description = "Open Command R model optimized for Arabic enterprise chat, RAG, and cultural knowledge"
|
||||
family = "command-r"
|
||||
release_date = "2025-02-27"
|
||||
last_updated = "2025-02-27"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-r7b-arabic-02-2025"
|
||||
@@ -18,47 +18,3 @@ output = 64_000
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 67.6
|
||||
metric = "resolved"
|
||||
harness = "SWE-agent"
|
||||
source = "https://huggingface.co/CohereLabs/North-Mini-Code-1.0"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 40.2
|
||||
metric = "resolve rate"
|
||||
harness = "SWE-agent"
|
||||
source = "https://huggingface.co/CohereLabs/North-Mini-Code-1.0"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 27.6
|
||||
metric = "index score"
|
||||
source = "https://artificialanalysis.ai/articles/north-mini-code-cohere-s-small-coding-focused-moe-model"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Index"
|
||||
score = 33.4
|
||||
metric = "index score"
|
||||
source = "https://artificialanalysis.ai/articles/north-mini-code-cohere-s-small-coding-focused-moe-model"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval-AA"
|
||||
score = 14
|
||||
metric = "win rate"
|
||||
source = "https://artificialanalysis.ai/articles/north-mini-code-cohere-s-small-coding-focused-moe-model"
|
||||
date = "2026-06-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "τ²-Bench Telecom"
|
||||
score = 37
|
||||
metric = "success rate"
|
||||
source = "https://artificialanalysis.ai/articles/north-mini-code-cohere-s-small-coding-focused-moe-model"
|
||||
date = "2026-06-09"
|
||||
@@ -7,7 +7,7 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2024-06"
|
||||
knowledge = "2025-06"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "Nano Banana Pro"
|
||||
description = "Nano Banana Pro for higher-fidelity image generation and design-heavy edits"
|
||||
family = "gemini-pro"
|
||||
release_date = "2026-05-28"
|
||||
last_updated = "2026-05-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "Nano Banana 2"
|
||||
description = "Image model for prompt-driven generation, editing, and visual design workflows"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-05-28"
|
||||
last_updated = "2026-05-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text", "image"]
|
||||
@@ -96,62 +96,3 @@ harness = "Gemini CLI"
|
||||
variant = "high"
|
||||
version = "2.1"
|
||||
source = "https://artificialanalysis.ai/agents/coding-agents"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 94.3
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 44.4
|
||||
metric = "accuracy"
|
||||
dataset = "full set, text + MM"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-2"
|
||||
score = 77.1
|
||||
metric = "accuracy"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 80.5
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 78.2
|
||||
metric = "success rate"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 76.2
|
||||
metric = "success rate"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "CharXiv Reasoning"
|
||||
score = 83.3
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval-AA"
|
||||
score = 1314
|
||||
metric = "Elo"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "Gemini 3.5 Flash Lite"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -18,80 +18,3 @@ output = 65_536
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 76.2
|
||||
metric = "success rate"
|
||||
harness = "Terminus-2"
|
||||
version = "2.1"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 55.1
|
||||
metric = "resolve rate"
|
||||
variant = "single attempt"
|
||||
dataset = "public"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 83.6
|
||||
metric = "success rate"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 56.5
|
||||
metric = "success rate"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 78.4
|
||||
metric = "success rate"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 83.6
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "CharXiv Reasoning"
|
||||
score = 84.2
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 40.2
|
||||
metric = "accuracy"
|
||||
dataset = "full set, text + MM"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-2"
|
||||
score = 72.1
|
||||
metric = "accuracy"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval-AA"
|
||||
score = 1656
|
||||
metric = "Elo"
|
||||
source = "https://deepmind.google/models/gemini/flash/"
|
||||
date = "2026-05-19"
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "Gemini 3.6 Flash"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,9 +1,8 @@
|
||||
# Tracks the current Gemini Flash release (gemini-3.5-flash).
|
||||
name = "Gemini Flash Latest"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-05-19"
|
||||
last_updated = "2026-05-19"
|
||||
release_date = "2025-09-25"
|
||||
last_updated = "2025-09-25"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -17,5 +16,5 @@ context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,9 +1,8 @@
|
||||
# Tracks the current Gemini Flash-Lite release (gemini-3.1-flash-lite).
|
||||
name = "Gemini Flash-Lite Latest"
|
||||
description = "Low-latency Gemini model for high-volume multimodal and agent workloads"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2026-05-07"
|
||||
last_updated = "2026-05-07"
|
||||
release_date = "2025-09-25"
|
||||
last_updated = "2025-09-25"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -17,5 +16,5 @@ context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -15,10 +15,3 @@ output = 57_920
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["video"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "LMArena Text-to-Video Arena"
|
||||
score = 1527
|
||||
metric = "Elo"
|
||||
source = "https://venturebeat.com/technology/googles-gemini-omni-flash-hits-the-api-turning-enterprise-video-production-into-a-conversation"
|
||||
date = "2026-06-30"
|
||||
@@ -16,53 +16,3 @@ output = 131_072
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 59.5
|
||||
metric = "resolve rate"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 77.3
|
||||
metric = "resolve rate"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 70.8
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 88.9
|
||||
metric = "accuracy"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 79.9
|
||||
metric = "accuracy"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "IFEval"
|
||||
score = 90.0
|
||||
metric = "accuracy"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FORTE"
|
||||
score = 73.2
|
||||
metric = "success rate"
|
||||
source = "https://github.com/meituan-longcat/longcat-2.0"
|
||||
date = "2026-06-30"
|
||||
@@ -17,84 +17,3 @@ output = 32_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf", "video"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 61.5
|
||||
metric = "resolve rate"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 80.0
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 53.3
|
||||
metric = "resolve rate"
|
||||
version = "1.1"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 88.1
|
||||
metric = "success rate"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "JobBench"
|
||||
score = 54.7
|
||||
metric = "success rate"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon-Verified"
|
||||
score = 75.6
|
||||
metric = "success rate"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 62.1
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 80.8
|
||||
metric = "success rate"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Finance Agent"
|
||||
score = 57.2
|
||||
metric = "accuracy"
|
||||
version = "v2"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "CharXiv Reasoning"
|
||||
score = 88.4
|
||||
metric = "accuracy"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BabyVision"
|
||||
score = 76.3
|
||||
metric = "accuracy"
|
||||
source = "https://ai.meta.com/blog/introducing-muse-spark-meta-model-api/"
|
||||
date = "2026-07-09"
|
||||
@@ -28,30 +28,3 @@ type = "model_card"
|
||||
label = "Announcement"
|
||||
url = "https://microsoft.ai/news/introducingmai-code-1-flash/"
|
||||
type = "announcement"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 51.2
|
||||
metric = "resolve rate"
|
||||
harness = "GitHub Copilot"
|
||||
source = "https://microsoft.ai/news/introducingmai-code-1-flash/"
|
||||
date = "2026-06-02"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 71.6
|
||||
metric = "resolved"
|
||||
source = "https://llm-stats.com/benchmarks/swe-bench-verified"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 54.8
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://llm-stats.com/benchmarks/terminal-bench-2"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 84.6
|
||||
metric = "accuracy"
|
||||
source = "https://llm-stats.com/benchmarks/gpqa"
|
||||
@@ -20,27 +20,3 @@ output = ["text"]
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/MiniMaxAI/MiniMax-M2.7"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 79.9
|
||||
metric = "resolved"
|
||||
harness = "Claude Code"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 56.2
|
||||
metric = "resolve rate"
|
||||
harness = "Claude Code"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 51.1
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
@@ -20,48 +20,3 @@ output = ["text"]
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/MiniMaxAI/MiniMax-M3"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 80.5
|
||||
metric = "resolved"
|
||||
harness = "Claude Code"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 59.0
|
||||
metric = "resolve rate"
|
||||
harness = "Claude Code"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 66.0
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 83.52
|
||||
metric = "accuracy"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 74.2
|
||||
metric = "success rate"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 70.06
|
||||
metric = "success rate"
|
||||
source = "https://www.minimax.io/blog/minimax-m3"
|
||||
date = "2026-06-01"
|
||||
@@ -22,48 +22,3 @@ output = ["text"]
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Kimi Code Bench"
|
||||
score = 62.0
|
||||
harness = "Kimi Code CLI"
|
||||
version = "v2"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Program Bench"
|
||||
score = 53.6
|
||||
harness = "Kimi Code CLI"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MLS Bench Lite"
|
||||
score = 35.1
|
||||
harness = "Kimi Code CLI"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 76.0
|
||||
metric = "success rate"
|
||||
harness = "Kimi Code CLI"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Mark Verified"
|
||||
score = 81.1
|
||||
metric = "success rate"
|
||||
harness = "Kimi Code CLI"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Kimi Claw 24/7 Bench"
|
||||
score = 46.9
|
||||
harness = "Kimi Code CLI"
|
||||
source = "https://huggingface.co/moonshotai/Kimi-K2.7-Code"
|
||||
date = "2026-06-12"
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "Kimi K3"
|
||||
description = "Multimodal Kimi model with 1M context and toggleable max-effort thinking for long-horizon agent work"
|
||||
family = "kimi-k3"
|
||||
release_date = "2026-07-16"
|
||||
last_updated = "2026-07-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -16,86 +16,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 70.7
|
||||
metric = "resolved"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 67.7
|
||||
metric = "resolve rate"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 56.4
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA"
|
||||
score = 87.0
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 26.7
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 37.4
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "LiveCodeBench"
|
||||
score = 89.0
|
||||
metric = "pass@1"
|
||||
version = "v6"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMLU-Pro"
|
||||
score = 86.8
|
||||
metric = "accuracy"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 44.4
|
||||
metric = "accuracy"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "IFBench"
|
||||
score = 81.7
|
||||
metric = "accuracy"
|
||||
variant = "prompt loose"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 46.7
|
||||
metric = "wins or ties"
|
||||
source = "https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16"
|
||||
date = "2026-06-04"
|
||||
@@ -19,87 +19,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 94.4
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 42.7
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 58.7
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 89.3
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 82.0
|
||||
metric = "wins or ties"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 50.0
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 38.0
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 4"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-1"
|
||||
score = 94.5
|
||||
metric = "accuracy"
|
||||
variant = "Verified"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-2"
|
||||
score = 83.3
|
||||
metric = "accuracy"
|
||||
variant = "Verified"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FinanceAgent"
|
||||
score = 61.5
|
||||
metric = "accuracy"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GeneBench"
|
||||
score = 25.6
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
@@ -129,87 +129,3 @@ harness = "Cursor CLI"
|
||||
variant = "medium"
|
||||
version = "2.1"
|
||||
source = "https://artificialanalysis.ai/agents/coding-agents"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 75.1
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 92.8
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 39.8
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 52.1
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 75.0
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 82.7
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 83.0
|
||||
metric = "wins or ties"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-2"
|
||||
score = 73.3
|
||||
metric = "accuracy"
|
||||
variant = "Verified"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 47.6
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 27.1
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 4"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 81.2
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
@@ -19,56 +19,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 90.1
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 43.1
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 57.2
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 52.4
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 39.6
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 4"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 82.3
|
||||
metric = "wins or ties"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GeneBench"
|
||||
score = 33.2
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
@@ -158,109 +158,3 @@ harness = "Cursor CLI"
|
||||
variant = "medium"
|
||||
version = "2.1"
|
||||
source = "https://artificialanalysis.ai/agents/coding-agents"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 82.7
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 93.6
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 41.4
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 52.2
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld-Verified"
|
||||
score = 78.7
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 84.4
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 81.2
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-2"
|
||||
score = 85.0
|
||||
metric = "accuracy"
|
||||
variant = "Verified"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 51.7
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 35.4
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 4"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 84.9
|
||||
metric = "wins or ties"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MCP Atlas"
|
||||
score = 75.3
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 55.6
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "τ²-Bench Telecom"
|
||||
score = 98.0
|
||||
metric = "success rate"
|
||||
variant = "original prompts"
|
||||
source = "https://openai.com/index/introducing-gpt-5-5/"
|
||||
date = "2026-04-23"
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Luna"
|
||||
description = "Cost-efficient GPT-5.6 model for fast, high-volume workloads"
|
||||
family = "gpt-luna"
|
||||
family = "gpt-nano"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
@@ -19,97 +19,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 62.7
|
||||
metric = "resolve rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 84.7
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 67.2
|
||||
metric = "resolve rate"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 92.3
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 78.6
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
version = "v2"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 83.3
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld"
|
||||
score = 45.6
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 78.4
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Agents' Last Exam"
|
||||
score = 50.3
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 53.4
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 51.2
|
||||
metric = "index score"
|
||||
variant = "max"
|
||||
version = "4.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Agent Index"
|
||||
score = 74.6
|
||||
metric = "index score"
|
||||
harness = "Codex"
|
||||
variant = "max"
|
||||
version = "1.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Sol"
|
||||
description = "Frontier GPT-5.6 model for complex professional work, coding, and agentic workflows"
|
||||
family = "gpt-sol"
|
||||
family = "gpt"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
@@ -19,97 +19,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 64.6
|
||||
metric = "resolve rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 88.8
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 72.7
|
||||
metric = "resolve rate"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 94.6
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 89
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
version = "v2"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 90.4
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld"
|
||||
score = 62.6
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 83
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Agents' Last Exam"
|
||||
score = 52.7
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 58
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 58.9
|
||||
metric = "index score"
|
||||
variant = "max"
|
||||
version = "4.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Agent Index"
|
||||
score = 80
|
||||
metric = "index score"
|
||||
harness = "Codex"
|
||||
variant = "max"
|
||||
version = "1.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Terra"
|
||||
description = "Balanced GPT-5.6 model for capable, cost-efficient everyday work"
|
||||
family = "gpt-terra"
|
||||
family = "gpt-mini"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
@@ -19,97 +19,3 @@ output = 128_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 63.4
|
||||
metric = "resolve rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 87.4
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 69.6
|
||||
metric = "resolve rate"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 92.9
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 84.9
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 1-3"
|
||||
version = "v2"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 87.5
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld"
|
||||
score = 50.2
|
||||
metric = "success rate"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMMU Pro"
|
||||
score = 80.7
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Agents' Last Exam"
|
||||
score = 50.4
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 53.1
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/gpt-5-6/"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 55
|
||||
metric = "index score"
|
||||
variant = "max"
|
||||
version = "4.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Agent Index"
|
||||
score = 77.4
|
||||
metric = "index score"
|
||||
harness = "Codex"
|
||||
variant = "max"
|
||||
version = "1.1"
|
||||
source = "https://artificialanalysis.ai/articles/gpt-5-6-has-landed"
|
||||
date = "2026-07-09"
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "GPT-Realtime-2.1"
|
||||
description = "Realtime speech-to-speech model with configurable reasoning, tool use, and robust voice-agent behavior"
|
||||
family = "gpt"
|
||||
release_date = "2026-07-06"
|
||||
last_updated = "2026-07-06"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
knowledge = "2024-09-30"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
input = 96_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio", "image"]
|
||||
output = ["text", "audio"]
|
||||
@@ -1,18 +0,0 @@
|
||||
name = "GPT Realtime Whisper"
|
||||
description = "Streaming speech-to-text model for low-latency transcript deltas from live audio"
|
||||
family = "whisper"
|
||||
release_date = "2026-05-07"
|
||||
last_updated = "2026-05-07"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 0
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["audio"]
|
||||
output = ["text"]
|
||||
@@ -1,5 +1,5 @@
|
||||
name = "Laguna M.1"
|
||||
description = "Poolside's open-weight model for agentic coding and long-horizon work"
|
||||
description = "Poolside's flagship agentic coding model for long-horizon work"
|
||||
family = "laguna"
|
||||
release_date = "2026-04-28"
|
||||
last_updated = "2026-06-13"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "Laguna S 2.1"
|
||||
description = "Agentic coding model from Poolside in the XS size class for local deployment"
|
||||
family = "laguna"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -17,36 +17,3 @@ output = 32_768
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 70.9
|
||||
metric = "resolved"
|
||||
harness = "Harbor"
|
||||
source = "https://poolside.ai/blog/introducing-laguna-xs-2-1"
|
||||
date = "2026-07-02"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 63.1
|
||||
metric = "resolve rate"
|
||||
harness = "Harbor"
|
||||
source = "https://poolside.ai/blog/introducing-laguna-xs-2-1"
|
||||
date = "2026-07-02"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 47.6
|
||||
metric = "resolve rate"
|
||||
harness = "Harbor"
|
||||
source = "https://poolside.ai/blog/introducing-laguna-xs-2-1"
|
||||
date = "2026-07-02"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 37.5
|
||||
metric = "success rate"
|
||||
harness = "Harbor"
|
||||
version = "2.0"
|
||||
source = "https://poolside.ai/blog/introducing-laguna-xs-2-1"
|
||||
date = "2026-07-02"
|
||||
@@ -6,7 +6,7 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2026-03-01"
|
||||
knowledge = "2026-01-01"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
@@ -15,89 +15,9 @@ input = 256_000
|
||||
output = 256_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/stepfun-ai/Step-3.7-Flash"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 56.3
|
||||
metric = "resolve rate"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Verified"
|
||||
score = 76.5
|
||||
metric = "resolved"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 59.6
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 47.2
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 75.8
|
||||
metric = "accuracy"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Toolathlon"
|
||||
score = 49.5
|
||||
metric = "success rate"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval"
|
||||
score = 45.8
|
||||
metric = "wins or ties"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ClawEval"
|
||||
score = 67.1
|
||||
metric = "pass^3"
|
||||
version = "1.1"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Index"
|
||||
score = 37.1
|
||||
metric = "index"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SciCode"
|
||||
score = 40.0
|
||||
metric = "percent correct"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench Hard"
|
||||
score = 35.6
|
||||
metric = "success rate"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
@@ -1,30 +0,0 @@
|
||||
# Sources (accessed 2026-07-16):
|
||||
# - https://thinkingmachines.ai/news/introducing-inkling/
|
||||
# - https://thinkingmachines.ai/model-card/inkling/
|
||||
# - https://huggingface.co/thinkingmachines/Inkling
|
||||
# - https://tinker-docs.thinkingmachines.ai/tinker/models/
|
||||
# - https://tinker-docs.thinkingmachines.ai/cookbook/inkling/thinking-effort/
|
||||
# - https://tinker-docs.thinkingmachines.ai/tinker/compatible-apis/openai/
|
||||
|
||||
name = "Inkling"
|
||||
description = "Multimodal MoE reasoning model (975B total, 41B active) for text, image, and audio"
|
||||
family = "ling"
|
||||
release_date = "2026-07-15"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 256_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/thinkingmachines/Inkling"
|
||||
@@ -17,32 +17,3 @@ output = 30_000
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 53
|
||||
metric = "index score"
|
||||
version = "4.0"
|
||||
source = "https://artificialanalysis.ai/articles/xai-launches-grok-4-3-with-improved-agentic-performance-and-lower-pricing"
|
||||
date = "2026-04-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GDPval-AA"
|
||||
score = 1500
|
||||
metric = "Elo"
|
||||
source = "https://artificialanalysis.ai/articles/xai-launches-grok-4-3-with-improved-agentic-performance-and-lower-pricing"
|
||||
date = "2026-04-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "τ²-Bench Telecom"
|
||||
score = 98
|
||||
metric = "success rate"
|
||||
source = "https://artificialanalysis.ai/articles/xai-launches-grok-4-3-with-improved-agentic-performance-and-lower-pricing"
|
||||
date = "2026-04-30"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "IFBench"
|
||||
score = 81
|
||||
metric = "accuracy"
|
||||
source = "https://artificialanalysis.ai/articles/xai-launches-grok-4-3-with-improved-agentic-performance-and-lower-pricing"
|
||||
date = "2026-04-30"
|
||||
@@ -17,42 +17,3 @@ output = 500_000
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 64.7
|
||||
metric = "resolve rate"
|
||||
source = "https://x.ai/news/grok-4-5"
|
||||
date = "2026-07-08"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Multilingual"
|
||||
score = 78
|
||||
metric = "resolve rate"
|
||||
source = "https://x.ai/news/grok-4-5"
|
||||
date = "2026-07-08"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 83.3
|
||||
metric = "success rate"
|
||||
version = "2.1"
|
||||
source = "https://x.ai/news/grok-4-5"
|
||||
date = "2026-07-08"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 62.0
|
||||
metric = "resolve rate"
|
||||
version = "1.0"
|
||||
source = "https://x.ai/news/grok-4-5"
|
||||
date = "2026-07-08"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 53
|
||||
metric = "resolve rate"
|
||||
harness = "mini-swe-agent"
|
||||
version = "1.1"
|
||||
source = "https://x.ai/news/grok-4-5"
|
||||
date = "2026-07-08"
|
||||
@@ -27,17 +27,3 @@ name = "SWE-Bench Verified"
|
||||
score = 78.9
|
||||
metric = "resolved"
|
||||
source = "https://huggingface.co/XiaomiMiMo/MiMo-V2.5-Pro"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 57.2
|
||||
metric = "resolve rate"
|
||||
source = "https://mimo.xiaomi.com/mimo-v2-5-pro/"
|
||||
date = "2026-04-22"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 86.6
|
||||
metric = "accuracy"
|
||||
source = "https://mimo.xiaomi.com/mimo-v2-5-pro/"
|
||||
date = "2026-04-22"
|
||||
@@ -21,26 +21,3 @@ output = ["text"]
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/zai-org/GLM-5.2"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SWE-Bench Pro"
|
||||
score = 62.1
|
||||
metric = "resolve rate"
|
||||
source = "https://z.ai/blog/glm-5.2"
|
||||
date = "2026-06-16"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 82.7
|
||||
metric = "success rate"
|
||||
harness = "Claude Code"
|
||||
version = "2.1"
|
||||
source = "https://z.ai/blog/glm-5.2"
|
||||
date = "2026-06-16"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierSWE"
|
||||
score = 74.4
|
||||
metric = "dominance"
|
||||
source = "https://z.ai/blog/glm-5.2"
|
||||
date = "2026-06-16"
|
||||
+1
-2
@@ -26,13 +26,12 @@
|
||||
"databricks:generate": "bun ./packages/core/script/generate-databricks.ts",
|
||||
"helicone:generate": "bun ./packages/core/script/generate-helicone.ts",
|
||||
"huggingface:sync": "bun ./packages/core/script/sync-models.ts huggingface",
|
||||
"kilo:sync": "bun ./packages/core/script/sync-models.ts kilo",
|
||||
"llmgateway:sync": "bun ./packages/core/script/sync-models.ts llmgateway",
|
||||
"venice:sync": "bun ./packages/core/script/sync-models.ts venice",
|
||||
"vercel:generate": "bun ./packages/core/script/sync-models.ts vercel",
|
||||
"wandb:generate": "bun ./packages/core/script/sync-models.ts wandb",
|
||||
"digitalocean:sync": "bun ./packages/core/script/sync-models.ts digitalocean",
|
||||
"ambient:sync": "bun ./packages/core/script/sync-models.ts ambient",
|
||||
"ambient:generate": "bun ./packages/core/script/generate-ambient.ts",
|
||||
"models:sync": "bun ./packages/core/script/sync-models.ts",
|
||||
"sync:models": "bun ./packages/core/script/sync-models.ts"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
/**
|
||||
* Generates Ambient model TOML files from https://api.ambient.xyz/v1/models.
|
||||
*
|
||||
* Emits `base_model` TOMLs that inherit upstream metadata
|
||||
* (family, release_date, knowledge, capabilities) from the canonical
|
||||
* provider model, and override only the fields Ambient's API reports:
|
||||
* cost, limit, modalities.
|
||||
*
|
||||
* Flags:
|
||||
* --dry-run Preview generated TOMLs without writing files.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
|
||||
const API_ENDPOINT = "https://api.ambient.xyz/v1/models";
|
||||
|
||||
// Allowlist for the initial rollout.
|
||||
const ALLOWLIST = new Set<string>([
|
||||
"zai-org/GLM-5.1-FP8",
|
||||
"moonshotai/kimi-k2.6",
|
||||
]);
|
||||
|
||||
// Maps Ambient model IDs to canonical model metadata IDs in this repo.
|
||||
const BASE_MODEL_MAP: Record<string, string> = {
|
||||
"zai-org/GLM-5.1-FP8": "zhipuai/glm-5.1",
|
||||
"moonshotai/kimi-k2.6": "moonshotai/kimi-k2.6",
|
||||
};
|
||||
|
||||
const Pricing = z
|
||||
.object({
|
||||
prompt: z.string(),
|
||||
completion: z.string(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const AmbientModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
context_length: z.number(),
|
||||
max_output_length: z.number(),
|
||||
input_modalities: z.array(z.string()),
|
||||
output_modalities: z.array(z.string()),
|
||||
pricing: Pricing,
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const AmbientResponse = z
|
||||
.object({
|
||||
object: z.literal("list"),
|
||||
data: z.array(AmbientModel),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ALLOWED_MODALITIES = new Set(["text", "audio", "image", "video", "pdf"]);
|
||||
|
||||
function modalities(values: string[]): string[] {
|
||||
return values
|
||||
.map((v) => v.toLowerCase())
|
||||
.filter((v) => ALLOWED_MODALITIES.has(v));
|
||||
}
|
||||
|
||||
function perMTok(price: string): number {
|
||||
const n = parseFloat(price);
|
||||
if (!Number.isFinite(n)) {
|
||||
throw new Error(`Invalid price: ${price}`);
|
||||
}
|
||||
// Round to 6 decimals to absorb float noise from per-token strings.
|
||||
return Math.round(n * 1_000_000 * 1_000_000) / 1_000_000;
|
||||
}
|
||||
|
||||
function formatToml(
|
||||
model: z.infer<typeof AmbientModel>,
|
||||
baseModel: string,
|
||||
): string {
|
||||
const lines: string[] = [];
|
||||
lines.push(`base_model = "${baseModel}"`);
|
||||
lines.push("");
|
||||
|
||||
lines.push("[cost]");
|
||||
lines.push(`input = ${perMTok(model.pricing.prompt)}`);
|
||||
lines.push(`output = ${perMTok(model.pricing.completion)}`);
|
||||
if (model.pricing.input_cache_read !== undefined) {
|
||||
lines.push(`cache_read = ${perMTok(model.pricing.input_cache_read)}`);
|
||||
}
|
||||
if (model.pricing.input_cache_write !== undefined) {
|
||||
lines.push(`cache_write = ${perMTok(model.pricing.input_cache_write)}`);
|
||||
}
|
||||
lines.push("");
|
||||
|
||||
lines.push("[limit]");
|
||||
lines.push(`context = ${model.context_length}`);
|
||||
lines.push(`output = ${model.max_output_length}`);
|
||||
lines.push("");
|
||||
|
||||
const input = modalities(model.input_modalities);
|
||||
const output = modalities(model.output_modalities);
|
||||
lines.push("[modalities]");
|
||||
lines.push(`input = [${input.map((m) => `"${m}"`).join(", ")}]`);
|
||||
lines.push(`output = [${output.map((m) => `"${m}"`).join(", ")}]`);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const dryRun = process.argv.includes("--dry-run");
|
||||
|
||||
const outDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"ambient",
|
||||
"models",
|
||||
);
|
||||
|
||||
const res = await fetch(API_ENDPOINT);
|
||||
if (!res.ok) {
|
||||
console.error(`Fetch failed: ${res.status} ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const parsed = AmbientResponse.safeParse(await res.json());
|
||||
if (!parsed.success) {
|
||||
console.error("Invalid Ambient response:", parsed.error.issues);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const selected = parsed.data.data.filter((m) => ALLOWLIST.has(m.id));
|
||||
const missing = [...ALLOWLIST].filter(
|
||||
(id) => !selected.some((m) => m.id === id),
|
||||
);
|
||||
if (missing.length > 0) {
|
||||
console.error(`Allowlisted models missing from API: ${missing.join(", ")}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
let count = 0;
|
||||
for (const model of selected) {
|
||||
const baseModel = BASE_MODEL_MAP[model.id];
|
||||
if (!baseModel) {
|
||||
console.error(`No BASE_MODEL_MAP entry for ${model.id}; skipping`);
|
||||
continue;
|
||||
}
|
||||
const filePath = path.join(outDir, `${model.id}.toml`);
|
||||
const toml = formatToml(model, baseModel);
|
||||
if (dryRun) {
|
||||
console.log(`--- ${path.relative(process.cwd(), filePath)} ---`);
|
||||
console.log(toml);
|
||||
} else {
|
||||
await mkdir(path.dirname(filePath), { recursive: true });
|
||||
await Bun.write(filePath, toml);
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
console.log(
|
||||
`${dryRun ? "Previewed" : "Wrote"} ${count} model file(s) under providers/ambient/models/`,
|
||||
);
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -13,9 +13,6 @@ export const ModelFamilyValues = [
|
||||
"gpt-pro",
|
||||
"gpt-mini",
|
||||
"gpt-nano",
|
||||
"gpt-sol",
|
||||
"gpt-terra",
|
||||
"gpt-luna",
|
||||
"gpt-oss",
|
||||
"gpt-image",
|
||||
|
||||
@@ -76,13 +73,11 @@ export const ModelFamilyValues = [
|
||||
// Moonshot Kimi
|
||||
"kimi",
|
||||
"kimi-k2",
|
||||
"kimi-k3",
|
||||
"kimi-free",
|
||||
"kimi-thinking",
|
||||
|
||||
// Poolside Laguna
|
||||
"laguna",
|
||||
"laguna-s",
|
||||
|
||||
// Mistral family
|
||||
"mistral",
|
||||
@@ -447,6 +442,5 @@ export function inferKimiFamily(...values: string[]): ModelFamily | undefined {
|
||||
const target = values.join(" ").toLowerCase();
|
||||
if (/kimi[^a-z0-9]*k2(?:[^a-z0-9]*\d+)?[^a-z0-9]*thinking/.test(target)) return "kimi-thinking";
|
||||
if (/kimi[\s_-]*k2/.test(target)) return "kimi-k2";
|
||||
if (/kimi[\s_-]*k3/.test(target)) return "kimi-k3";
|
||||
return undefined;
|
||||
}
|
||||
@@ -3,7 +3,12 @@ import { z } from "zod";
|
||||
import { ModelFamily } from "./family";
|
||||
|
||||
type JsonValue =
|
||||
string | number | boolean | null | { [key: string]: JsonValue } | JsonValue[];
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| null
|
||||
| { [key: string]: JsonValue }
|
||||
| JsonValue[];
|
||||
|
||||
const JsonValue: z.ZodType<JsonValue> = z.lazy(() =>
|
||||
z.union([
|
||||
@@ -20,16 +25,7 @@ const ReasoningEffortValue = z.preprocess(
|
||||
(value) => (value === "null" ? null : value),
|
||||
z.union([
|
||||
z.null(),
|
||||
z.enum([
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
]),
|
||||
z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max", "default"]),
|
||||
]),
|
||||
);
|
||||
|
||||
@@ -223,7 +219,6 @@ const ModelBase = z.object({
|
||||
attachment: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
reasoning_options: z.array(ReasoningOption).optional(),
|
||||
variants: z.record(z.record(JsonValue)).optional(),
|
||||
tool_call: z.boolean(),
|
||||
interleaved: z
|
||||
.union([
|
||||
@@ -271,7 +266,6 @@ const ModelBase = z.object({
|
||||
npm: z.string().optional(),
|
||||
api: z.string().optional(),
|
||||
shape: z.enum(["responses", "completions"]).optional(),
|
||||
variant: z.string().optional(),
|
||||
body: z.record(JsonValue).optional(),
|
||||
headers: z.record(z.string()).optional(),
|
||||
})
|
||||
@@ -279,8 +273,7 @@ const ModelBase = z.object({
|
||||
});
|
||||
|
||||
function refineModel<
|
||||
Output extends
|
||||
z.infer<typeof ModelShape> | z.infer<typeof AuthoredModelShape>,
|
||||
Output extends z.infer<typeof ModelShape> | z.infer<typeof AuthoredModelShape>,
|
||||
Def extends z.ZodTypeDef,
|
||||
Input,
|
||||
>(schema: z.ZodType<Output, Def, Input>) {
|
||||
@@ -303,18 +296,6 @@ function refineModel<
|
||||
path: ["reasoning_options"],
|
||||
},
|
||||
)
|
||||
.refine(
|
||||
(data) => {
|
||||
return (
|
||||
data.provider?.variant === undefined ||
|
||||
data.variants?.[data.provider.variant] !== undefined
|
||||
);
|
||||
},
|
||||
{
|
||||
message: "Provider default variant must reference a declared variant",
|
||||
path: ["provider", "variant"],
|
||||
},
|
||||
)
|
||||
.refine(
|
||||
(data) => {
|
||||
return !(
|
||||
|
||||
@@ -4,7 +4,6 @@ import { mergeDeep } from "remeda";
|
||||
import { z } from "zod";
|
||||
|
||||
import { AuthoredModel, AuthoredModelShape, ModelMetadata } from "../schema.js";
|
||||
import { ambient } from "./providers/ambient.js";
|
||||
import { anthropic } from "./providers/anthropic.js";
|
||||
import { baseten } from "./providers/baseten.js";
|
||||
import { chutes } from "./providers/chutes.js";
|
||||
@@ -12,15 +11,12 @@ import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
|
||||
import { crossmodel } from "./providers/crossmodel.js";
|
||||
import { deepinfra } from "./providers/deepinfra.js";
|
||||
import { digitalocean } from "./providers/digitalocean.js";
|
||||
import { empiriolabs } from "./providers/empiriolabs.js";
|
||||
import { google } from "./providers/google.js";
|
||||
import { huggingface } from "./providers/huggingface.js";
|
||||
import { kilo } from "./providers/kilo.js";
|
||||
import { llmgateway } from "./providers/llmgateway.js";
|
||||
import { openai } from "./providers/openai.js";
|
||||
import { openrouter } from "./providers/openrouter.js";
|
||||
import { ovhcloud } from "./providers/ovhcloud.js";
|
||||
import { pioneer } from "./providers/pioneer.js";
|
||||
import { vercel } from "./providers/vercel.js";
|
||||
import { venice } from "./providers/venice.js";
|
||||
import { wandb } from "./providers/wandb.js";
|
||||
@@ -93,7 +89,6 @@ export interface SyncResult {
|
||||
}
|
||||
|
||||
export const providers: {
|
||||
ambient: SyncProvider<any>;
|
||||
anthropic: SyncProvider<any>;
|
||||
baseten: SyncProvider<any>;
|
||||
chutes: SyncProvider<any>;
|
||||
@@ -101,21 +96,17 @@ export const providers: {
|
||||
crossmodel: SyncProvider<any>;
|
||||
deepinfra: SyncProvider<any>;
|
||||
digitalocean: SyncProvider<any>;
|
||||
empiriolabs: SyncProvider<any>;
|
||||
google: SyncProvider<any>;
|
||||
kilo: SyncProvider<any>;
|
||||
huggingface: SyncProvider<any>;
|
||||
llmgateway: SyncProvider<any>;
|
||||
openai: SyncProvider<any>;
|
||||
openrouter: SyncProvider<any>;
|
||||
ovhcloud: SyncProvider<any>;
|
||||
pioneer: SyncProvider<any>;
|
||||
vercel: SyncProvider<any>;
|
||||
venice: SyncProvider<any>;
|
||||
wandb: SyncProvider<any>;
|
||||
xai: SyncProvider<any>;
|
||||
} = {
|
||||
ambient,
|
||||
anthropic,
|
||||
baseten,
|
||||
chutes,
|
||||
@@ -123,15 +114,12 @@ export const providers: {
|
||||
crossmodel,
|
||||
deepinfra,
|
||||
digitalocean,
|
||||
empiriolabs,
|
||||
google,
|
||||
kilo,
|
||||
huggingface,
|
||||
llmgateway,
|
||||
openai,
|
||||
openrouter,
|
||||
ovhcloud,
|
||||
pioneer,
|
||||
vercel,
|
||||
venice,
|
||||
wandb,
|
||||
@@ -139,9 +127,9 @@ export const providers: {
|
||||
};
|
||||
|
||||
export const groups = {
|
||||
aggregators: ["crossmodel", "empiriolabs", "huggingface", "kilo", "llmgateway", "openrouter", "vercel"],
|
||||
aggregators: ["crossmodel", "huggingface", "llmgateway", "openrouter", "vercel"],
|
||||
cloudflare: ["cloudflare-workers-ai"],
|
||||
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
|
||||
direct: ["anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "venice", "wandb", "xai"],
|
||||
} as const;
|
||||
|
||||
type ProviderID = keyof typeof providers;
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { SyncProvider } from "../index.js";
|
||||
import { buildOpenRouterModel, type OpenRouterModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://api.ambient.xyz/v1/models";
|
||||
|
||||
export const AmbientModel = z.object({
|
||||
id: z.string().min(1),
|
||||
name: z.string().min(1),
|
||||
created: z.number(),
|
||||
hugging_face_id: z.string().nullable().optional(),
|
||||
context_length: z.number(),
|
||||
max_output_length: z.number(),
|
||||
input_modalities: z.array(z.string()),
|
||||
output_modalities: z.array(z.string()),
|
||||
pricing: z.object({
|
||||
prompt: z.string(),
|
||||
completion: z.string(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
}).passthrough(),
|
||||
supported_features: z.array(z.string()).default([]),
|
||||
supported_sampling_parameters: z.array(z.string()).default([]),
|
||||
openrouter: z.object({ slug: z.string() }).nullable().optional(),
|
||||
is_ready: z.boolean().default(false),
|
||||
}).passthrough();
|
||||
|
||||
export const AmbientResponse = z.object({
|
||||
object: z.literal("list"),
|
||||
data: z.array(AmbientModel),
|
||||
}).passthrough();
|
||||
|
||||
export type AmbientModel = z.infer<typeof AmbientModel>;
|
||||
|
||||
function toOpenRouterShape(model: AmbientModel): OpenRouterModel {
|
||||
return {
|
||||
id: model.openrouter?.slug ?? model.id,
|
||||
name: model.name,
|
||||
created: model.created,
|
||||
hugging_face_id: model.hugging_face_id ?? null,
|
||||
knowledge_cutoff: null,
|
||||
context_length: model.context_length,
|
||||
architecture: {
|
||||
input_modalities: model.input_modalities,
|
||||
output_modalities: model.output_modalities,
|
||||
},
|
||||
pricing: {
|
||||
prompt: model.pricing.prompt,
|
||||
completion: model.pricing.completion,
|
||||
input_cache_read: model.pricing.input_cache_read,
|
||||
input_cache_write: model.pricing.input_cache_write,
|
||||
},
|
||||
top_provider: {
|
||||
context_length: model.context_length,
|
||||
max_completion_tokens: model.max_output_length,
|
||||
},
|
||||
supported_parameters: [...model.supported_features, ...model.supported_sampling_parameters],
|
||||
};
|
||||
}
|
||||
|
||||
export const ambient = {
|
||||
id: "ambient",
|
||||
name: "Ambient",
|
||||
modelsDir: "providers/ambient/models",
|
||||
deleteMissing: false,
|
||||
sourceID(model) {
|
||||
return model.id;
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} Ambient models were skipped because the catalog reports them as not ready (is_ready=false).`,
|
||||
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
missingNotice(paths) {
|
||||
if (paths.length === 0) return [];
|
||||
return [
|
||||
`${paths.length} local Ambient models were absent from the catalog and were retained for manual lifecycle review.`,
|
||||
`Retained local paths: ${paths.map((item) => `\`${item}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Ambient request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
return AmbientResponse.parse(raw).data;
|
||||
},
|
||||
translateModel(model, context) {
|
||||
if (!model.is_ready) return undefined;
|
||||
const existing = context.existing(model.id);
|
||||
const built = buildOpenRouterModel(toOpenRouterShape(model), existing);
|
||||
const reasoning = model.supported_features.includes("reasoning");
|
||||
const withOptions = reasoning
|
||||
? { ...built, reasoning_options: existing?.reasoning_options ?? [] }
|
||||
: built;
|
||||
const aliasName = ambientAliasName(model.id);
|
||||
return {
|
||||
id: model.id,
|
||||
model: aliasName === undefined ? withOptions : { ...withOptions, name: aliasName },
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<AmbientModel>;
|
||||
|
||||
function ambientAliasName(id: string): string | undefined {
|
||||
if (!id.startsWith("ambient/")) return undefined;
|
||||
const label = id.slice("ambient/".length)
|
||||
.split(/[/-]/)
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ");
|
||||
return `Ambient ${label}`;
|
||||
}
|
||||
@@ -81,7 +81,6 @@ const AUTHOR_BY_VENDOR: Record<string, string> = {
|
||||
xiaomi: "xiaomi",
|
||||
minimax: "minimax",
|
||||
"z-ai": "zhipuai",
|
||||
"x-ai": "xai",
|
||||
tencent: "tencent",
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
const MODELS_API = "https://api.digitalocean.com/v2/gen-ai/models?per_page=200";
|
||||
const CATALOG_API = "https://api.digitalocean.com/v2/gen-ai/models/catalog?limit=200";
|
||||
const PRICING_API = "https://www.digitalocean.com/api/static-content/v1/products";
|
||||
|
||||
export const DigitalOceanModel = z.object({
|
||||
id: z.string().min(1),
|
||||
@@ -14,7 +14,6 @@ export const DigitalOceanModel = z.object({
|
||||
lifecycle_status: z.string(),
|
||||
type: z.string().optional(),
|
||||
thinking: z.boolean().optional(),
|
||||
reasoning_efforts: z.array(z.string()).optional(),
|
||||
context_window: z.union([z.number(), z.string()]).optional(),
|
||||
modalities: z.object({
|
||||
input: z.array(z.string()).optional(),
|
||||
@@ -37,91 +36,75 @@ const DigitalOceanModelsResponse = z.object({
|
||||
}).passthrough().optional(),
|
||||
}).passthrough();
|
||||
|
||||
const DigitalOceanCatalogPricing = z.object({
|
||||
input_price_per_million: z.number().optional(),
|
||||
output_price_per_million: z.number().optional(),
|
||||
cache_read_input_price_per_million: z.number().optional(),
|
||||
cache_write_5m_input_price_per_million: z.number().optional(),
|
||||
const PricingEntry = z.object({
|
||||
name: z.string(),
|
||||
slug: z.string(),
|
||||
model: z.string(),
|
||||
prompt_tokens: z.string().optional(),
|
||||
price: z.object({ rate: z.number() }),
|
||||
}).passthrough();
|
||||
|
||||
const DigitalOceanCatalogModel = z.object({
|
||||
id: z.string().min(1).optional(),
|
||||
model_id: z.string().min(1),
|
||||
name: z.string().min(1),
|
||||
context_window: z.union([z.number(), z.string()]).nullish(),
|
||||
max_output_tokens: z.union([z.number(), z.string()]).nullish(),
|
||||
availability: z.array(z.string()).optional(),
|
||||
modalities: z.object({
|
||||
input: z.array(z.string()).optional(),
|
||||
output: z.array(z.string()).optional(),
|
||||
}).nullish(),
|
||||
pricing: DigitalOceanCatalogPricing.nullish(),
|
||||
pricing_detail: z.object({
|
||||
variants: z.array(z.object({
|
||||
tier: z.string().optional(),
|
||||
mode: z.string().optional(),
|
||||
prices: DigitalOceanCatalogPricing.nullish(),
|
||||
}).passthrough()),
|
||||
}).nullish(),
|
||||
}).passthrough();
|
||||
|
||||
const DigitalOceanCatalogResponse = z.object({
|
||||
data: z.array(DigitalOceanCatalogModel),
|
||||
links: z.object({
|
||||
pages: z.object({
|
||||
next: z.string().nullable().optional(),
|
||||
}).passthrough().optional(),
|
||||
}).passthrough().optional(),
|
||||
meta: z.object({
|
||||
page: z.number().int().positive(),
|
||||
pages: z.number().int().nonnegative(),
|
||||
total: z.number().int().nonnegative(),
|
||||
}).passthrough().optional(),
|
||||
}).passthrough();
|
||||
|
||||
const DigitalOceanCatalogDetailResponse = z.object({
|
||||
data: DigitalOceanCatalogModel,
|
||||
const DigitalOceanPricingResponse = z.object({
|
||||
gradient: z.object({ models: z.array(PricingEntry) }),
|
||||
}).passthrough();
|
||||
|
||||
const DigitalOceanResponse = z.object({
|
||||
models: z.array(DigitalOceanModel),
|
||||
catalog: z.array(DigitalOceanCatalogModel),
|
||||
pricing: z.array(PricingEntry),
|
||||
});
|
||||
|
||||
export type DigitalOceanModel = z.infer<typeof DigitalOceanModel>;
|
||||
type DigitalOceanCatalogModel = z.infer<typeof DigitalOceanCatalogModel>;
|
||||
type PricingEntry = z.infer<typeof PricingEntry>;
|
||||
|
||||
interface ModelPricing {
|
||||
input?: number;
|
||||
output?: number;
|
||||
cacheRead?: number;
|
||||
cacheWrite?: number;
|
||||
extended?: {
|
||||
context: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
cacheRead?: number;
|
||||
cacheWrite?: number;
|
||||
};
|
||||
inputOver200k?: number;
|
||||
outputOver200k?: number;
|
||||
}
|
||||
|
||||
type ReasoningEffort =
|
||||
| null
|
||||
| "none"
|
||||
| "minimal"
|
||||
| "low"
|
||||
| "medium"
|
||||
| "high"
|
||||
| "xhigh"
|
||||
| "max"
|
||||
| "default";
|
||||
|
||||
export interface DigitalOceanSourceModel extends DigitalOceanModel {
|
||||
max_output_tokens?: string | number | null;
|
||||
availability?: string[];
|
||||
pricing?: ModelPricing;
|
||||
}
|
||||
|
||||
const PRICING_NAME_OVERRIDES: Record<string, string> = {
|
||||
"claude sonnet 4.6": "anthropic-claude-4.6-sonnet",
|
||||
"claude sonnet 4.5": "anthropic-claude-4.5-sonnet",
|
||||
"claude sonnet 4": "anthropic-claude-sonnet-4",
|
||||
"claude haiku 4.5": "anthropic-claude-haiku-4.5",
|
||||
"claude opus 4.6": "anthropic-claude-opus-4.6",
|
||||
"claude opus 4.5": "anthropic-claude-opus-4.5",
|
||||
"claude opus 4.1": "anthropic-claude-4.1-opus",
|
||||
"claude opus 4": "anthropic-claude-opus-4",
|
||||
"gpt-5.4": "openai-gpt-5.4",
|
||||
"gpt-5.4 mini": "openai-gpt-5.4-mini",
|
||||
"gpt-5.4 nano": "openai-gpt-5.4-nano",
|
||||
"gpt-5.4 pro": "openai-gpt-5.4-pro",
|
||||
"gpt-5.3-codex": "openai-gpt-5.3-codex",
|
||||
"gpt-5.2": "openai-gpt-5.2",
|
||||
"gpt-5.2 pro": "openai-gpt-5.2-pro",
|
||||
"gpt-5.1-codex-max": "openai-gpt-5.1-codex-max",
|
||||
"gpt-5": "openai-gpt-5",
|
||||
"gpt-5 mini": "openai-gpt-5-mini",
|
||||
"gpt-5 nano": "openai-gpt-5-nano",
|
||||
"gpt-4.1": "openai-gpt-4.1",
|
||||
"gpt image 1": "openai-gpt-image-1",
|
||||
"gpt image 1.5": "openai-gpt-image-1.5",
|
||||
"gpt-oss-120b": "openai-gpt-oss-120b",
|
||||
"gpt-oss-20b": "openai-gpt-oss-20b",
|
||||
"gpt-4o": "openai-gpt-4o",
|
||||
"gpt-4o mini": "openai-gpt-4o-mini",
|
||||
o1: "openai-o1",
|
||||
"o3-mini": "openai-o3-mini",
|
||||
"deepseek r1 distill llama 70b": "deepseek-r1-distill-llama-70b",
|
||||
"llama 3.3 70b": "llama3.3-70b-instruct",
|
||||
"qwen3-32b": "alibaba-qwen3-32b",
|
||||
"minimax m2.5": "minimax-m2.5",
|
||||
"kimi k2.5": "kimi-k2.5",
|
||||
"nvidia nemotron 3 super 120b": "nvidia-nemotron-3-super-120b",
|
||||
"glm 5": "glm-5",
|
||||
};
|
||||
|
||||
export const digitalocean = {
|
||||
id: "digitalocean",
|
||||
name: "DigitalOcean",
|
||||
@@ -157,7 +140,7 @@ export const digitalocean = {
|
||||
translateModel(model, context) {
|
||||
const existing = context.existing(model.id);
|
||||
const contextWindow = number(model.context_window);
|
||||
const outputLimit = number(model.max_output_tokens ?? undefined);
|
||||
const outputLimit = model.settings?.find((setting) => setting.name === "max_tokens")?.max;
|
||||
if (model.pricing?.input === undefined || model.pricing.output === undefined) return undefined;
|
||||
if (
|
||||
existing === undefined
|
||||
@@ -179,11 +162,19 @@ export const digitalocean = {
|
||||
} satisfies SyncProvider<DigitalOceanSourceModel>;
|
||||
|
||||
export async function fetchDigitalOceanModels(key: string, fetcher: typeof fetch = fetch) {
|
||||
const [models, catalog] = await Promise.all([
|
||||
const [models, pricingResponse] = await Promise.all([
|
||||
fetchAllDigitalOceanModels(key, fetcher),
|
||||
fetchAllDigitalOceanCatalog(fetcher),
|
||||
fetcher(PRICING_API, {
|
||||
headers: { "User-Agent": "models.dev/digitalocean-sync" },
|
||||
}),
|
||||
]);
|
||||
return { models, catalog };
|
||||
|
||||
if (!pricingResponse.ok) {
|
||||
throw new Error(`DigitalOcean pricing request failed: ${pricingResponse.status} ${pricingResponse.statusText}`);
|
||||
}
|
||||
|
||||
const pricing = DigitalOceanPricingResponse.parse(await pricingResponse.json()).gradient.models;
|
||||
return { models, pricing };
|
||||
}
|
||||
|
||||
async function fetchAllDigitalOceanModels(key: string, fetcher: typeof fetch) {
|
||||
@@ -210,124 +201,56 @@ async function fetchAllDigitalOceanModels(key: string, fetcher: typeof fetch) {
|
||||
return models;
|
||||
}
|
||||
|
||||
async function fetchAllDigitalOceanCatalog(fetcher: typeof fetch) {
|
||||
const catalog: DigitalOceanCatalogModel[] = [];
|
||||
const visited = new Set<string>();
|
||||
let url: string | undefined = CATALOG_API;
|
||||
|
||||
while (url !== undefined) {
|
||||
if (visited.has(url)) throw new Error(`DigitalOcean catalog pagination repeated URL: ${url}`);
|
||||
visited.add(url);
|
||||
|
||||
const response = await fetcher(url, {
|
||||
headers: { "Content-Type": "application/json", "User-Agent": "models.dev/digitalocean-sync" },
|
||||
});
|
||||
if (!response.ok) {
|
||||
throw new Error(`DigitalOcean catalog request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
|
||||
const page = DigitalOceanCatalogResponse.parse(await response.json());
|
||||
catalog.push(...page.data);
|
||||
const next = page.links?.pages?.next;
|
||||
if (next) {
|
||||
url = new URL(next, url).toString();
|
||||
} else if (page.meta !== undefined && page.meta.page < page.meta.pages) {
|
||||
const nextPage = new URL(url);
|
||||
nextPage.searchParams.set("page", String(page.meta.page + 1));
|
||||
url = nextPage.toString();
|
||||
} else {
|
||||
url = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
return Promise.all(catalog.map(async (model) => {
|
||||
if (model.id === undefined || model.availability?.includes("serverless") !== true) return model;
|
||||
const response = await fetcher(`https://api.digitalocean.com/v2/gen-ai/models/catalog/${model.id}`, {
|
||||
headers: { "Content-Type": "application/json", "User-Agent": "models.dev/digitalocean-sync" },
|
||||
});
|
||||
if (!response.ok) {
|
||||
throw new Error(`DigitalOcean catalog detail request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
const detail = DigitalOceanCatalogDetailResponse.parse(await response.json()).data;
|
||||
return {
|
||||
...model,
|
||||
modalities: detail.modalities ?? model.modalities,
|
||||
pricing_detail: detail.pricing_detail ?? model.pricing_detail,
|
||||
};
|
||||
}));
|
||||
}
|
||||
|
||||
export function parseDigitalOceanModels(raw: unknown): DigitalOceanSourceModel[] {
|
||||
const response = DigitalOceanResponse.parse(raw);
|
||||
const catalog = new Map(response.catalog.map((model) => [model.model_id, model]));
|
||||
const pricing = buildPricingMap(response.pricing, response.models);
|
||||
return response.models
|
||||
.map((model) => mergeCatalogModel(model, catalog.get(model.id)))
|
||||
.filter(isManagedTextModel);
|
||||
.filter(isManagedTextModel)
|
||||
.map((model) => ({ ...model, pricing: pricing.get(model.id) }));
|
||||
}
|
||||
|
||||
function mergeCatalogModel(
|
||||
model: DigitalOceanModel,
|
||||
catalog: DigitalOceanCatalogModel | undefined,
|
||||
): DigitalOceanSourceModel {
|
||||
return {
|
||||
...model,
|
||||
name: catalog?.name ?? model.name,
|
||||
context_window: catalog?.context_window ?? model.context_window,
|
||||
max_output_tokens: catalog?.max_output_tokens,
|
||||
modalities: catalog?.modalities ?? model.modalities,
|
||||
availability: catalog?.availability,
|
||||
pricing: catalogPricing(catalog),
|
||||
};
|
||||
}
|
||||
|
||||
function isManagedTextModel(model: DigitalOceanSourceModel) {
|
||||
function isManagedTextModel(model: DigitalOceanModel) {
|
||||
const output = normalizeModalities(model.modalities?.output ?? [], []);
|
||||
return model.availability?.includes("serverless") === true
|
||||
&& output.includes("text")
|
||||
&& model.type !== "embedding"
|
||||
&& model.type !== "reranking";
|
||||
return output.includes("text") && model.type !== "embedding" && model.type !== "reranking";
|
||||
}
|
||||
|
||||
function catalogPricing(model: DigitalOceanCatalogModel | undefined): ModelPricing | undefined {
|
||||
if (model?.pricing == null) return undefined;
|
||||
const standard = model.pricing_detail?.variants.find((variant) =>
|
||||
variant.mode === "MODEL_BILLING_MODE_INTERACTIVE"
|
||||
&& variant.tier === "MODEL_PRICING_TIER_STANDARD"
|
||||
)?.prices;
|
||||
const extended = model.pricing_detail?.variants.find((variant) =>
|
||||
variant.mode === "MODEL_BILLING_MODE_INTERACTIVE"
|
||||
&& variant.tier?.startsWith("MODEL_PRICING_TIER_EXTENDED_") === true
|
||||
);
|
||||
const extendedContext = pricingTierContext(extended?.tier);
|
||||
return {
|
||||
input: perMillion(model.pricing.input_price_per_million),
|
||||
output: perMillion(model.pricing.output_price_per_million),
|
||||
cacheRead: perMillion(model.pricing.cache_read_input_price_per_million),
|
||||
cacheWrite: perMillion(standard?.cache_write_5m_input_price_per_million),
|
||||
extended: extendedContext === undefined || extended?.prices == null
|
||||
? undefined
|
||||
: {
|
||||
context: extendedContext,
|
||||
input: perMillion(extended.prices.input_price_per_million),
|
||||
output: perMillion(extended.prices.output_price_per_million),
|
||||
cacheRead: perMillion(extended.prices.cache_read_input_price_per_million),
|
||||
cacheWrite: perMillion(extended.prices.cache_write_5m_input_price_per_million),
|
||||
},
|
||||
};
|
||||
function pricingName(value: string) {
|
||||
return value
|
||||
.replace(/\s+(input|output)\s+tokens$/i, "")
|
||||
.replace(/\s*\(public preview\)\s*/i, " ")
|
||||
.trim()
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
function pricingTierContext(tier: string | undefined) {
|
||||
// Tier names describe capacity; Anthropic's 1M surcharge starts above 200K.
|
||||
if (tier === "MODEL_PRICING_TIER_EXTENDED_1M") return 200_000;
|
||||
if (tier === "MODEL_PRICING_TIER_EXTENDED_272K") return 272_000;
|
||||
return undefined;
|
||||
function normalizedName(value: string) {
|
||||
return value.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
||||
}
|
||||
|
||||
function perMillion(value: number | undefined) {
|
||||
if (value === undefined) return undefined;
|
||||
// The live catalog currently returns per-token rates despite the field names.
|
||||
const normalized = value < 0.001 ? value * 1_000_000 : value;
|
||||
return Math.round(normalized * 10_000) / 10_000;
|
||||
export function buildPricingMap(entries: PricingEntry[], models: DigitalOceanModel[]) {
|
||||
const names = new Map<string, string[]>();
|
||||
for (const model of models) {
|
||||
const key = normalizedName(model.name);
|
||||
names.set(key, [...names.get(key) ?? [], model.id]);
|
||||
}
|
||||
|
||||
const result = new Map<string, ModelPricing>();
|
||||
for (const entry of entries) {
|
||||
const name = pricingName(entry.name);
|
||||
const matches = names.get(normalizedName(name)) ?? [];
|
||||
const id = PRICING_NAME_OVERRIDES[name] ?? (matches.length === 1 ? matches[0] : undefined);
|
||||
if (id === undefined) continue;
|
||||
|
||||
const price = Math.round(entry.price.rate * 10_000) / 10_000;
|
||||
const current = result.get(id) ?? {};
|
||||
const input = /\sinput\s+tokens$/i.test(entry.name);
|
||||
const over200k = entry.prompt_tokens === ">200k";
|
||||
if (input && over200k) current.inputOver200k = price;
|
||||
else if (!input && over200k) current.outputOver200k = price;
|
||||
else if (input) current.input = price;
|
||||
else current.output = price;
|
||||
result.set(id, current);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
type Modality = "text" | "audio" | "image" | "video" | "pdf";
|
||||
@@ -356,40 +279,6 @@ function inferFamily(id: string, name: string) {
|
||||
.find((family) => target.includes(family.toLowerCase()));
|
||||
}
|
||||
|
||||
function reasoningOptionsFor(
|
||||
model: DigitalOceanSourceModel,
|
||||
existing: ExistingModel | undefined,
|
||||
): ExistingModel["reasoning_options"] {
|
||||
if (model.reasoning_efforts === undefined) return existing?.reasoning_options;
|
||||
const values = model.reasoning_efforts
|
||||
.map((value) => value === "null" ? null : value)
|
||||
.filter(isReasoningEffort);
|
||||
const preserved = existing?.reasoning_options?.filter((option) => option.type !== "effort") ?? [];
|
||||
return values.length > 0 ? [...preserved, { type: "effort", values }] : preserved;
|
||||
}
|
||||
|
||||
function isReasoningEffort(value: string | null): value is ReasoningEffort {
|
||||
return value === null
|
||||
|| value === "none"
|
||||
|| value === "minimal"
|
||||
|| value === "low"
|
||||
|| value === "medium"
|
||||
|| value === "high"
|
||||
|| value === "xhigh"
|
||||
|| value === "max"
|
||||
|| value === "default";
|
||||
}
|
||||
|
||||
function status(
|
||||
lifecycleStatus: string,
|
||||
existing: ExistingModel["status"],
|
||||
): ExistingModel["status"] {
|
||||
const lifecycle = lifecycleStatus.toLowerCase().replaceAll("_", "-");
|
||||
if (lifecycle === "deprecated" || lifecycle === "end-of-life") return "deprecated";
|
||||
if (lifecycle === "public-preview") return "beta";
|
||||
return existing === "deprecated" || existing === "beta" ? undefined : existing;
|
||||
}
|
||||
|
||||
function cost(model: DigitalOceanSourceModel, existing: ExistingModel | undefined) {
|
||||
const input = model.pricing?.input ?? existing?.cost?.input;
|
||||
const output = model.pricing?.output ?? existing?.cost?.output;
|
||||
@@ -399,18 +288,18 @@ function cost(model: DigitalOceanSourceModel, existing: ExistingModel | undefine
|
||||
const longContext = existingTiers.find((tier) =>
|
||||
(tier.tier.type === undefined || tier.tier.type === "context") && tier.tier.size >= 200_000
|
||||
);
|
||||
const extended = model.pricing?.extended;
|
||||
const hasLongContextPricing = extended?.input !== undefined && extended.output !== undefined;
|
||||
const hasLongContextPricing = model.pricing?.inputOver200k !== undefined
|
||||
&& model.pricing.outputOver200k !== undefined;
|
||||
const tiers = hasLongContextPricing
|
||||
? [
|
||||
...existingTiers.filter((tier) => tier !== longContext),
|
||||
{
|
||||
tier: { type: "context" as const, size: extended.context },
|
||||
input: extended.input!,
|
||||
output: extended.output!,
|
||||
tier: { type: "context" as const, size: longContext?.tier.size ?? 200_000 },
|
||||
input: model.pricing!.inputOver200k!,
|
||||
output: model.pricing!.outputOver200k!,
|
||||
reasoning: longContext?.reasoning,
|
||||
cache_read: extended.cacheRead ?? longContext?.cache_read,
|
||||
cache_write: extended.cacheWrite ?? longContext?.cache_write,
|
||||
cache_read: longContext?.cache_read,
|
||||
cache_write: longContext?.cache_write,
|
||||
},
|
||||
]
|
||||
: existingTiers;
|
||||
@@ -419,8 +308,8 @@ function cost(model: DigitalOceanSourceModel, existing: ExistingModel | undefine
|
||||
input,
|
||||
output,
|
||||
reasoning: existing?.cost?.reasoning,
|
||||
cache_read: model.pricing?.cacheRead ?? existing?.cost?.cache_read,
|
||||
cache_write: model.pricing?.cacheWrite ?? existing?.cost?.cache_write,
|
||||
cache_read: existing?.cost?.cache_read,
|
||||
cache_write: existing?.cost?.cache_write,
|
||||
input_audio: existing?.cost?.input_audio,
|
||||
output_audio: existing?.cost?.output_audio,
|
||||
tiers: tiers.length > 0 ? tiers : undefined,
|
||||
@@ -441,19 +330,14 @@ export function buildDigitalOceanModel(
|
||||
existing?.modalities?.output ?? ["text"],
|
||||
);
|
||||
const context = number(model.context_window) ?? existing?.limit?.context ?? 0;
|
||||
const maxTokens = number(model.max_output_tokens ?? undefined);
|
||||
const maxTokens = model.settings?.find((setting) => setting.name === "max_tokens")?.max;
|
||||
const limit = {
|
||||
context,
|
||||
input: existing?.limit?.input,
|
||||
output: maxTokens ?? existing?.limit?.output ?? 0,
|
||||
};
|
||||
const textOutput = output.includes("text") && !output.includes("image") && !output.includes("video");
|
||||
const remoteReasoning = textOutput
|
||||
&& ((model.thinking ?? false) || (model.reasoning_efforts?.length ?? 0) > 0);
|
||||
const providerReasoning = remoteReasoning ? true : existing?.reasoning;
|
||||
const reasoning = providerReasoning ?? false;
|
||||
const reasoningOptions = reasoning ? reasoningOptionsFor(model, existing) : undefined;
|
||||
const modelStatus = status(model.lifecycle_status, existing?.status);
|
||||
const reasoning = existing?.reasoning ?? (textOutput && (model.thinking ?? false));
|
||||
const releaseDate = existing?.release_date ?? model.created_at?.slice(0, 10) ?? new Date().toISOString().slice(0, 10);
|
||||
const values: Partial<SyncedFullModel> = {
|
||||
name: model.name,
|
||||
@@ -473,13 +357,15 @@ export function buildDigitalOceanModel(
|
||||
last_updated: existing?.last_updated ?? releaseDate,
|
||||
attachment: existing?.attachment ?? input.some((value) => value !== "text"),
|
||||
reasoning,
|
||||
reasoning_options: reasoningOptions,
|
||||
reasoning_options: existing?.reasoning_options,
|
||||
temperature: existing?.temperature ?? true,
|
||||
tool_call: existing?.tool_call ?? textOutput,
|
||||
structured_output: existing?.structured_output,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
status: modelStatus,
|
||||
status: model.lifecycle_status === "end_of_life"
|
||||
? "deprecated"
|
||||
: existing?.status === "deprecated" ? undefined : existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
cost: cost(model, existing),
|
||||
limit,
|
||||
@@ -493,12 +379,14 @@ export function buildDigitalOceanModel(
|
||||
name: model.name,
|
||||
description: existing?.description,
|
||||
attachment: input.some((value) => value !== "text"),
|
||||
reasoning: providerReasoning,
|
||||
reasoning_options: reasoningOptions,
|
||||
reasoning: model.thinking ?? existing?.reasoning,
|
||||
reasoning_options: existing?.reasoning_options,
|
||||
temperature: existing?.temperature,
|
||||
tool_call: existing?.tool_call,
|
||||
structured_output: existing?.structured_output,
|
||||
status: modelStatus,
|
||||
status: model.lifecycle_status === "end_of_life"
|
||||
? "deprecated"
|
||||
: existing?.status === "deprecated" ? undefined : existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
cost: cost(model, existing),
|
||||
limit,
|
||||
|
||||
@@ -1,367 +0,0 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
// EmpirioLabs exposes a public, unauthenticated OpenAI-compatible model
|
||||
// catalog, so no API key is needed or used for this sync.
|
||||
const API_ENDPOINT = "https://api.empiriolabs.ai/v1/models";
|
||||
|
||||
const CANONICAL_BASE_MODELS: Record<string, string> = {
|
||||
"fugu-ultra": "sakana/fugu-ultra",
|
||||
"gemma-4-26b-a4b": "google/gemma-4-26b-a4b-it",
|
||||
"gemma-4-e4b": "google/gemma-4-E4B-it",
|
||||
"mistral-medium-3": "mistral/mistral-medium-2505",
|
||||
"mistral-small-4": "mistral/mistral-small-2603",
|
||||
"muse-spark-1-1": "meta/muse-spark-1.1",
|
||||
"qwen3-5-9b": "alibaba/qwen3.5-9b",
|
||||
"qwen3-7-max": "alibaba/qwen3.7-max",
|
||||
"qwen3-7-plus": "alibaba/qwen3.7-plus",
|
||||
"step-3-5-flash": "stepfun/step-3.5-flash",
|
||||
"step-3-5-flash-2603": "stepfun/step-3.5-flash-2603",
|
||||
"step-3-7-flash": "stepfun/step-3.7-flash",
|
||||
};
|
||||
|
||||
const EmpiriolabsParameter = z
|
||||
.object({
|
||||
name: z.string(),
|
||||
type: z.string().optional(),
|
||||
options: z.array(z.string()).optional(),
|
||||
min: z.number().optional(),
|
||||
max: z.number().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const EmpiriolabsPricingTier = z
|
||||
.object({
|
||||
prompt: z.string().optional(),
|
||||
completion: z.string().optional(),
|
||||
input_cache_read: z.string().optional(),
|
||||
min_context: z.number().nullable().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
// Pricing is returned either as a single tier object or as an array of tier
|
||||
// objects (tiered/context-priced models). Accept both shapes.
|
||||
const EmpiriolabsPricing = z.union([
|
||||
z.array(EmpiriolabsPricingTier),
|
||||
EmpiriolabsPricingTier,
|
||||
]);
|
||||
|
||||
const EmpiriolabsModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
display_name: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
category: z.string().optional(),
|
||||
context_length: z.number().nullable().optional(),
|
||||
context_window: z.number().nullable().optional(),
|
||||
max_output_tokens: z.number().nullable().optional(),
|
||||
model_released_at: z.string().nullable().optional(),
|
||||
pricing: EmpiriolabsPricing.optional(),
|
||||
capabilities: z.record(z.unknown()).optional(),
|
||||
features: z.array(z.string()).optional(),
|
||||
structured_output: z.string().nullable().optional(),
|
||||
input_modalities: z.array(z.string()).optional(),
|
||||
output_modalities: z.array(z.string()).optional(),
|
||||
supported_parameters: z.array(EmpiriolabsParameter).optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const EmpiriolabsResponse = z
|
||||
.object({
|
||||
data: z.array(EmpiriolabsModel),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export type EmpiriolabsModel = z.infer<typeof EmpiriolabsModel>;
|
||||
|
||||
export const empiriolabs = {
|
||||
id: "empiriolabs",
|
||||
name: "EmpirioLabs AI",
|
||||
modelsDir: "providers/empiriolabs/models",
|
||||
sourceID(model) {
|
||||
return model.id;
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} EmpirioLabs AI models returned by the API were not created because they could not be mapped exactly to models.dev canonical metadata. `
|
||||
+ "Existing models and canonical matches are still updated from API-authoritative fields.",
|
||||
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`EmpirioLabs request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
// Text chat models only. Skip non-text categories (image, video, audio,
|
||||
// 3D, research, tools) and regional/capability variant lanes (id has ":").
|
||||
return EmpiriolabsResponse.parse(raw).data.filter(
|
||||
(model) => (model.category ?? "").toLowerCase() === "text" && !model.id.includes(":"),
|
||||
);
|
||||
},
|
||||
translateModel(model, context) {
|
||||
const existing = context.existing(model.id);
|
||||
const baseModel = existing?.base_model ?? resolveEmpiriolabsBaseModel(model.id);
|
||||
if (existing === undefined && baseModel === undefined) return undefined;
|
||||
const built = buildEmpiriolabsModel(model, existing, baseModel);
|
||||
// A model with no resolvable context window cannot produce a valid TOML
|
||||
// (limit.context is required), so skip it rather than fail the whole sync.
|
||||
if (built === undefined) return undefined;
|
||||
return {
|
||||
id: model.id,
|
||||
model: built,
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<EmpiriolabsModel>;
|
||||
|
||||
type Modality = "text" | "audio" | "image" | "video" | "pdf";
|
||||
type EffortValue =
|
||||
| "none"
|
||||
| "minimal"
|
||||
| "low"
|
||||
| "medium"
|
||||
| "high"
|
||||
| "xhigh"
|
||||
| "max"
|
||||
| "default";
|
||||
|
||||
const EFFORT_VALUES: EffortValue[] = [
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
];
|
||||
|
||||
function price(value: string | undefined) {
|
||||
if (value === undefined) return undefined;
|
||||
const number = Number(value);
|
||||
// Per-token string converted to a per-1M-token number.
|
||||
return Number.isFinite(number) && number >= 0
|
||||
? Math.round(number * 1_000_000_000_000) / 1_000_000
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function nonZeroPrice(value: string | undefined) {
|
||||
const result = price(value);
|
||||
return result !== undefined && result > 0 ? result : undefined;
|
||||
}
|
||||
|
||||
type TierCost = { input: number; output: number; cache_read?: number };
|
||||
|
||||
function tierCost(tier: z.infer<typeof EmpiriolabsPricingTier> | undefined): TierCost | undefined {
|
||||
const input = price(tier?.prompt);
|
||||
const output = price(tier?.completion);
|
||||
if (input === undefined || output === undefined) return undefined;
|
||||
const cacheRead = nonZeroPrice(tier?.input_cache_read);
|
||||
return { input, output, cache_read: cacheRead };
|
||||
}
|
||||
|
||||
function modalities(values: string[] | undefined, fallback: Modality[]): Modality[] {
|
||||
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
|
||||
const result = (values ?? [])
|
||||
.map((value) => value.toLowerCase())
|
||||
.map((value) => (value === "file" ? "pdf" : value))
|
||||
.filter((value): value is Modality => allowed.has(value as Modality));
|
||||
return [...new Set(result.length > 0 ? result : fallback)];
|
||||
}
|
||||
|
||||
function reasoningOptions(model: EmpiriolabsModel): SyncedModel["reasoning_options"] {
|
||||
const params = model.supported_parameters ?? [];
|
||||
const options: NonNullable<SyncedModel["reasoning_options"]> = [];
|
||||
if (params.some((parameter) => parameter.name === "enable_thinking")) {
|
||||
options.push({ type: "toggle" });
|
||||
}
|
||||
|
||||
const effort = params.find((parameter) => parameter.name === "reasoning_effort");
|
||||
if (effort?.options?.length) {
|
||||
const values = effort.options.filter((value): value is EffortValue =>
|
||||
(EFFORT_VALUES as string[]).includes(value),
|
||||
);
|
||||
if (values.length > 0) options.push({ type: "effort", values });
|
||||
}
|
||||
|
||||
const budget = params.find((parameter) => parameter.name === "thinking_budget");
|
||||
if (budget !== undefined) {
|
||||
const option: { type: "budget_tokens"; min?: number; max?: number } = { type: "budget_tokens" };
|
||||
if (budget.min !== undefined) option.min = budget.min;
|
||||
if (budget.max !== undefined) option.max = budget.max;
|
||||
options.push(option);
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
function parameterOutputLimit(model: EmpiriolabsModel) {
|
||||
const parameter = (model.supported_parameters ?? []).find(
|
||||
(item) => item.name === "max_tokens" || item.name === "max_completion_tokens",
|
||||
);
|
||||
return parameter?.max !== undefined && parameter.max > 0 ? parameter.max : undefined;
|
||||
}
|
||||
|
||||
export function resolveEmpiriolabsBaseModel(id: string) {
|
||||
const explicit = CANONICAL_BASE_MODELS[id];
|
||||
if (explicit !== undefined) return explicit;
|
||||
return canonicalCandidates(id)
|
||||
.map((candidate) => resolveCanonicalBaseModel(candidate))
|
||||
.find((candidate) => candidate !== undefined);
|
||||
}
|
||||
|
||||
function canonicalCandidates(id: string) {
|
||||
const candidates: string[] = [];
|
||||
|
||||
if (id.startsWith("deepseek-")) {
|
||||
candidates.push(`deepseek/${id}`);
|
||||
candidates.push(`deepseek/${id.replace(/^deepseek-v(\d+)-(\d+)/, "deepseek-v$1.$2")}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("glm-")) {
|
||||
const normalized = id
|
||||
.replace(/^glm-(\d+)-(\d+)/, "glm-$1.$2")
|
||||
.replace(/^glm-(\d+)-(\d+)v/, "glm-$1.$2v");
|
||||
candidates.push(`z-ai/${id}`);
|
||||
candidates.push(`z-ai/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("kimi-")) {
|
||||
const normalized = id.replace(/^(kimi-k\d+)-(\d+)/, "$1.$2");
|
||||
candidates.push(`moonshotai/${id}`);
|
||||
candidates.push(`moonshotai/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("minimax-")) {
|
||||
const normalized = id.replace(/^minimax-m(\d+)-(\d+)/, "minimax-m$1.$2");
|
||||
candidates.push(`minimax/${id}`);
|
||||
candidates.push(`minimax/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("mimo-")) {
|
||||
const normalized = id.replace(/^mimo-v(\d+)-(\d+)/, "mimo-v$1.$2");
|
||||
candidates.push(`xiaomi/${id}`);
|
||||
candidates.push(`xiaomi/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("qwen")) {
|
||||
const normalized = id.replace(/^(qwen\d+)-(\d+)/, "$1.$2");
|
||||
candidates.push(`qwen/${id}`);
|
||||
candidates.push(`qwen/${normalized}`);
|
||||
}
|
||||
|
||||
return [...new Set(candidates)];
|
||||
}
|
||||
|
||||
export function buildEmpiriolabsModel(
|
||||
model: EmpiriolabsModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel = existing?.base_model ?? resolveEmpiriolabsBaseModel(model.id),
|
||||
): SyncedModel | undefined {
|
||||
const features = new Set(model.features ?? []);
|
||||
const capabilities = (model.capabilities ?? {}) as Record<string, unknown>;
|
||||
const input = modalities(model.input_modalities, ["text"]);
|
||||
const output = modalities(model.output_modalities, ["text"]);
|
||||
const attachment = input.some((value) => value !== "text");
|
||||
const reasoning =
|
||||
capabilities.reasoning === true || features.has("reasoning") || existing?.reasoning === true;
|
||||
const toolCall =
|
||||
features.has("function_calling") || features.has("tools") || existing?.tool_call === true;
|
||||
const structuredOutput = features.has("structured_output") || existing?.structured_output === true;
|
||||
const temperature =
|
||||
(model.supported_parameters ?? []).some((parameter) => parameter.name === "temperature")
|
||||
|| existing?.temperature === true;
|
||||
|
||||
const pricingTiers = model.pricing === undefined
|
||||
? []
|
||||
: Array.isArray(model.pricing)
|
||||
? [...model.pricing].sort((a, b) => (a.min_context ?? 0) - (b.min_context ?? 0))
|
||||
: [model.pricing];
|
||||
const baseCost = tierCost(pricingTiers[0]);
|
||||
const contextTiers = pricingTiers
|
||||
.slice(1)
|
||||
.map((tier) => {
|
||||
const tierPricing = tierCost(tier);
|
||||
return tierPricing === undefined || tier.min_context === undefined || tier.min_context === null
|
||||
? undefined
|
||||
: { tier: { type: "context" as const, size: tier.min_context }, ...tierPricing };
|
||||
})
|
||||
.filter((tier): tier is NonNullable<typeof tier> => tier !== undefined);
|
||||
const cost = baseCost !== undefined
|
||||
? {
|
||||
...baseCost,
|
||||
reasoning: existing?.cost?.reasoning,
|
||||
cache_write: existing?.cost?.cache_write,
|
||||
tiers: contextTiers.length > 0 ? contextTiers : undefined,
|
||||
}
|
||||
: existing?.cost;
|
||||
|
||||
const context =
|
||||
model.context_length ?? model.context_window ?? existing?.limit?.context;
|
||||
// No usable context window: cannot build a valid model TOML, so skip.
|
||||
if (context === undefined || context === null) return undefined;
|
||||
|
||||
const releaseDate = baseModel === undefined
|
||||
? model.model_released_at ?? existing?.release_date
|
||||
: undefined;
|
||||
const lastUpdated = baseModel === undefined
|
||||
? model.model_released_at ?? existing?.last_updated ?? releaseDate
|
||||
: existing?.last_updated ?? releaseDate;
|
||||
const outputTokens = model.max_output_tokens
|
||||
?? parameterOutputLimit(model)
|
||||
?? existing?.limit?.output
|
||||
?? context;
|
||||
const limit = {
|
||||
context,
|
||||
input: existing?.limit?.input,
|
||||
output: outputTokens,
|
||||
};
|
||||
const values: Partial<SyncedFullModel> = {
|
||||
name: model.display_name ?? model.name ?? model.id,
|
||||
description: baseModel === undefined ? existing?.description ?? model.description : existing?.description,
|
||||
family: existing?.family,
|
||||
release_date: releaseDate,
|
||||
last_updated: lastUpdated,
|
||||
attachment,
|
||||
reasoning,
|
||||
reasoning_options: reasoning ? reasoningOptions(model) : undefined,
|
||||
temperature: temperature || undefined,
|
||||
tool_call: toolCall,
|
||||
structured_output:
|
||||
(model.structured_output !== undefined && model.structured_output !== null)
|
||||
|| structuredOutput
|
||||
|| undefined,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights,
|
||||
status: existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
cost,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
};
|
||||
|
||||
if (baseModel !== undefined) {
|
||||
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
if (existing === undefined) return undefined;
|
||||
const required = z.object({
|
||||
name: z.string(),
|
||||
description: z.string(),
|
||||
release_date: z.string(),
|
||||
last_updated: z.string(),
|
||||
open_weights: z.boolean(),
|
||||
cost: z.object({ input: z.number(), output: z.number() }),
|
||||
}).safeParse(values);
|
||||
if (!required.success) {
|
||||
throw new Error(`EmpirioLabs model ${model.id} has incomplete local metadata required for sync`);
|
||||
}
|
||||
|
||||
return values as SyncedFullModel;
|
||||
}
|
||||
@@ -1,428 +0,0 @@
|
||||
import { z } from "zod";
|
||||
import { readFileSync, readdirSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { describeModel } from "../../describe.js";
|
||||
import { inferKimiFamily, ModelFamilyValues } from "../../family.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://api.kilo.ai/api/gateway/models";
|
||||
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
|
||||
const modelMetadataByID = new Map<string, Record<string, unknown>>();
|
||||
const modelMetadataFilesByProvider = new Map<string, Set<string>>();
|
||||
|
||||
|
||||
export const KiloModel = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
created: z.number(),
|
||||
description: z.string().optional(),
|
||||
hugging_face_id: z.string().nullable().optional(),
|
||||
knowledge_cutoff: z.string().nullable().optional(),
|
||||
context_length: z.number(),
|
||||
architecture: z.object({
|
||||
modality: z.string().optional(),
|
||||
input_modalities: z.array(z.string()),
|
||||
output_modalities: z.array(z.string()),
|
||||
tokenizer: z.string().optional(),
|
||||
}),
|
||||
pricing: z.object({
|
||||
prompt: z.string(),
|
||||
completion: z.string(),
|
||||
internal_reasoning: z.string().optional(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
}),
|
||||
top_provider: z.object({
|
||||
context_length: z.number().nullable(),
|
||||
max_completion_tokens: z.number().nullable(),
|
||||
is_moderated: z.boolean().optional(),
|
||||
}),
|
||||
supported_parameters: z.array(z.string()),
|
||||
opencode: z
|
||||
.object({
|
||||
variants: z
|
||||
.record(
|
||||
z.object({
|
||||
reasoning: z
|
||||
.object({
|
||||
enabled: z.boolean(),
|
||||
effort: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const KiloResponse = z.object({
|
||||
data: z.array(KiloModel),
|
||||
}).passthrough();
|
||||
|
||||
export type KiloModel = z.infer<typeof KiloModel>;
|
||||
|
||||
export const kilo = {
|
||||
id: "kilo",
|
||||
name: "Kilo",
|
||||
modelsDir: "providers/kilo/models",
|
||||
async fetchModels() {
|
||||
const headers = process.env.KILO_API_KEY
|
||||
? { Authorization: `Bearer ${process.env.KILO_API_KEY}` }
|
||||
: undefined;
|
||||
const response = await fetch(API_ENDPOINT, { headers });
|
||||
if (!response.ok) {
|
||||
throw new Error(`Kilo request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
return KiloResponse.parse(raw).data;
|
||||
},
|
||||
translateModel(model, context) {
|
||||
// Kilo serves deprecated/unavailable routes as degraded stubs:
|
||||
// negative pricing (`"-1"`) and an empty `supported_parameters` array. Syncing
|
||||
// those would wrongly flip `reasoning`/`tool_call`/`structured_output` to false
|
||||
// and strip `reasoning_options`. Leave the authored file untouched instead, and
|
||||
// skip the model entirely when we have nothing to preserve.
|
||||
if (isUnavailable(model)) {
|
||||
const authored = context.authored(model.id);
|
||||
return authored === undefined ? undefined : { id: model.id, model: authored as SyncedModel };
|
||||
}
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildKiloModel(model, context.existing(model.id)),
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<KiloModel>;
|
||||
|
||||
function isUnavailable(model: KiloModel) {
|
||||
return (
|
||||
model.supported_parameters.length === 0 ||
|
||||
Number(model.pricing.prompt) < 0 ||
|
||||
Number(model.pricing.completion) < 0
|
||||
);
|
||||
}
|
||||
|
||||
function dateFromTimestamp(timestamp: number) {
|
||||
return new Date(timestamp * 1000).toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function price(value: string | undefined) {
|
||||
if (value === undefined) return undefined;
|
||||
const number = Number(value);
|
||||
return Number.isFinite(number) && number >= 0
|
||||
? Math.round(number * 1_000_000_000_000) / 1_000_000
|
||||
: undefined;
|
||||
}
|
||||
|
||||
type Modality = "text" | "audio" | "image" | "video" | "pdf";
|
||||
|
||||
function modalities(values: string[], fallback: Modality[]): Modality[] {
|
||||
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
|
||||
const result = values
|
||||
.map((value) => value.toLowerCase())
|
||||
.map((value) => value === "file" ? "pdf" : value)
|
||||
.filter((value): value is Modality => allowed.has(value as Modality));
|
||||
return [...new Set(result.length > 0 ? result : fallback)];
|
||||
}
|
||||
|
||||
function inferFamily(model: KiloModel, name: string) {
|
||||
const kimiFamily = inferKimiFamily(model.id, name);
|
||||
if (kimiFamily !== undefined) return kimiFamily;
|
||||
|
||||
const target = `${model.id} ${name}`.toLowerCase();
|
||||
return [...ModelFamilyValues]
|
||||
.sort((a, b) => b.length - a.length)
|
||||
.find((family) => {
|
||||
const value = family.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||
if (family === "o") {
|
||||
return new RegExp(`(^|[^a-z0-9])${value}(?=\\d|$|[^a-z0-9])`).test(target);
|
||||
}
|
||||
return new RegExp(`(^|[^a-z0-9])${value}(?=$|[^a-z0-9])`).test(target);
|
||||
});
|
||||
}
|
||||
|
||||
export function buildKiloModel(
|
||||
model: KiloModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel?: string,
|
||||
): SyncedModel {
|
||||
const params = new Set(model.supported_parameters);
|
||||
const name = model.name;
|
||||
const apiDescription = model.description?.replaceAll(/\s+/g, " ").trim();
|
||||
const input = modalities(model.architecture.input_modalities, ["text"]);
|
||||
const output = modalities(model.architecture.output_modalities, ["text"]);
|
||||
const prompt = price(model.pricing.prompt);
|
||||
const completion = price(model.pricing.completion);
|
||||
const reasoning = params.has("reasoning") || params.has("include_reasoning");
|
||||
const reasoning_options = existing?.reasoning_options?.length
|
||||
? existing.reasoning_options
|
||||
: KiloReasoningOptions(model.opencode) ?? existing?.reasoning_options;
|
||||
const context = model.top_provider.context_length ?? model.context_length;
|
||||
const family = inferFamily(model, name);
|
||||
const releaseDate = dateFromTimestamp(model.created);
|
||||
const familyValue = existing?.family === "o" && family !== "o"
|
||||
? family
|
||||
: (existing?.family ?? family);
|
||||
const attachment = input.some((value) => value !== "text");
|
||||
const toolCall = params.has("tools") || params.has("tool_choice");
|
||||
const structuredOutput = params.has("structured_outputs");
|
||||
const knowledge = model.knowledge_cutoff?.slice(0, 10) ?? existing?.knowledge;
|
||||
const openWeights = Boolean(model.hugging_face_id);
|
||||
const cost = prompt !== undefined && completion !== undefined
|
||||
? {
|
||||
input: prompt,
|
||||
output: completion,
|
||||
reasoning: reasoning ? price(model.pricing.internal_reasoning) : undefined,
|
||||
cache_read: price(model.pricing.input_cache_read),
|
||||
cache_write: price(model.pricing.input_cache_write),
|
||||
tiers: existing?.cost?.tiers,
|
||||
}
|
||||
: existing?.cost;
|
||||
const limit = {
|
||||
context,
|
||||
input: existing?.limit?.input,
|
||||
output: model.top_provider.max_completion_tokens ?? existing?.limit?.output ?? context,
|
||||
};
|
||||
const canonical = existing?.base_model ?? baseModel ?? resolveCanonicalBaseModel(model.id);
|
||||
|
||||
if (canonical !== undefined) {
|
||||
return factorBaseModel(
|
||||
canonical,
|
||||
{
|
||||
name: baseModel !== undefined || model.id.endsWith(":free") ? name : undefined,
|
||||
description: existing?.description ?? apiDescription ?? describeModel({
|
||||
id: model.id,
|
||||
name,
|
||||
family: familyValue,
|
||||
reasoning,
|
||||
tool_call: toolCall,
|
||||
structured_output: structuredOutput,
|
||||
open_weights: openWeights,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
}),
|
||||
attachment,
|
||||
reasoning,
|
||||
reasoning_options,
|
||||
temperature: params.has("temperature"),
|
||||
tool_call: toolCall,
|
||||
structured_output: structuredOutput,
|
||||
status: existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
cost,
|
||||
},
|
||||
limit,
|
||||
existing?.base_model === canonical ? existing.base_model_omit : undefined,
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
name,
|
||||
description: existing?.description ?? apiDescription ?? describeModel({
|
||||
id: model.id,
|
||||
name,
|
||||
family: familyValue,
|
||||
reasoning,
|
||||
tool_call: toolCall,
|
||||
structured_output: structuredOutput,
|
||||
open_weights: openWeights,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
}),
|
||||
family: familyValue,
|
||||
release_date: releaseDate,
|
||||
last_updated: releaseDate,
|
||||
attachment,
|
||||
reasoning,
|
||||
reasoning_options,
|
||||
temperature: params.has("temperature"),
|
||||
tool_call: toolCall,
|
||||
structured_output: structuredOutput,
|
||||
knowledge,
|
||||
open_weights: openWeights,
|
||||
status: existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
cost,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
} satisfies SyncedFullModel;
|
||||
}
|
||||
|
||||
function KiloReasoningOptions(opencode: KiloModel["opencode"]): SyncedFullModel["reasoning_options"] {
|
||||
if (opencode?.variants === undefined) return undefined;
|
||||
|
||||
const options: NonNullable<SyncedFullModel["reasoning_options"]> = [];
|
||||
const variants = Object.entries(opencode.variants);
|
||||
|
||||
if (variants.length === 0) return undefined;
|
||||
|
||||
const reasoningEffortOrder = new Map<string, number>([
|
||||
["none", 0],
|
||||
["minimal", 1],
|
||||
["low", 2],
|
||||
["medium", 3],
|
||||
["high", 4],
|
||||
["xhigh", 5],
|
||||
["max", 6],
|
||||
]);
|
||||
|
||||
const efforts = variants
|
||||
.filter(([, variant]) => variant.reasoning?.enabled === true)
|
||||
.map(([, variant]) => variant.reasoning?.effort)
|
||||
.filter((effort): effort is string => effort !== undefined);
|
||||
const hasNone = variants.some(([, variant]) => variant.reasoning?.enabled === false);
|
||||
const allEfforts = hasNone ? [...efforts, "none"] : [...efforts];
|
||||
|
||||
if (allEfforts.length > 0) {
|
||||
const orderedEfforts = allEfforts.sort((a, b) => {
|
||||
const order = (reasoningEffortOrder.get(a) ?? Number.MAX_SAFE_INTEGER)
|
||||
- (reasoningEffortOrder.get(b) ?? Number.MAX_SAFE_INTEGER);
|
||||
return order;
|
||||
});
|
||||
options.push({
|
||||
type: "effort",
|
||||
values: orderedEfforts as Array<string | null>,
|
||||
});
|
||||
}
|
||||
|
||||
return options.length > 0 ? options : undefined;
|
||||
}
|
||||
|
||||
function modelMetadataExists(provider: string, modelID: string) {
|
||||
let files = modelMetadataFilesByProvider.get(provider);
|
||||
if (files === undefined) {
|
||||
try {
|
||||
files = new Set(readdirSync(path.join(MODELS_DIR, provider)));
|
||||
} catch {
|
||||
files = new Set();
|
||||
}
|
||||
modelMetadataFilesByProvider.set(provider, files);
|
||||
}
|
||||
return files.has(`${modelID}.toml`);
|
||||
}
|
||||
|
||||
function baseModelOmit(
|
||||
modelID: string,
|
||||
limit: SyncedFullModel["limit"],
|
||||
) {
|
||||
const metadata = modelMetadata(modelID);
|
||||
const omit: string[] = [];
|
||||
const baseLimit = metadata.limit;
|
||||
if (
|
||||
isPlainObject(baseLimit) &&
|
||||
baseLimit.input !== undefined &&
|
||||
limit.input === undefined &&
|
||||
baseLimit.context !== limit.context
|
||||
) {
|
||||
omit.push("limit.input");
|
||||
}
|
||||
|
||||
return omit.length > 0 ? omit : undefined;
|
||||
}
|
||||
|
||||
function baseModelOverrides(
|
||||
modelID: string,
|
||||
values: Partial<SyncedFullModel>,
|
||||
) {
|
||||
const metadata = modelMetadata(modelID);
|
||||
const result: Record<string, unknown> = {};
|
||||
|
||||
for (const [key, value] of Object.entries(values)) {
|
||||
const override = inheritedOverride(value, metadata[key]);
|
||||
if (override !== undefined) result[key] = override;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function inheritedOverride(value: unknown, inherited: unknown): unknown {
|
||||
if (value === undefined) return undefined;
|
||||
if (sameInheritedValue(value, inherited)) return undefined;
|
||||
if (isPlainObject(value) && isPlainObject(inherited)) {
|
||||
const overrides = Object.fromEntries(
|
||||
Object.entries(value)
|
||||
.map(([key, item]) => [key, inheritedOverride(item, inherited[key])])
|
||||
.filter(([, item]) => item !== undefined),
|
||||
);
|
||||
return Object.keys(overrides).length > 0 ? overrides : undefined;
|
||||
}
|
||||
return stripUndefined(value);
|
||||
}
|
||||
|
||||
function stripUndefined(value: unknown): unknown {
|
||||
if (Array.isArray(value)) return value.map(stripUndefined);
|
||||
if (isPlainObject(value)) {
|
||||
return Object.fromEntries(
|
||||
Object.entries(value)
|
||||
.filter(([, item]) => item !== undefined)
|
||||
.map(([key, item]) => [key, stripUndefined(item)]),
|
||||
);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function sameInheritedValue(value: unknown, inherited: unknown) {
|
||||
return stableInheritedValue(value) === stableInheritedValue(inherited);
|
||||
}
|
||||
|
||||
function stableInheritedValue(value: unknown): string {
|
||||
if (Array.isArray(value)) {
|
||||
const items = value.map(stableInheritedValue);
|
||||
const ordered = value.every((item) => item === null || typeof item !== "object")
|
||||
? items.sort()
|
||||
: items;
|
||||
return `[${ordered.join(",")}]`;
|
||||
}
|
||||
if (isPlainObject(value)) {
|
||||
return `{${Object.entries(value)
|
||||
.filter(([, item]) => item !== undefined)
|
||||
.sort(([a], [b]) => a.localeCompare(b))
|
||||
.map(([key, item]) => `${JSON.stringify(key)}:${stableInheritedValue(item)}`)
|
||||
.join(",")}}`;
|
||||
}
|
||||
return JSON.stringify(value);
|
||||
}
|
||||
|
||||
function isPlainObject(value: unknown): value is Record<string, unknown> {
|
||||
return value !== null && typeof value === "object" && !Array.isArray(value);
|
||||
}
|
||||
|
||||
function modelMetadata(modelID: string) {
|
||||
let metadata = modelMetadataByID.get(modelID);
|
||||
if (metadata === undefined) {
|
||||
const filePath = path.join(MODELS_DIR, `${modelID}.toml`);
|
||||
metadata = Bun.TOML.parse(readFileSync(filePath, "utf8")) as Record<string, unknown>;
|
||||
modelMetadataByID.set(modelID, metadata);
|
||||
}
|
||||
return metadata;
|
||||
}
|
||||
|
||||
function canonicalCandidates(provider: string, modelID: string) {
|
||||
const candidates = [modelID];
|
||||
|
||||
if (provider === "anthropic") {
|
||||
candidates.push(modelID.replace(/(claude-(?:opus|sonnet|haiku)-\d+)\.(\d+)/, "$1-$2"));
|
||||
candidates.push(modelID.replace(/^claude-3\.5-/, "claude-3-5-"));
|
||||
}
|
||||
|
||||
if (provider === "llama") {
|
||||
candidates.push(modelID.replace(/^llama-(\d+)-(\d+)/, "llama-$1.$2"));
|
||||
candidates.push(modelID.replace(/^llama-(4)-(maverick|scout)$/, "llama-$1-$2-17b"));
|
||||
}
|
||||
|
||||
if (provider === "mistral") {
|
||||
candidates.push(modelID.replace(/-latest$/, ""));
|
||||
}
|
||||
|
||||
if (provider === "minimax") {
|
||||
candidates.push(modelID.replace(/^minimax-m/, "MiniMax-M"));
|
||||
}
|
||||
|
||||
return [...new Set(candidates)];
|
||||
}
|
||||
@@ -15,8 +15,6 @@ const CANONICAL_BASE_MODEL_OVERRIDES = {
|
||||
"openai/gpt-5.6-luna-pro": "openai/gpt-5.6-luna",
|
||||
"openai/gpt-5.6-sol-pro": "openai/gpt-5.6-sol",
|
||||
"openai/gpt-5.6-terra-pro": "openai/gpt-5.6-terra",
|
||||
"anthropic/claude-opus-4.7-fast": "anthropic/claude-opus-4-7",
|
||||
"anthropic/claude-opus-4.8-fast": "anthropic/claude-opus-4-8",
|
||||
} as const;
|
||||
|
||||
const CANONICAL_PROVIDER_PREFIXES = {
|
||||
@@ -35,7 +33,6 @@ const CANONICAL_PROVIDER_PREFIXES = {
|
||||
qwen: { provider: "alibaba", metadata: "alibaba" },
|
||||
stepfun: { provider: "stepfun", metadata: "stepfun" },
|
||||
tencent: { provider: "tencent", metadata: "tencent" },
|
||||
thinkingmachines: { provider: "thinkingmachines", metadata: "thinkingmachines" },
|
||||
"x-ai": { provider: "xai", metadata: "xai" },
|
||||
xai: { provider: "xai", metadata: "xai" },
|
||||
xiaomi: { provider: "xiaomi", metadata: "xiaomi" },
|
||||
@@ -178,11 +175,9 @@ export function buildOpenRouterModel(
|
||||
const prompt = price(model.pricing.prompt);
|
||||
const completion = price(model.pricing.completion);
|
||||
const reasoning = params.has("reasoning") || params.has("include_reasoning");
|
||||
// Prefer OpenRouter's live reasoning metadata over authored options so aliases
|
||||
// and rotated models pick up new efforts/budget support. Fall back to authored
|
||||
// only when the API omits a reasoning object.
|
||||
const reasoning_options = openRouterReasoningOptions(model.reasoning)
|
||||
?? (reasoning ? existing?.reasoning_options : undefined);
|
||||
const reasoning_options = existing?.reasoning_options?.length
|
||||
? existing.reasoning_options
|
||||
: openRouterReasoningOptions(model.reasoning) ?? existing?.reasoning_options;
|
||||
const context = model.context_length;
|
||||
const family = inferFamily(model, name);
|
||||
const releaseDate = dateFromTimestamp(model.created);
|
||||
|
||||
@@ -1,229 +0,0 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { describeModel } from "../../describe.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://api.pioneer.ai/v1/models";
|
||||
|
||||
const BaseModels: Record<string, string> = {
|
||||
"Qwen/Qwen3.5-9B": "alibaba/qwen3.5-9b",
|
||||
"google/gemma-4-E2B-it": "google/gemma-4-E2B-it",
|
||||
"google/gemma-4-E4B-it": "google/gemma-4-E4B-it",
|
||||
"mistral-medium-3.5": "mistral/mistral-medium-2604",
|
||||
"moonshotai/Kimi-K2.7-Code": "moonshotai/kimi-k2.7-code",
|
||||
"openai/gpt-oss-120b": "openai/gpt-oss-120b",
|
||||
"openai/gpt-oss-20b": "openai/gpt-oss-20b",
|
||||
"sakana/fugu-ultra": "sakana/fugu-ultra",
|
||||
"zai-org/GLM-5.2": "zhipuai/glm-5.2",
|
||||
};
|
||||
|
||||
const Capability = z
|
||||
.object({
|
||||
supported: z.boolean(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ReasoningEffortValues = [
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
] as const;
|
||||
|
||||
type ReasoningEffort = typeof ReasoningEffortValues[number];
|
||||
|
||||
const ReasoningEfforts = new Set<string>(ReasoningEffortValues);
|
||||
|
||||
const PioneerReasoningLevel = z
|
||||
.object({
|
||||
effort: z.string(),
|
||||
description: z.string().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const PioneerMetadataModel = z
|
||||
.object({
|
||||
slug: z.string(),
|
||||
default_reasoning_level: z.string().nullish(),
|
||||
supported_reasoning_levels: z.array(PioneerReasoningLevel).nullish(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const PioneerServedModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
display_name: z.string(),
|
||||
created: z.number().optional(),
|
||||
created_at: z.string().optional(),
|
||||
max_input_tokens: z.number().int().nonnegative(),
|
||||
max_tokens: z.number().int().nonnegative(),
|
||||
deprecated: z.boolean().optional(),
|
||||
capabilities: z
|
||||
.object({
|
||||
image_input: Capability.optional(),
|
||||
pdf_input: Capability.optional(),
|
||||
structured_outputs: Capability.optional(),
|
||||
thinking: Capability.optional(),
|
||||
})
|
||||
.passthrough(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export const PioneerModel = PioneerServedModel.extend({
|
||||
metadata: PioneerMetadataModel.optional(),
|
||||
});
|
||||
|
||||
export const PioneerResponse = z
|
||||
.object({
|
||||
data: z.array(PioneerServedModel),
|
||||
models: z.array(PioneerMetadataModel).optional().default([]),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export type PioneerModel = z.infer<typeof PioneerModel>;
|
||||
|
||||
export const pioneer = {
|
||||
id: "pioneer",
|
||||
name: "Pioneer",
|
||||
modelsDir: "providers/pioneer/models",
|
||||
skipCreates: true,
|
||||
deleteMissing: false,
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Pioneer request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
const parsed = PioneerResponse.parse(raw);
|
||||
const metadata = new Map(parsed.models.map((model) => [model.slug, model]));
|
||||
return parsed.data.map((model) => ({
|
||||
...model,
|
||||
metadata: metadata.get(model.id),
|
||||
}));
|
||||
},
|
||||
translateModel(model, context) {
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildPioneerModel(model, context.existing(model.id)),
|
||||
};
|
||||
},
|
||||
missingNotice(paths) {
|
||||
if (paths.length === 0) return [];
|
||||
return [
|
||||
`${paths.length} local model(s) are not present in Pioneer /v1/models and were retained: ${paths.join(", ")}`,
|
||||
];
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} remote model(s) are present in Pioneer /v1/models but were not created because Pioneer sync is update-only for new models: ${ids.join(", ")}`,
|
||||
];
|
||||
},
|
||||
} satisfies SyncProvider<PioneerModel>;
|
||||
|
||||
function dateFromModel(model: PioneerModel) {
|
||||
if (model.created !== undefined) return new Date(model.created * 1000).toISOString().slice(0, 10);
|
||||
if (model.created_at !== undefined) return model.created_at.slice(0, 10);
|
||||
return "2024-01-01";
|
||||
}
|
||||
|
||||
function supported(model: PioneerModel, capability: keyof PioneerModel["capabilities"]) {
|
||||
return model.capabilities[capability]?.supported === true;
|
||||
}
|
||||
|
||||
function isReasoningEffort(value: string): value is ReasoningEffort {
|
||||
return ReasoningEfforts.has(value);
|
||||
}
|
||||
|
||||
function pioneerReasoningOptions(model: PioneerModel): SyncedFullModel["reasoning_options"] {
|
||||
const levels = model.metadata?.supported_reasoning_levels ?? [];
|
||||
if (levels.length === 0) return undefined;
|
||||
|
||||
const unsupported = levels
|
||||
.map((level) => level.effort)
|
||||
.filter((effort) => !isReasoningEffort(effort));
|
||||
if (unsupported.length > 0) {
|
||||
throw new Error(
|
||||
`Unsupported Pioneer reasoning effort(s) for ${model.id}: ${[...new Set(unsupported)].join(", ")}`,
|
||||
);
|
||||
}
|
||||
|
||||
const values = [...new Set(levels.map((level) => level.effort).filter(isReasoningEffort))];
|
||||
return values.length > 0 ? [{ type: "effort", values }] : undefined;
|
||||
}
|
||||
|
||||
function buildPioneerModel(
|
||||
model: PioneerModel,
|
||||
existing: ExistingModel | undefined,
|
||||
): SyncedModel {
|
||||
const status = model.deprecated === true ? "deprecated" : existing?.status;
|
||||
const baseModel = existing?.base_model ?? BaseModels[model.id];
|
||||
const apiReasoningOptions = pioneerReasoningOptions(model);
|
||||
const reasoning = apiReasoningOptions !== undefined || supported(model, "thinking") || existing?.reasoning === true;
|
||||
const reasoningOptions = apiReasoningOptions ?? (reasoning ? existing?.reasoning_options : undefined);
|
||||
const interleaved = reasoning ? (existing?.interleaved ?? { field: "reasoning_content" as const }) : undefined;
|
||||
|
||||
if (baseModel !== undefined) {
|
||||
const limit = {
|
||||
context: model.max_input_tokens,
|
||||
input: existing?.limit?.input,
|
||||
output: model.max_tokens,
|
||||
};
|
||||
return factorBaseModel(baseModel, {
|
||||
cost: existing?.cost,
|
||||
reasoning: apiReasoningOptions !== undefined ? true : undefined,
|
||||
reasoning_options: reasoningOptions,
|
||||
status,
|
||||
interleaved,
|
||||
limit,
|
||||
}, limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
const input = [
|
||||
"text",
|
||||
supported(model, "image_input") ? "image" : undefined,
|
||||
supported(model, "pdf_input") ? "pdf" : undefined,
|
||||
].filter((value): value is "text" | "image" | "pdf" => value !== undefined);
|
||||
|
||||
return {
|
||||
name: existing?.name ?? model.display_name,
|
||||
description: existing?.description ?? describeModel({
|
||||
id: model.id,
|
||||
providerId: "pioneer",
|
||||
name: model.display_name,
|
||||
family: existing?.family,
|
||||
reasoning,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: supported(model, "structured_outputs") || undefined,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
modalities: { input, output: ["text"] },
|
||||
}),
|
||||
family: existing?.family,
|
||||
release_date: existing?.release_date ?? dateFromModel(model),
|
||||
last_updated: existing?.last_updated ?? dateFromModel(model),
|
||||
attachment: input.some((value) => value !== "text"),
|
||||
reasoning,
|
||||
reasoning_options: reasoningOptions,
|
||||
temperature: existing?.temperature ?? true,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: supported(model, "structured_outputs") || undefined,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
status,
|
||||
interleaved,
|
||||
cost: existing?.cost,
|
||||
limit: {
|
||||
context: model.max_input_tokens,
|
||||
input: existing?.limit?.input,
|
||||
output: model.max_tokens,
|
||||
},
|
||||
modalities: { input, output: ["text"] },
|
||||
};
|
||||
}
|
||||
@@ -134,7 +134,7 @@ export function buildVercelModel(model: VercelModel, existing: ExistingModel | u
|
||||
attachment: existing?.attachment ?? (tags.has("vision") || tags.has("file-input")),
|
||||
reasoning: existing?.reasoning ?? tags.has("reasoning"),
|
||||
reasoning_options: existing?.reasoning_options,
|
||||
temperature: existing?.temperature,
|
||||
temperature: true,
|
||||
tool_call: model.type === "language"
|
||||
? existing?.tool_call ?? tags.has("tool-use")
|
||||
: tags.has("tool-use"),
|
||||
|
||||
@@ -13,8 +13,3 @@ test("Kimi family inference preserves thinking variants", () => {
|
||||
expect(inferKimiFamily("Kimi K2.5 Thinking")).toBe("kimi-thinking");
|
||||
expect(inferKimiFamily("moonshotai/kimi-k2.6:thinking")).toBe("kimi-thinking");
|
||||
});
|
||||
|
||||
test("Kimi family inference maps K3 to its own family", () => {
|
||||
expect(inferKimiFamily("moonshotai/kimi-k3")).toBe("kimi-k3");
|
||||
expect(inferKimiFamily("Kimi K3")).toBe("kimi-k3");
|
||||
});
|
||||
@@ -37,16 +37,8 @@ function stable(value: unknown): string {
|
||||
describe("catalog generation", () => {
|
||||
test("base_model can factor metadata without changing provider JSON", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(
|
||||
root,
|
||||
"providers/direct/provider.toml",
|
||||
providerToml("Direct"),
|
||||
);
|
||||
await write(
|
||||
root,
|
||||
"providers/factored/provider.toml",
|
||||
providerToml("Factored"),
|
||||
);
|
||||
await write(root, "providers/direct/provider.toml", providerToml("Direct"));
|
||||
await write(root, "providers/factored/provider.toml", providerToml("Factored"));
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -108,11 +100,7 @@ cache_read = 0.125
|
||||
|
||||
test("base_model_omit removes inherited metadata fields", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(root, "providers/provider/provider.toml", providerToml("Provider"));
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -144,11 +132,7 @@ output = 32_000
|
||||
|
||||
test("base_model can inherit sibling fields from partial object overrides", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(root, "providers/provider/provider.toml", providerToml("Provider"));
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -185,49 +169,6 @@ input = ["text"]
|
||||
});
|
||||
});
|
||||
|
||||
test("provider request defaults and variants are emitted unchanged", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/models/model.toml",
|
||||
`${providerFieldsToml()}
|
||||
|
||||
[variants.none.thinking]
|
||||
type = "disabled"
|
||||
|
||||
[variants.thinking.thinking]
|
||||
type = "adaptive"
|
||||
|
||||
[provider]
|
||||
variant = "thinking"
|
||||
body = { thinking = { type = "adaptive" } }
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 2.50
|
||||
`,
|
||||
);
|
||||
|
||||
const providers = await generate(path.join(root, "providers"));
|
||||
|
||||
expect(providers.provider?.models.model).toMatchObject({
|
||||
variants: {
|
||||
none: { thinking: { type: "disabled" } },
|
||||
thinking: { thinking: { type: "adaptive" } },
|
||||
},
|
||||
provider: {
|
||||
variant: "thinking",
|
||||
body: { thinking: { type: "adaptive" } },
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test("repository provider TOMLs do not use legacy extends tables", async () => {
|
||||
const root = path.join(import.meta.dirname, "..", "..", "..");
|
||||
const matches: string[] = [];
|
||||
@@ -250,10 +191,7 @@ output = 2.50
|
||||
for (const [providerID, provider] of Object.entries(providers)) {
|
||||
for (const [modelID, model] of Object.entries(provider.models)) {
|
||||
const encoded = stable(model);
|
||||
if (
|
||||
encoded.includes("base_model") ||
|
||||
encoded.includes("base_model_omit")
|
||||
) {
|
||||
if (encoded.includes("base_model") || encoded.includes("base_model_omit")) {
|
||||
leaked.push(`${providerID}/${modelID}`);
|
||||
}
|
||||
}
|
||||
@@ -290,7 +228,7 @@ output = 2.50
|
||||
"zai",
|
||||
];
|
||||
const namespaceDirs = providerNamespaces.filter((namespace) =>
|
||||
existsSync(path.join(root, "models", namespace)),
|
||||
existsSync(path.join(root, "models", namespace))
|
||||
);
|
||||
const baseModelRefs: string[] = [];
|
||||
|
||||
|
||||
@@ -29,33 +29,6 @@ describe("model schema", () => {
|
||||
|
||||
expect(AuthoredModel.safeParse(model).success).toBe(false);
|
||||
});
|
||||
|
||||
test("accepts provider request variants", () => {
|
||||
const model = baseModel({
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
variants: {
|
||||
none: { chat_template_kwargs: { thinking_mode: "disabled" } },
|
||||
thinking: { chat_template_kwargs: { thinking_mode: "enabled" } },
|
||||
},
|
||||
});
|
||||
|
||||
expect(AuthoredModel.parse(model).variants).toEqual({
|
||||
none: { chat_template_kwargs: { thinking_mode: "disabled" } },
|
||||
thinking: { chat_template_kwargs: { thinking_mode: "enabled" } },
|
||||
});
|
||||
});
|
||||
|
||||
test("rejects an undeclared provider default variant", () => {
|
||||
const model = baseModel({
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
variants: { none: { thinking: { type: "disabled" } } },
|
||||
provider: { variant: "thinking" },
|
||||
});
|
||||
|
||||
expect(AuthoredModel.safeParse(model).success).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
function baseModel(overrides: Partial<AuthoredModelData>) {
|
||||
|
||||
+20
-314
@@ -19,12 +19,6 @@ import {
|
||||
resolveDigitalOceanBaseModel,
|
||||
type DigitalOceanSourceModel,
|
||||
} from "../src/sync/providers/digitalocean.js";
|
||||
import {
|
||||
buildEmpiriolabsModel,
|
||||
empiriolabs,
|
||||
resolveEmpiriolabsBaseModel,
|
||||
type EmpiriolabsModel,
|
||||
} from "../src/sync/providers/empiriolabs.js";
|
||||
import {
|
||||
buildOpenRouterModel,
|
||||
openrouter,
|
||||
@@ -252,40 +246,25 @@ function digitalOceanModel(overrides: Partial<DigitalOceanSourceModel> = {}): Di
|
||||
return {
|
||||
id: "anthropic-claude-4.6-sonnet",
|
||||
name: "Claude Sonnet 4.6",
|
||||
lifecycle_status: "active",
|
||||
lifecycle_status: "available",
|
||||
type: "chat",
|
||||
thinking: true,
|
||||
reasoning_efforts: ["low", "medium", "high"],
|
||||
context_window: 1_000_000,
|
||||
max_output_tokens: 8_192,
|
||||
availability: ["serverless"],
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
settings: [{ name: "max_tokens", max: 64_000 }],
|
||||
created_at: "2026-02-17T00:00:00Z",
|
||||
pricing: {
|
||||
input: 3,
|
||||
output: 15,
|
||||
cacheRead: 0.3,
|
||||
inputOver200k: 6,
|
||||
outputOver200k: 22.5,
|
||||
},
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
test("syncs DigitalOcean catalog limits and extended pricing thresholds", () => {
|
||||
const model = buildDigitalOceanModel(digitalOceanModel({
|
||||
pricing: {
|
||||
input: 3,
|
||||
output: 15,
|
||||
cacheRead: 0.3,
|
||||
extended: {
|
||||
context: 272_000,
|
||||
input: 6,
|
||||
output: 22.5,
|
||||
cacheRead: 0.6,
|
||||
cacheWrite: 7.5,
|
||||
},
|
||||
},
|
||||
}), {
|
||||
test("syncs DigitalOcean pricing and preserves curated cache tiers", () => {
|
||||
const model = buildDigitalOceanModel(digitalOceanModel(), {
|
||||
name: "Claude Sonnet 4.6",
|
||||
description: "Curated DigitalOcean description",
|
||||
family: "claude-sonnet",
|
||||
@@ -297,6 +276,7 @@ test("syncs DigitalOcean catalog limits and extended pricing thresholds", () =>
|
||||
temperature: true,
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
status: "beta",
|
||||
cost: {
|
||||
input: 2,
|
||||
output: 10,
|
||||
@@ -317,20 +297,21 @@ test("syncs DigitalOcean catalog limits and extended pricing thresholds", () =>
|
||||
expect(model).toMatchObject({
|
||||
description: "Curated DigitalOcean description",
|
||||
last_updated: "2026-03-13",
|
||||
status: "beta",
|
||||
cost: {
|
||||
input: 3,
|
||||
output: 15,
|
||||
cache_read: 0.3,
|
||||
cache_write: 3.75,
|
||||
tiers: [{
|
||||
tier: { type: "context", size: 272_000 },
|
||||
tier: { type: "context", size: 200_000 },
|
||||
input: 6,
|
||||
output: 22.5,
|
||||
cache_read: 0.6,
|
||||
cache_write: 7.5,
|
||||
}],
|
||||
},
|
||||
limit: { context: 1_000_000, output: 8_192 },
|
||||
limit: { context: 1_000_000, output: 64_000 },
|
||||
});
|
||||
});
|
||||
|
||||
@@ -365,7 +346,7 @@ test("skips existing dedicated-only DigitalOcean models without token pricing",
|
||||
expect(translated).toBeUndefined();
|
||||
});
|
||||
|
||||
test("syncs existing DigitalOcean image models with catalog output limits", () => {
|
||||
test("syncs existing DigitalOcean image models with zero token limits", () => {
|
||||
const existing = {
|
||||
name: "GPT Image 1.5",
|
||||
description: "Image generation model",
|
||||
@@ -385,7 +366,6 @@ test("syncs existing DigitalOcean image models with catalog output limits", () =
|
||||
id: "openai-gpt-image-1.5",
|
||||
name: "GPT Image 1.5",
|
||||
context_window: undefined,
|
||||
max_output_tokens: 16_384,
|
||||
modalities: { input: ["text", "image"], output: ["text", "image"] },
|
||||
settings: [],
|
||||
pricing: { input: 6, output: 12 },
|
||||
@@ -396,11 +376,11 @@ test("syncs existing DigitalOcean image models with catalog output limits", () =
|
||||
|
||||
expect(translated?.model).toMatchObject({
|
||||
cost: { input: 6, output: 12 },
|
||||
limit: { context: 0, output: 16_384 },
|
||||
limit: { context: 0, output: 0 },
|
||||
});
|
||||
});
|
||||
|
||||
test("filters unmanaged DigitalOcean models and joins catalog data by ID", () => {
|
||||
test("filters unmanaged DigitalOcean models and joins pricing names", () => {
|
||||
const models = parseDigitalOceanModels({
|
||||
models: [
|
||||
digitalOceanModel({ id: "kimi-k2.5", name: "Kimi K2", pricing: undefined }),
|
||||
@@ -412,118 +392,16 @@ test("filters unmanaged DigitalOcean models and joins catalog data by ID", () =>
|
||||
pricing: undefined,
|
||||
}),
|
||||
],
|
||||
catalog: [
|
||||
{
|
||||
model_id: "kimi-k2.5",
|
||||
name: "Kimi K2.5",
|
||||
context_window: "256000",
|
||||
max_output_tokens: "32768",
|
||||
availability: ["serverless", "dedicated"],
|
||||
pricing: {
|
||||
input_price_per_million: 0.000000375,
|
||||
output_price_per_million: 0.000002025,
|
||||
cache_read_input_price_per_million: 0.000000203,
|
||||
},
|
||||
pricing_detail: {
|
||||
variants: [{
|
||||
tier: "MODEL_PRICING_TIER_EXTENDED_272K",
|
||||
mode: "MODEL_BILLING_MODE_INTERACTIVE",
|
||||
prices: {
|
||||
input_price_per_million: 0.00000075,
|
||||
output_price_per_million: 0.000003,
|
||||
},
|
||||
}],
|
||||
},
|
||||
},
|
||||
{
|
||||
model_id: "bge-m3",
|
||||
name: "BGE M3",
|
||||
availability: ["serverless"],
|
||||
},
|
||||
pricing: [
|
||||
{ name: "Kimi K2.5 Input Tokens", slug: "input", model: "DigitalOcean-Hosted Models", price: { rate: 0.5 } },
|
||||
{ name: "Kimi K2.5 Output Tokens", slug: "output", model: "DigitalOcean-Hosted Models", price: { rate: 2.4 } },
|
||||
],
|
||||
});
|
||||
|
||||
expect(models).toHaveLength(1);
|
||||
expect(models[0]).toMatchObject({
|
||||
id: "kimi-k2.5",
|
||||
context_window: "256000",
|
||||
max_output_tokens: "32768",
|
||||
pricing: {
|
||||
input: 0.375,
|
||||
output: 2.025,
|
||||
cacheRead: 0.203,
|
||||
extended: {
|
||||
context: 272_000,
|
||||
input: 0.75,
|
||||
output: 3,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
test("maps DigitalOcean 1M catalog pricing to its 200K threshold", () => {
|
||||
const models = parseDigitalOceanModels({
|
||||
models: [digitalOceanModel({ pricing: undefined })],
|
||||
catalog: [{
|
||||
model_id: "anthropic-claude-4.6-sonnet",
|
||||
name: "Claude Sonnet 4.6",
|
||||
context_window: "1000000",
|
||||
max_output_tokens: "64000",
|
||||
availability: ["serverless"],
|
||||
modalities: { input: ["text", "image"], output: ["text"] },
|
||||
pricing: {
|
||||
input_price_per_million: 0.000003,
|
||||
output_price_per_million: 0.000015,
|
||||
},
|
||||
pricing_detail: {
|
||||
variants: [{
|
||||
tier: "MODEL_PRICING_TIER_EXTENDED_1M",
|
||||
mode: "MODEL_BILLING_MODE_INTERACTIVE",
|
||||
prices: {
|
||||
input_price_per_million: 0.000006,
|
||||
output_price_per_million: 0.0000225,
|
||||
},
|
||||
}],
|
||||
},
|
||||
}],
|
||||
});
|
||||
|
||||
expect(models[0]?.pricing?.extended).toEqual({
|
||||
context: 200_000,
|
||||
input: 6,
|
||||
output: 22.5,
|
||||
cacheRead: undefined,
|
||||
cacheWrite: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
test("syncs DigitalOcean reasoning capability, efforts, and lifecycle status", () => {
|
||||
const model = buildDigitalOceanModel(digitalOceanModel({
|
||||
lifecycle_status: "deprecated",
|
||||
thinking: false,
|
||||
reasoning_efforts: ["none", "low", "medium", "high", "max", "unsupported"],
|
||||
}), {
|
||||
name: "Claude Sonnet 4.6",
|
||||
description: "Curated DigitalOcean description",
|
||||
family: "claude-sonnet",
|
||||
release_date: "2026-02-17",
|
||||
last_updated: "2026-03-13",
|
||||
attachment: true,
|
||||
reasoning: false,
|
||||
reasoning_options: [{ type: "effort", values: ["low", "medium", "high"] }],
|
||||
temperature: true,
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
status: "beta",
|
||||
cost: { input: 3, output: 15 },
|
||||
limit: { context: 200_000, output: 64_000 },
|
||||
modalities: { input: ["text", "image"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(model).toMatchObject({
|
||||
status: "deprecated",
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "effort", values: ["none", "low", "medium", "high", "max"] }],
|
||||
pricing: { input: 0.5, output: 2.4 },
|
||||
});
|
||||
});
|
||||
|
||||
@@ -538,7 +416,6 @@ test("new DigitalOcean base models inherit intrinsic capabilities", () => {
|
||||
id: "openai-gpt-5.5",
|
||||
name: "GPT-5.5",
|
||||
thinking: undefined,
|
||||
reasoning_efforts: undefined,
|
||||
}),
|
||||
undefined,
|
||||
"openai/gpt-5.5",
|
||||
@@ -622,45 +499,8 @@ test("fetches every page of the DigitalOcean catalog", async () => {
|
||||
const fetcher = ((input: string | URL | Request) => {
|
||||
const url = String(input);
|
||||
requests.push(url);
|
||||
if (url.includes("/catalog/first-catalog-id")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({
|
||||
data: {
|
||||
id: "first-catalog-id",
|
||||
model_id: "first",
|
||||
name: "Stale First Detail",
|
||||
context_window: "50",
|
||||
max_output_tokens: "10",
|
||||
availability: ["dedicated"],
|
||||
modalities: { input: ["text", "image"], output: ["text"] },
|
||||
pricing: { input_price_per_million: 0.000009, output_price_per_million: 0.000009 },
|
||||
pricing_detail: { variants: [] },
|
||||
},
|
||||
})));
|
||||
}
|
||||
if (url.includes("/catalog/second-catalog-id")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({
|
||||
data: { id: "second-catalog-id", model_id: "second", name: "Second", availability: ["serverless"] },
|
||||
})));
|
||||
}
|
||||
if (url.includes("/catalog") && url.includes("page=2")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({
|
||||
data: [{ id: "second-catalog-id", model_id: "second", name: "Second", availability: ["serverless"] }],
|
||||
meta: { total: 2, page: 2, pages: 2 },
|
||||
})));
|
||||
}
|
||||
if (url.includes("/catalog")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({
|
||||
data: [{
|
||||
id: "first-catalog-id",
|
||||
model_id: "first",
|
||||
name: "First",
|
||||
context_window: "100",
|
||||
max_output_tokens: "90",
|
||||
availability: ["serverless"],
|
||||
pricing: { input_price_per_million: 0.000001, output_price_per_million: 0.000002 },
|
||||
}],
|
||||
meta: { total: 2, page: 1, pages: 2 },
|
||||
})));
|
||||
if (url.includes("static-content")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({ gradient: { models: [] } })));
|
||||
}
|
||||
if (url.includes("?page=2")) {
|
||||
return Promise.resolve(new Response(JSON.stringify({ models: [second] })));
|
||||
@@ -673,17 +513,7 @@ test("fetches every page of the DigitalOcean catalog", async () => {
|
||||
|
||||
const result = await fetchDigitalOceanModels("test-key", fetcher);
|
||||
expect(result.models.map((model) => model.id)).toEqual(["first", "second"]);
|
||||
expect(result.catalog.map((model) => model.model_id)).toEqual(["first", "second"]);
|
||||
expect(result.catalog[0]).toMatchObject({
|
||||
name: "First",
|
||||
context_window: "100",
|
||||
max_output_tokens: "90",
|
||||
availability: ["serverless"],
|
||||
pricing: { input_price_per_million: 0.000001, output_price_per_million: 0.000002 },
|
||||
modalities: { input: ["text", "image"], output: ["text"] },
|
||||
pricing_detail: { variants: [] },
|
||||
});
|
||||
expect(requests).toHaveLength(6);
|
||||
expect(requests).toHaveLength(3);
|
||||
});
|
||||
|
||||
function deepInfraModel(model_name: string, tags: string[]): DeepInfraModel {
|
||||
@@ -966,7 +796,7 @@ test("resolves Venice Pro routes to canonical OpenAI metadata", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test("prefers OpenRouter API reasoning options over authored ones", () => {
|
||||
test("preserves authored OpenRouter reasoning options over model metadata", () => {
|
||||
const model = buildOpenRouterModel(openRouterModel({
|
||||
reasoning: {
|
||||
mandatory: false,
|
||||
@@ -987,32 +817,6 @@ test("prefers OpenRouter API reasoning options over authored ones", () => {
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(model).toMatchObject({
|
||||
reasoning_options: [
|
||||
{ type: "effort", values: ["max", "xhigh", "high", "medium", "low"] },
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
test("keeps authored OpenRouter reasoning options when API omits reasoning metadata", () => {
|
||||
const model = buildOpenRouterModel(openRouterModel({
|
||||
supported_parameters: ["tools", "tool_choice", "reasoning", "temperature"],
|
||||
reasoning: undefined,
|
||||
}), {
|
||||
name: "Claude Sonnet 5",
|
||||
description: "Balanced Claude model for coding and agentic workflows",
|
||||
release_date: "2026-06-30",
|
||||
last_updated: "2026-06-30",
|
||||
attachment: true,
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
cost: { input: 2, output: 10 },
|
||||
limit: { context: 1_000_000, output: 128_000 },
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(model).toMatchObject({
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
});
|
||||
@@ -1115,39 +919,6 @@ test("parses Vercel pricing tiers with an implicit zero minimum", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("Vercel factored models inherit temperature from base metadata", () => {
|
||||
const [model] = vercel.parseModels({
|
||||
data: [{
|
||||
id: "moonshotai/kimi-k3",
|
||||
name: "Kimi K3",
|
||||
created: 1_784_160_000,
|
||||
context_window: 1_000_000,
|
||||
max_tokens: 131_072,
|
||||
type: "language",
|
||||
tags: ["reasoning", "tool-use", "vision"],
|
||||
pricing: {
|
||||
input: "0.000003",
|
||||
output: "0.000015",
|
||||
input_cache_read: "0.0000003",
|
||||
},
|
||||
}],
|
||||
});
|
||||
|
||||
const synced = buildVercelModel(model!, {
|
||||
base_model: "moonshotai/kimi-k3",
|
||||
name: "Kimi K3",
|
||||
description: "Kimi multimodal agent model for visual understanding, coding, and planning",
|
||||
open_weights: false,
|
||||
reasoning_options: [],
|
||||
cost: { input: 3, output: 15, cache_read: 0.3 },
|
||||
limit: { context: 1_000_000 },
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(synced).toMatchObject({ base_model: "moonshotai/kimi-k3" });
|
||||
expect(synced).not.toHaveProperty("temperature");
|
||||
});
|
||||
|
||||
test("skips LLM Gateway base_model factoring when no metadata entry exists", () => {
|
||||
const model = buildLLMGatewayModel(
|
||||
llmGatewayModel({ id: "claude-fable-does-not-exist" }),
|
||||
@@ -1255,71 +1026,6 @@ test("skips an unavailable OpenRouter stub with no authored file", () => {
|
||||
expect(translated).toBeUndefined();
|
||||
});
|
||||
|
||||
test("parses nullable EmpirioLabs release dates", () => {
|
||||
expect(empiriolabs.parseModels({
|
||||
data: [{ id: "unknown-text-model", category: "text", model_released_at: null }],
|
||||
})).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("syncs EmpirioLabs pricing tiers and reasoning controls", () => {
|
||||
const model: EmpiriolabsModel = {
|
||||
id: "minimax-m3",
|
||||
display_name: "MiniMax M3",
|
||||
category: "text",
|
||||
context_length: 1_000_000,
|
||||
max_output_tokens: null,
|
||||
capabilities: { reasoning: true },
|
||||
features: ["reasoning", "function_calling"],
|
||||
structured_output: "json_object",
|
||||
input_modalities: ["text", "image", "video"],
|
||||
output_modalities: ["text"],
|
||||
supported_parameters: [
|
||||
{ name: "temperature" },
|
||||
{ name: "max_completion_tokens", max: 524_288 },
|
||||
{ name: "enable_thinking" },
|
||||
{ name: "reasoning_effort", options: ["none", "low", "medium", "high", "max"] },
|
||||
{ name: "thinking_budget", min: 1_024, max: 32_768 },
|
||||
],
|
||||
pricing: [
|
||||
{ prompt: "0.000000225", completion: "0.0000009", input_cache_read: "0.000000045" },
|
||||
{
|
||||
prompt: "0.00000045",
|
||||
completion: "0.0000018",
|
||||
input_cache_read: "0.000000045",
|
||||
min_context: 512_000,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
expect(buildEmpiriolabsModel(model, { base_model: "minimax/MiniMax-M3" })).toMatchObject({
|
||||
base_model: "minimax/MiniMax-M3",
|
||||
structured_output: true,
|
||||
reasoning_options: [
|
||||
{ type: "toggle" },
|
||||
{ type: "effort", values: ["none", "low", "medium", "high", "max"] },
|
||||
{ type: "budget_tokens", min: 1_024, max: 32_768 },
|
||||
],
|
||||
cost: {
|
||||
input: 0.225,
|
||||
output: 0.9,
|
||||
cache_read: 0.045,
|
||||
tiers: [{
|
||||
tier: { type: "context", size: 512_000 },
|
||||
input: 0.45,
|
||||
output: 1.8,
|
||||
cache_read: 0.045,
|
||||
}],
|
||||
},
|
||||
limit: { context: 1_000_000, output: 524_288 },
|
||||
});
|
||||
});
|
||||
|
||||
test("maps EmpirioLabs aliases to canonical model metadata", () => {
|
||||
expect(resolveEmpiriolabsBaseModel("fugu-ultra")).toBe("sakana/fugu-ultra");
|
||||
expect(resolveEmpiriolabsBaseModel("muse-spark-1-1")).toBe("meta/muse-spark-1.1");
|
||||
expect(resolveEmpiriolabsBaseModel("step-3-5-flash")).toBe("stepfun/step-3.5-flash");
|
||||
});
|
||||
|
||||
function unavailableStub(): OpenRouterModel {
|
||||
return openRouterModel({
|
||||
id: "~anthropic/claude-fable-latest",
|
||||
|
||||
@@ -62,13 +62,10 @@ export type ModelFamily =
|
||||
| "gpt-codex-mini"
|
||||
| "gpt-codex-spark"
|
||||
| "gpt-image"
|
||||
| "gpt-luna"
|
||||
| "gpt-mini"
|
||||
| "gpt-nano"
|
||||
| "gpt-oss"
|
||||
| "gpt-pro"
|
||||
| "gpt-sol"
|
||||
| "gpt-terra"
|
||||
| "granite"
|
||||
| "grok"
|
||||
| "grok-beta"
|
||||
@@ -90,7 +87,6 @@ export type ModelFamily =
|
||||
| "kimi-free"
|
||||
| "kimi-k2"
|
||||
| "kimi-thinking"
|
||||
| "laguna"
|
||||
| "ling"
|
||||
| "ling-flash-free"
|
||||
| "liquid"
|
||||
@@ -134,7 +130,6 @@ export type ModelFamily =
|
||||
| "mm-poly"
|
||||
| "model-router"
|
||||
| "morph"
|
||||
| "muse"
|
||||
| "nano-banana"
|
||||
| "nemoretriever"
|
||||
| "nemotron"
|
||||
|
||||
@@ -192,8 +192,6 @@ export interface ModelProviderConfig {
|
||||
api?: string
|
||||
/** API shape when the npm package supports multiple. */
|
||||
shape?: "responses" | "completions"
|
||||
/** Variant selected when a request does not choose one explicitly. */
|
||||
variant?: string
|
||||
/** Extra request body fields required by this model. */
|
||||
body?: Record<string, JsonValue>
|
||||
/** Extra request headers required by this model. */
|
||||
@@ -216,8 +214,6 @@ export interface Model {
|
||||
reasoning: boolean
|
||||
/** Present exactly when `reasoning` is true. */
|
||||
reasoning_options?: ReasoningOption[]
|
||||
/** Provider-authored request body variants keyed by variant ID. */
|
||||
variants?: Record<string, Record<string, JsonValue>>
|
||||
/** Supports tool/function calling. */
|
||||
tool_call: boolean
|
||||
/** Supports interleaved thinking between tool calls. */
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
base_model = "minimax/MiniMax-M2.7"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.3
|
||||
output = 1.2
|
||||
|
||||
[limit]
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text', 'image', 'video']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 131072
|
||||
# RouteLLM input_token_rate: 0.0000003
|
||||
# RouteLLM output_token_rate: 0.0000012
|
||||
base_model = "minimax/MiniMax-M3"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.3
|
||||
output = 1.2
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +1,21 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 131072
|
||||
# RouteLLM max_completion_tokens: 8192
|
||||
# RouteLLM input_token_rate: 0.00000009
|
||||
# RouteLLM output_token_rate: 0.00000029
|
||||
base_model = "alibaba/qwen3-32b"
|
||||
name = "Qwen3 32B"
|
||||
description = "Qwen instruction model for multilingual chat, reasoning, and tool use"
|
||||
family = "qwen"
|
||||
release_date = "2025-04-29"
|
||||
last_updated = "2025-04-29"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.09
|
||||
output = 0.29
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 262144
|
||||
# RouteLLM max_completion_tokens: 16384
|
||||
# RouteLLM input_token_rate: 0.00000029
|
||||
# RouteLLM output_token_rate: 0.0000012
|
||||
base_model = "alibaba/qwen3-coder-480b-a35b-instruct"
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 0.29
|
||||
output = 1.2
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 262144
|
||||
# RouteLLM max_completion_tokens: 8192
|
||||
# RouteLLM input_token_rate: 0.00000032
|
||||
# RouteLLM output_token_rate: 0.0000032
|
||||
base_model = "alibaba/qwen3.6-27b"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.32
|
||||
output = 3.2
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,23 @@
|
||||
name = "Qwen3 Coder 480B A35B Instruct"
|
||||
description = "Qwen coding model for software agents, repository edits, and code reasoning"
|
||||
family = "qwen"
|
||||
release_date = "2025-07-22"
|
||||
last_updated = "2025-07-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.29
|
||||
output = 1.20
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 128000
|
||||
# RouteLLM input_token_rate: 0.00001
|
||||
# RouteLLM output_token_rate: 0.00005
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-fable-5"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 10
|
||||
output = 50
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,14 +1,15 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 200000
|
||||
# RouteLLM max_completion_tokens: 64000
|
||||
# RouteLLM input_token_rate: 0.000001
|
||||
# RouteLLM output_token_rate: 0.000005
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-haiku-4-5-20251001"
|
||||
name = "Claude Haiku 4.5"
|
||||
description = "Fast Claude model for responsive assistance, classification, and lightweight agents"
|
||||
family = "claude-haiku"
|
||||
release_date = "2025-10-15"
|
||||
last_updated = "2025-10-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-02-28"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.00
|
||||
@@ -19,5 +20,5 @@ context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,14 +1,15 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 200000
|
||||
# RouteLLM max_completion_tokens: 64000
|
||||
# RouteLLM input_token_rate: 0.000005
|
||||
# RouteLLM output_token_rate: 0.000025
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-opus-4-5-20251101"
|
||||
name = "Claude Opus 4.5"
|
||||
description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-11-01"
|
||||
last_updated = "2025-11-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-03-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
@@ -19,5 +20,5 @@ context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +1,24 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 128000
|
||||
# RouteLLM input_token_rate: 0.000005
|
||||
# RouteLLM output_token_rate: 0.000025
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-opus-4-6"
|
||||
name = "Claude Opus 4.6"
|
||||
description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-05-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 25.00
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
context = 200_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 128000
|
||||
# RouteLLM input_token_rate: 0.000005
|
||||
# RouteLLM output_token_rate: 0.000025
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-opus-4-7"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 25
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 128000
|
||||
# RouteLLM input_token_rate: 0.000005
|
||||
# RouteLLM output_token_rate: 0.000025
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-opus-4-8"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 25
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,14 +1,15 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 200000
|
||||
# RouteLLM max_completion_tokens: 64000
|
||||
# RouteLLM input_token_rate: 0.000003
|
||||
# RouteLLM output_token_rate: 0.000015
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-sonnet-4-5-20250929"
|
||||
name = "Claude Sonnet 4.5"
|
||||
description = "Balanced Claude model for coding, analysis, agent workflows, and cost control"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-09-29"
|
||||
last_updated = "2025-09-29"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-07-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
@@ -19,5 +20,5 @@ context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +1,24 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 64000
|
||||
# RouteLLM input_token_rate: 0.000003
|
||||
# RouteLLM output_token_rate: 0.000015
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-sonnet-4-6"
|
||||
name = "Claude Sonnet 4.6"
|
||||
description = "Balanced Claude model for coding, analysis, agent workflows, and cost control"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2026-02-17"
|
||||
last_updated = "2026-02-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-08-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 3
|
||||
output = 15
|
||||
input = 3.00
|
||||
output = 15.00
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
context = 200_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 64000
|
||||
# RouteLLM input_token_rate: 0.000003
|
||||
# RouteLLM output_token_rate: 0.000015
|
||||
# RouteLLM thinking: True
|
||||
base_model = "anthropic/claude-sonnet-5"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 3
|
||||
output = 15
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 32768
|
||||
# RouteLLM input_token_rate: 0.00000014
|
||||
# RouteLLM output_token_rate: 0.00000028
|
||||
# RouteLLM cached_input_token_rate: 0.00000003
|
||||
# RouteLLM thinking: True
|
||||
base_model = "deepseek/deepseek-v4-flash"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.28
|
||||
cache_read = 0.03
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1000000
|
||||
# RouteLLM max_completion_tokens: 32768
|
||||
# RouteLLM input_token_rate: 0.00000174
|
||||
# RouteLLM output_token_rate: 0.00000348
|
||||
# RouteLLM cached_input_token_rate: 0.00000015
|
||||
# RouteLLM thinking: True
|
||||
base_model = "deepseek/deepseek-v4-pro"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 1.74
|
||||
output = 3.48
|
||||
cache_read = 0.15
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text', 'image']
|
||||
# RouteLLM context_length: 32768
|
||||
# RouteLLM max_completion_tokens: 32768
|
||||
# RouteLLM input_token_rate: 0.0000003
|
||||
# RouteLLM output_token_rate: 0.00003
|
||||
base_model = "google/gemini-2.5-flash-image"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.3
|
||||
output = 30
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -1,25 +1,24 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.0000003
|
||||
# RouteLLM output_token_rate: 0.0000025
|
||||
# RouteLLM cached_input_token_rate: 0.00000003
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-2.5-flash"
|
||||
name = "Gemini 2.5 Flash"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-03-20"
|
||||
last_updated = "2025-06-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.3
|
||||
output = 2.5
|
||||
cache_read = 0.03
|
||||
input = 0.30
|
||||
output = 2.50
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +1,24 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.00000125
|
||||
# RouteLLM output_token_rate: 0.00001
|
||||
# RouteLLM cached_input_token_rate: 0.000000125
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-2.5-pro"
|
||||
name = "Gemini 2.5 Pro"
|
||||
description = "Advanced Gemini model for complex reasoning, coding, and multimodal analysis"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-03-25"
|
||||
last_updated = "2025-03-25"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 10.00
|
||||
cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +1,24 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.0000005
|
||||
# RouteLLM output_token_rate: 0.000003
|
||||
# RouteLLM cached_input_token_rate: 0.00000005
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-3-flash-preview"
|
||||
name = "Gemini 3 Flash Preview"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-12-17"
|
||||
last_updated = "2025-12-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
input = 0.50
|
||||
output = 3.00
|
||||
cache_read = 0.05
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text', 'image']
|
||||
# RouteLLM context_length: 65536
|
||||
# RouteLLM max_completion_tokens: 32768
|
||||
# RouteLLM input_token_rate: 0.000002
|
||||
# RouteLLM output_token_rate: 0.000012
|
||||
# RouteLLM cached_input_token_rate: 0.0000002
|
||||
base_model = "google/gemini-3-pro-image-preview"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 2
|
||||
output = 12
|
||||
cache_read = 0.2
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text', 'image']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 32768
|
||||
# RouteLLM input_token_rate: 0.0000005
|
||||
# RouteLLM output_token_rate: 0.000003
|
||||
base_model = "google/gemini-3.1-flash-image-preview"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 3
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.00000025
|
||||
# RouteLLM output_token_rate: 0.0000015
|
||||
# RouteLLM cached_input_token_rate: 0.000000025
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-3.1-flash-lite"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 1.5
|
||||
cache_read = 0.025
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +1,25 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.000002
|
||||
# RouteLLM output_token_rate: 0.000012
|
||||
# RouteLLM cached_input_token_rate: 0.0000002
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-3.1-pro-preview"
|
||||
name = "Gemini 3.1 Pro Preview"
|
||||
description = "Advanced Gemini model for complex reasoning, coding, and multimodal analysis"
|
||||
family = "gemini-pro"
|
||||
release_date = "2026-02-19"
|
||||
last_updated = "2026-02-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 2.00
|
||||
output = 12.00
|
||||
cache_read = 0.2
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM input_modalities: ['text', 'image', 'audio']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 1048576
|
||||
# RouteLLM max_completion_tokens: 65536
|
||||
# RouteLLM input_token_rate: 0.0000015
|
||||
# RouteLLM output_token_rate: 0.000009
|
||||
# RouteLLM cached_input_token_rate: 0.00000015
|
||||
# RouteLLM thinking: True
|
||||
base_model = "google/gemini-3.5-flash"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 1.5
|
||||
output = 9
|
||||
cache_read = 0.15
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Source: https://routellm.abacus.ai/v1/models
|
||||
# RouteLLM API does not report thinking: true for this ID.
|
||||
# RouteLLM input_modalities: ['text', 'image']
|
||||
# RouteLLM output_modalities: ['text']
|
||||
# RouteLLM context_length: 262144
|
||||
# RouteLLM max_completion_tokens: 131072
|
||||
# RouteLLM input_token_rate: 0.00000014
|
||||
# RouteLLM output_token_rate: 0.0000004
|
||||
base_model = "google/gemma-4-31b-it"
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.4
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
Loaded 100 of 835 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user