Compare commits
1
Commits
dev
..
issue-4818
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
948aeb6c7b |
No files matched your search
@@ -2,7 +2,7 @@ name: Dev CI Fixer
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Deploy, Sync Model Catalogs]
|
||||
workflows: [Deploy]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -88,8 +88,6 @@ jobs:
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
|
||||
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID }}
|
||||
CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID }}
|
||||
CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN }}
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
name = "Qwen3 VL 235B A22B Instruct"
|
||||
description = "Qwen vision-language instruct model for visual reasoning, documents, and agent tasks"
|
||||
family = "qwen"
|
||||
release_date = "2025-09-23"
|
||||
last_updated = "2025-09-23"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-03-31"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct"
|
||||
@@ -1,24 +0,0 @@
|
||||
name = "Qwen3 VL 235B A22B Thinking"
|
||||
description = "Qwen vision-language thinking model for visual reasoning, documents, and agent tasks"
|
||||
family = "qwen"
|
||||
release_date = "2025-09-23"
|
||||
last_updated = "2025-09-23"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-03-31"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Thinking"
|
||||
@@ -1,33 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B
|
||||
# https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B/raw/main/README.md
|
||||
# https://qwen.ai/blog?id=qwen3.8
|
||||
# https://openrouter.ai/qwen/qwen3.8-2.4t-a95b
|
||||
# Open-weight twin of Qwen3.8 Max: text-only, thinking always on,
|
||||
# reasoning_effort low|medium|xhigh (default xhigh). Native context 262K,
|
||||
# extensible to ~1.01M. Distinct from closed multimodal qwen3.8-max.
|
||||
|
||||
name = "Qwen3.8 2.4T A95B"
|
||||
description = "Open-weight sparse MoE (2.4T total, 95B active), the open-weight twin of Qwen3.8 Max for coding, research, complex reasoning, and agentic workflows"
|
||||
family = "qwen"
|
||||
release_date = "2026-08-12"
|
||||
last_updated = "2026-08-12"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "qwen3.8-max"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B"
|
||||
@@ -1,36 +0,0 @@
|
||||
# Sources (accessed 2026-08-28):
|
||||
# https://huggingface.co/Qwen/Qwen3.8-Flash-Next
|
||||
# https://huggingface.co/api/models/Qwen/Qwen3.8-Flash-Next
|
||||
# https://qwen.ai/blog?id=qwen3.8-flash-next
|
||||
# Hub lastModified 2026-08-27T05:03:36Z is the open-weight drop (Do not use
|
||||
# Hub createdAt, staged countdown page).
|
||||
# Experimental preview of the Qwen4 architecture (Qwen4Exp): hybrid
|
||||
# Gated DeltaNet + Qwen Sparse Attention, 512 experts (10 routed + 1 shared),
|
||||
# 125B total with 6B active plus 51B n-gram embedding and 4B MTP.
|
||||
# Thinking always on: reasoning_effort low|medium|xhigh (default xhigh).
|
||||
# Native context 262K, extensible up to 1M tokens.
|
||||
|
||||
name = "Qwen3.8 Flash Next"
|
||||
description = "Open-weight experimental preview of the Qwen4 architecture: hybrid-attention MoE (125B total, 6B active) with vision encoder for coding, agent tasks, and image and video understanding"
|
||||
family = "qwen"
|
||||
release_date = "2026-08-27"
|
||||
last_updated = "2026-08-27"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "qwen-community-1.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/Qwen/Qwen3.8-Flash-Next"
|
||||
@@ -1,19 +0,0 @@
|
||||
# Source: https://www.qwencloud.com/models/qwen3.8-flash
|
||||
name = "Qwen3.8 Flash"
|
||||
description = "Qwen vision-language model for visual reasoning, documents, and agent tasks"
|
||||
family = "qwen"
|
||||
release_date = "2026-08-26"
|
||||
last_updated = "2026-08-26"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,28 +0,0 @@
|
||||
# Sources (accessed 2026-09-03):
|
||||
# https://www.qwencloud.com/models/qwen3.8-max-0902
|
||||
# https://www.alibabacloud.com/help/en/model-studio/qwen3-8-max
|
||||
# https://docs.qwencloud.com/developer-guides/text-generation/thinking
|
||||
# Snapshot of qwen3.8-max (alias qwen3.8-max-2026-09-02). Same limits,
|
||||
# hybrid thinking, modalities, and tool ecosystem as qwen3.8-max; post-trained
|
||||
# for stronger coding, collaborative agents, and vision/document understanding.
|
||||
# PDF input: inherits Completions PDF理解 / document parsing from the Max line
|
||||
# (same as models/alibaba/qwen3.8-max.toml).
|
||||
|
||||
name = "Qwen3.8 Max 0902"
|
||||
description = "2026-09-02 upgraded snapshot of Qwen3.8 Max with stronger coding, collaborative agents, and multimodal document understanding"
|
||||
family = "qwen"
|
||||
release_date = "2026-09-02"
|
||||
last_updated = "2026-09-02"
|
||||
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", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
# Sources: https://docs.aws.amazon.com/nova/latest/nova2-userguide/what-is-nova-2.html
|
||||
# https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-nova-2-lite.html
|
||||
# Launch: https://aws.amazon.com/about-aws/whats-new/2025/12/nova-2-foundation-models-amazon-bedrock/
|
||||
name = "Nova 2 Lite"
|
||||
description = "Multimodal reasoning model for visual analysis, planning, and tool use"
|
||||
family = "nova"
|
||||
release_date = "2025-12-02"
|
||||
last_updated = "2025-12-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-10"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,24 +0,0 @@
|
||||
# Sources: https://docs.aws.amazon.com/nova/latest/userguide/what-is-nova.html
|
||||
# https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-nova-lite.html
|
||||
# Launch: https://aws.amazon.com/blogs/aws/introducing-amazon-nova-frontier-intelligence-and-industry-leading-price-performance/
|
||||
# PDF document input is supported through Bedrock Converse.
|
||||
# Output: the Nova V1 guide's 10K is confirmed by US Bedrock Converse boundary checks (2026-09-09).
|
||||
name = "Nova Lite"
|
||||
description = "Efficient model for low-latency assistance, extraction, and routine automation"
|
||||
family = "nova-lite"
|
||||
release_date = "2024-12-03"
|
||||
last_updated = "2024-12-03"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-10"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 300_000
|
||||
output = 10_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Sources: https://docs.aws.amazon.com/nova/latest/userguide/what-is-nova.html
|
||||
# https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-nova-micro.html
|
||||
# Launch: https://aws.amazon.com/blogs/aws/introducing-amazon-nova-frontier-intelligence-and-industry-leading-price-performance/
|
||||
# Output: the Nova V1 guide's 10K is confirmed by US Bedrock Converse boundary checks (2026-09-09).
|
||||
name = "Nova Micro"
|
||||
description = "Efficient model for low-latency assistance, extraction, and routine automation"
|
||||
family = "nova-micro"
|
||||
release_date = "2024-12-03"
|
||||
last_updated = "2024-12-03"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-10"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 10_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Launch: https://aws.amazon.com/blogs/aws/amazon-nova-premier-our-most-capable-model-for-complex-tasks-and-teacher-for-model-distillation/
|
||||
# Specs (including 10K output): https://docs.aws.amazon.com/nova/latest/userguide/what-is-nova.html
|
||||
# Prompted CoT, not a native thinking mode: https://docs.aws.amazon.com/nova/latest/userguide/prompting-chain-of-thought.html
|
||||
# Bedrock's generic Premier card conflicts on launch date, output limit, and reasoning; use the Nova V1 guide and launch announcement.
|
||||
name = "Nova Premier"
|
||||
description = "Multimodal model for complex analysis, long-context understanding, tool use, and model distillation"
|
||||
family = "nova"
|
||||
release_date = "2025-04-30"
|
||||
last_updated = "2025-04-30"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-10"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 10_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,24 +0,0 @@
|
||||
# Sources: https://docs.aws.amazon.com/nova/latest/userguide/what-is-nova.html
|
||||
# https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-nova-pro.html
|
||||
# Launch: https://aws.amazon.com/blogs/aws/introducing-amazon-nova-frontier-intelligence-and-industry-leading-price-performance/
|
||||
# PDF document input is supported through Bedrock Converse.
|
||||
# Output: the Nova V1 guide's 10K is confirmed by US Bedrock Converse boundary checks (2026-09-09).
|
||||
name = "Nova Pro"
|
||||
description = "Flagship model for demanding analysis, coding, and production agent workflows"
|
||||
family = "nova-pro"
|
||||
release_date = "2024-12-03"
|
||||
last_updated = "2024-12-03"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-10"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 300_000
|
||||
output = 10_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "Claude Fable 5.1"
|
||||
description = "Claude model for demanding reasoning and long-horizon agentic work"
|
||||
family = "claude-fable"
|
||||
release_date = "2026-09-01"
|
||||
last_updated = "2026-09-01"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2026-06"
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -6,11 +6,10 @@ description = "Low-latency ByteDance Seed model for high-throughput chat, extrac
|
||||
family = "seed"
|
||||
release_date = "2025-08-28"
|
||||
last_updated = "2025-08-28"
|
||||
attachment = true
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
@@ -18,5 +17,5 @@ context = 256_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -6,11 +6,10 @@ description = "ByteDance Seed model for multimodal reasoning, long-context analy
|
||||
family = "seed"
|
||||
release_date = "2025-12-28"
|
||||
last_updated = "2025-12-28"
|
||||
attachment = true
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
@@ -18,5 +17,5 @@ context = 256_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -10,7 +10,6 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name = "Ornith 1.5 35B A3B"
|
||||
description = "Mixture-of-experts coding-reasoning model for agentic software tasks, tool use, and image understanding"
|
||||
family = "ornith"
|
||||
release_date = "2026-08-18"
|
||||
last_updated = "2026-08-23"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "MIT"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B"
|
||||
|
||||
[[links]]
|
||||
label = "Model card"
|
||||
url = "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B"
|
||||
type = "model_card"
|
||||
@@ -1,28 +0,0 @@
|
||||
# Sources:
|
||||
# https://www.deepseek.com/en/news/v4-preview/
|
||||
# https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash
|
||||
name = "DeepSeek V4 Flash 0423"
|
||||
description = "Initial DeepSeek V4 Flash snapshot for economical reasoning, coding, and million-token agent workloads"
|
||||
family = "deepseek-flash"
|
||||
release_date = "2026-04-23"
|
||||
last_updated = "2026-04-23"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
license = "MIT"
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash"
|
||||
@@ -1,19 +0,0 @@
|
||||
name = "DeepSeek V4 Flash Vision Exp"
|
||||
description = "Experimental multimodal DeepSeek V4 Flash model for image understanding, coding, and agentic work"
|
||||
family = "deepseek-flash"
|
||||
release_date = "2026-08-21"
|
||||
last_updated = "2026-08-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
# https://ofox.ai/models/deepseek/deepseek-v4-pro-0423
|
||||
# https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro
|
||||
name = "DeepSeek V4 Pro 0423"
|
||||
description = "DeepSeek V4 Pro initial snapshot with million-token context and support for thinking and non-thinking modes"
|
||||
family = "deepseek-thinking"
|
||||
release_date = "2026-04-23"
|
||||
last_updated = "2026-04-23"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,16 +1,14 @@
|
||||
# https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro-0813
|
||||
name = "DeepSeek V4 Pro 0813"
|
||||
description = "DeepSeek V4 Pro snapshot with million-token context and support for thinking and non-thinking modes"
|
||||
family = "deepseek-thinking"
|
||||
release_date = "2026-08-12"
|
||||
last_updated = "2026-08-22"
|
||||
last_updated = "2026-08-12"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "MIT"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
@@ -19,7 +17,3 @@ output = 384_000
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro-0813"
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek V4.1 Flash"
|
||||
description = "DeepSeek V4.1 Flash model for reasoning and agentic coding"
|
||||
family = "deepseek-flash"
|
||||
release_date = "2026-09-10"
|
||||
last_updated = "2026-09-10"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
license = "MIT"
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,4 +1,4 @@
|
||||
name = "Nano Banana Pro Preview"
|
||||
name = "Nano Banana Pro"
|
||||
description = "Nano Banana Pro for higher-fidelity image generation and design-heavy edits"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-11-20"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name = "Nano Banana 2 Preview"
|
||||
name = "Nano Banana 2"
|
||||
description = "Image model for prompt-driven generation, editing, and visual design workflows"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-02-26"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
# Source: https://vercel.com/ai-gateway/models/gemini-3.5-transcribe-live
|
||||
# Live transcription has no token context/output window; zero denotes not applicable.
|
||||
name = "Gemini 3.5 Transcribe Live"
|
||||
description = "Speech transcription model for accurate audio-to-text and captioning workflows"
|
||||
family = "gemini"
|
||||
release_date = "2026-08-26"
|
||||
last_updated = "2026-08-26"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 0
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["audio"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
# Sources:
|
||||
# - https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash
|
||||
# - https://ai.google.dev/gemini-api/docs/latest-model
|
||||
name = "Gemini 3.8 Flash"
|
||||
description = "Google's most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-09-02"
|
||||
last_updated = "2026-09-02"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,15 +1,15 @@
|
||||
# Tracks the current Gemini Flash release (gemini-3.7-flash).
|
||||
# Tracks the current Gemini Flash release (gemini-3.5-flash).
|
||||
name = "Gemini Flash Latest"
|
||||
description = "High-efficiency Gemini model for agentic workflows, coding, and multimodal reasoning"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-08-13"
|
||||
last_updated = "2026-08-13"
|
||||
release_date = "2026-05-19"
|
||||
last_updated = "2026-05-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Tracks the current Gemini Flash-Lite release (gemini-3.5-flash-lite).
|
||||
# Tracks the current Gemini Flash-Lite release (gemini-3.1-flash-lite).
|
||||
name = "Gemini Flash-Lite Latest"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
description = "Low-latency Gemini model for high-volume multimodal and agent workloads"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
release_date = "2026-05-07"
|
||||
last_updated = "2026-05-07"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://ai.google.dev/gemma/docs/core/model_card_3
|
||||
# https://blog.google/technology/developers/gemma-3/
|
||||
name = "Gemma 3 12B IT"
|
||||
description = "Open multimodal Gemma instruction model for multilingual text generation and image understanding"
|
||||
family = "gemma"
|
||||
release_date = "2025-03-12"
|
||||
last_updated = "2025-03-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2024-08"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/google/gemma-3-12b-it"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://ai.google.dev/gemma/docs/core/model_card_3
|
||||
# https://blog.google/technology/developers/gemma-3/
|
||||
name = "Gemma 3 27B IT"
|
||||
description = "Largest open Gemma 3 instruction model for multilingual text generation and visual understanding"
|
||||
family = "gemma"
|
||||
release_date = "2025-03-12"
|
||||
last_updated = "2025-03-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2024-08"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/google/gemma-3-27b-it"
|
||||
@@ -1,25 +0,0 @@
|
||||
# https://ai.google.dev/gemma/docs/core/model_card_3
|
||||
# https://blog.google/technology/developers/gemma-3/
|
||||
name = "Gemma 3 4B IT"
|
||||
description = "Open multimodal Gemma instruction model for efficient text generation and image understanding"
|
||||
family = "gemma"
|
||||
release_date = "2025-03-12"
|
||||
last_updated = "2025-03-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2024-08"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/google/gemma-3-4b-it"
|
||||
@@ -1,20 +0,0 @@
|
||||
# https://novita.ai/models/model-detail/inclusionai-ling-3.0-flash-fin
|
||||
# https://openrouter.ai/api/v1/models/inclusionai/ling-3.0-flash-fin:free/endpoints
|
||||
# https://vercel.com/changelog/ling-3-0-flash-fin-now-available-on-ai-gateway-for-free
|
||||
name = "Ling 3.0 Flash Fin"
|
||||
description = "Finance-enhanced model for financial research, multi-step investment workflows, and long-horizon planning and execution"
|
||||
family = "ling"
|
||||
release_date = "2026-08-27"
|
||||
last_updated = "2026-08-27"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "Llama-3.1-70B-Instruct"
|
||||
description = "Open Llama instruction model for multilingual chat, reasoning, and coding"
|
||||
family = "llama"
|
||||
release_date = "2024-07-23"
|
||||
last_updated = "2024-07-23"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2023-12"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct"
|
||||
@@ -3,7 +3,7 @@ description = "Popular open Llama workhorse for multilingual chat, coding, and s
|
||||
family = "llama"
|
||||
release_date = "2024-12-06"
|
||||
last_updated = "2024-12-06"
|
||||
attachment = false
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# https://github.com/meta-llama/llama-models/blob/main/models/llama4/MODEL_CARD.md
|
||||
name = "Llama 4 Scout 17B Instruct"
|
||||
description = "Open Llama with long-context vision for efficient multimodal agents"
|
||||
family = "llama"
|
||||
@@ -12,7 +11,7 @@ knowledge = "2024-08"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 10_000_000
|
||||
context = 3_500_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -11,8 +11,8 @@ structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 131_072
|
||||
context = 1_000_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf", "video"]
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
# Sources:
|
||||
# https://research.meta.ai/blog/introducing-muse-spark-1-3
|
||||
# https://dev.meta.ai/docs/models
|
||||
# https://openrouter.ai/meta/muse-spark-1.3 (OpenRouter Meta-hosted catalog snapshot, 2026-09-02)
|
||||
|
||||
name = "Muse Spark 1.3"
|
||||
description = "Muse Spark 1.3 is a multimodal reasoning model from Meta for long-running agentic, multi-agent, and coding workflows. It improves long-horizon agent collaboration, instruction following, and coding efficiency relative to Muse Spark 1.2."
|
||||
family = "muse"
|
||||
release_date = "2026-09-02"
|
||||
last_updated = "2026-09-02"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf", "audio"]
|
||||
output = ["text"]
|
||||
@@ -11,8 +11,8 @@ tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 2_048
|
||||
context = 200_000
|
||||
output = 131_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -10,8 +10,8 @@ tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
context = 196_608
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -10,8 +10,8 @@ tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 512_000
|
||||
context = 512_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# Sources:
|
||||
# - https://platform.minimax.io/docs/guides/image-generation (text-to-image + subject reference)
|
||||
# - https://platform.minimax.io/docs/api-reference/image-generation-t2i (POST /v1/image_generation)
|
||||
# - https://platform.minimax.io/docs/guides/pricing-paygo#image ($0.0035 per image)
|
||||
# - https://platform.minimax.io/docs/guides/pricing-token-plan (covered by Token Plan; no per-image cost)
|
||||
# Note: served on the standalone image endpoint (/v1/image_generation), not the
|
||||
# Anthropic-compatible /anthropic/v1 base — hence no provider entry under providers/minimax*.
|
||||
|
||||
name = "MiniMax image-01"
|
||||
description = "MiniMax text-to-image generation model with reference-image support"
|
||||
family = "minimax"
|
||||
release_date = "2025-02-15"
|
||||
last_updated = "2026-08-25"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 0
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["image"]
|
||||
@@ -1,27 +0,0 @@
|
||||
# Sources:
|
||||
# https://mistral.ai/news/devstral-2-vibe-cli/
|
||||
# https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512
|
||||
name = "Devstral Small 2"
|
||||
description = "Compact multimodal coding model for repository exploration, file editing, and software agents"
|
||||
family = "devstral"
|
||||
release_date = "2025-12-09"
|
||||
last_updated = "2025-12-09"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-12"
|
||||
open_weights = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512"
|
||||
@@ -1,27 +0,0 @@
|
||||
# https://docs.mistral.ai/models/magistral-small-1-2-25-09
|
||||
# https://huggingface.co/mistralai/Magistral-Small-2509
|
||||
# https://huggingface.co/mistralai/Magistral-Small-2509/blob/main/generation_config.json
|
||||
# Native generation config sets max_new_tokens = 131072, matching the model card's max_tokens setting.
|
||||
name = "Magistral Small 1.2"
|
||||
description = "Open multimodal reasoning model for transparent analysis of text and images"
|
||||
family = "magistral"
|
||||
release_date = "2025-09-18"
|
||||
last_updated = "2025-09-18"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Magistral-Small-2509"
|
||||
@@ -1,26 +0,0 @@
|
||||
# Sources:
|
||||
# https://mistral.ai/news/mistral-3/
|
||||
# https://huggingface.co/mistralai/Ministral-3-14B-Instruct-2512
|
||||
name = "Ministral 14B"
|
||||
description = "Compact multimodal Mistral model for local assistants, edge agents, and efficient tool use"
|
||||
family = "ministral"
|
||||
release_date = "2025-12-02"
|
||||
last_updated = "2025-12-02"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Ministral-3-14B-Instruct-2512"
|
||||
@@ -1,29 +0,0 @@
|
||||
# https://docs.mistral.ai/models/ministral-3-14b-25-12
|
||||
# https://huggingface.co/mistralai/Ministral-3-14B-Instruct-2512
|
||||
# https://huggingface.co/mistralai/Ministral-3-14B-Instruct-2512/blob/main/generation_config.json
|
||||
# Native examples request max_tokens = 262144; generation_config.max_length is also 262144.
|
||||
# This is a shared prompt/generation ceiling, not a host-specific independent output cap.
|
||||
name = "Ministral 3 14B"
|
||||
description = "Open vision-language model for efficient local deployment, instruction following, and tool use"
|
||||
family = "ministral"
|
||||
release_date = "2025-12-02"
|
||||
last_updated = "2025-12-02"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Ministral-3-14B-Instruct-2512"
|
||||
@@ -1,29 +0,0 @@
|
||||
# https://mistral.ai/news/mistral-3
|
||||
# https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512
|
||||
# https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512/blob/main/generation_config.json
|
||||
# Native examples request max_tokens = 262144; generation_config.max_length is also 262144.
|
||||
# This is a shared prompt/generation ceiling, not a host-specific independent output cap.
|
||||
name = "Ministral 3 3B"
|
||||
description = "Compact open vision-language model for edge deployment, instruction following, and tool use"
|
||||
family = "ministral"
|
||||
release_date = "2025-12-02"
|
||||
last_updated = "2025-12-02"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512"
|
||||
@@ -1,29 +0,0 @@
|
||||
# https://mistral.ai/news/mistral-3
|
||||
# https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512
|
||||
# https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512/blob/main/generation_config.json
|
||||
# Native examples request max_tokens = 262144; generation_config.max_length is also 262144.
|
||||
# This is a shared prompt/generation ceiling, not a host-specific independent output cap.
|
||||
name = "Ministral 3 8B"
|
||||
description = "Compact open vision-language model for edge deployment, instruction following, and tool use"
|
||||
family = "ministral"
|
||||
release_date = "2025-12-02"
|
||||
last_updated = "2025-12-02"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512"
|
||||
@@ -1,22 +0,0 @@
|
||||
# Sources:
|
||||
# https://mistral.ai/news/ministraux/
|
||||
# https://ai.azure.com/catalog/models/Ministral-3B
|
||||
name = "Ministral 3B"
|
||||
description = "Compact Mistral model for edge, latency-sensitive, and cost-efficient workloads"
|
||||
family = "ministral"
|
||||
release_date = "2024-10-16"
|
||||
last_updated = "2024-10-16"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2024-03"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,8 +1,7 @@
|
||||
# https://mistral.ai/news/mistral-3
|
||||
name = "Mistral Large 3"
|
||||
description = "Mistral's largest general model for enterprise agents, coding, and multilingual reasoning"
|
||||
family = "mistral-large"
|
||||
release_date = "2025-12-02"
|
||||
release_date = "2024-11-01"
|
||||
last_updated = "2025-12-02"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name = "Pixtral Large (25.02)"
|
||||
description = "Mistral vision-language model for image understanding and multimodal chat"
|
||||
family = "pixtral"
|
||||
release_date = "2025-04-08"
|
||||
last_updated = "2025-04-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,29 +0,0 @@
|
||||
# https://mistral.ai/news/voxtral/
|
||||
# https://huggingface.co/mistralai/Voxtral-Mini-3B-2507
|
||||
# https://huggingface.co/mistralai/Voxtral-Mini-3B-2507/blob/main/params.json
|
||||
# https://docs.mistral.ai/api/endpoint/chat
|
||||
# Native params specify 32768 positions, matching the card's 32k context.
|
||||
# Output is this shared-window ceiling: prompt + max_tokens must fit; no separate native output cap is published.
|
||||
name = "Voxtral Mini 3B 2507"
|
||||
description = "Open audio-language model for speech transcription, audio understanding, and voice-driven tool use"
|
||||
family = "voxtral"
|
||||
release_date = "2025-07-15"
|
||||
last_updated = "2025-07-15"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Voxtral-Mini-3B-2507"
|
||||
@@ -1,29 +0,0 @@
|
||||
# https://mistral.ai/news/voxtral/
|
||||
# https://huggingface.co/mistralai/Voxtral-Small-24B-2507
|
||||
# https://huggingface.co/mistralai/Voxtral-Small-24B-2507/blob/main/params.json
|
||||
# https://docs.mistral.ai/api/endpoint/chat
|
||||
# Native params specify 32768 positions, matching the card's 32k context.
|
||||
# Output is this shared-window ceiling: prompt + max_tokens must fit; no separate native output cap is published.
|
||||
name = "Voxtral Small 24B 2507"
|
||||
description = "Open audio-language model for speech transcription, audio understanding, and voice-driven tool use"
|
||||
family = "voxtral"
|
||||
release_date = "2025-07-15"
|
||||
last_updated = "2025-07-15"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "Apache 2.0"
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/mistralai/Voxtral-Small-24B-2507"
|
||||
@@ -1,24 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://docs.mistral.ai/models/model-cards/voxtral-small-25-07
|
||||
# https://mistral.ai/news/voxtral/
|
||||
# Field values mirror Mistral's own first-party host entry in this repo
|
||||
# (providers/mistral/models/voxtral-small-latest.toml); host-scoped keys
|
||||
# (cost, status) are intentionally left to the provider files.
|
||||
name = "Voxtral Small (latest)"
|
||||
description = "Instruct model with native audio input for speech understanding and tool use"
|
||||
family = "voxtral"
|
||||
release_date = "2025-07-15"
|
||||
last_updated = "2025-07-15"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 32_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text"]
|
||||
@@ -5,7 +5,7 @@ release_date = "2025-08-07"
|
||||
last_updated = "2025-08-07"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
structured_output = true
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2025-11-13"
|
||||
last_updated = "2025-11-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2025-12-11"
|
||||
last_updated = "2025-12-11"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2026-03-17"
|
||||
last_updated = "2026-03-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2026-03-17"
|
||||
last_updated = "2026-03-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
@@ -5,7 +5,7 @@ release_date = "2026-03-05"
|
||||
last_updated = "2026-03-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
name = "GPT-6 Astra (Fast)"
|
||||
description = "Fast variant of GPT-6 Astra for low-latency assistance and high-volume workloads."
|
||||
family = "gpt-astra"
|
||||
release_date = "2026-09-04"
|
||||
last_updated = "2026-09-04"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,166 +0,0 @@
|
||||
name = "GPT-6 Astra"
|
||||
description = "GPT-6 Astra is OpenAI's most capable model for complex reasoning, coding, computer use, research, and document creation."
|
||||
family = "gpt-astra"
|
||||
release_date = "2026-09-04"
|
||||
last_updated = "2026-09-04"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-04-30"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Agents' Last Exam"
|
||||
score = 59.3
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "OSWorld"
|
||||
score = 72.6
|
||||
metric = "partial score"
|
||||
dataset = "V2-Offline (v2026.08.08)"
|
||||
version = "2.0"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ScreenSpot-Pro"
|
||||
score = 92.7
|
||||
metric = "accuracy"
|
||||
variant = "no tools"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "AutomationBench"
|
||||
score = 41.4
|
||||
metric = "success rate"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BenchCAD"
|
||||
score = 95.9
|
||||
metric = "geometric overlap"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "BrowseComp"
|
||||
score = 91.5
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench"
|
||||
score = 57.9
|
||||
metric = "success rate"
|
||||
version = "4.0"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "DeepSWE"
|
||||
score = 74.1
|
||||
metric = "resolve rate"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierCode"
|
||||
score = 64.5
|
||||
metric = "score"
|
||||
dataset = "Extended"
|
||||
version = "1.1"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench Science"
|
||||
score = 64.6
|
||||
metric = "success rate"
|
||||
version = "0.1"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FrontierMath"
|
||||
score = 97.6
|
||||
metric = "accuracy"
|
||||
dataset = "Tier 4"
|
||||
version = "v2"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "GPQA Diamond"
|
||||
score = 96.0
|
||||
metric = "accuracy"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Humanity's Last Exam"
|
||||
score = 57.2
|
||||
metric = "accuracy"
|
||||
variant = "with tools"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ExploitBench"
|
||||
score = 100.0
|
||||
metric = "success rate"
|
||||
variant = "without production safeguards"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SRE-Bench"
|
||||
score = 88.0
|
||||
metric = "success rate"
|
||||
variant = "single attempt"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "ARC-AGI-3"
|
||||
score = 99.9
|
||||
metric = "RHAE"
|
||||
harness = "Responses API"
|
||||
source = "https://openai.com/index/gpt-6-astra/"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Intelligence Index"
|
||||
score = 61
|
||||
metric = "index score"
|
||||
variant = "max"
|
||||
version = "4.1.1"
|
||||
source = "https://artificialanalysis.ai/articles/benchmarking-gpt-6-astra"
|
||||
date = "2026-09-03"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Agent Index"
|
||||
score = 67
|
||||
metric = "index score"
|
||||
harness = "Codex"
|
||||
variant = "max"
|
||||
version = "1.4"
|
||||
source = "https://artificialanalysis.ai/articles/benchmarking-gpt-6-astra"
|
||||
date = "2026-09-03"
|
||||
@@ -1,32 +0,0 @@
|
||||
# Model and reasoning controls: https://huggingface.co/openai/gpt-oss-safeguard-20b
|
||||
# Text-only, reasoning and structured outputs: https://openai.com/index/gpt-oss-safeguard-technical-report/
|
||||
# Tool-call format: https://huggingface.co/openai/gpt-oss-safeguard-20b/blob/main/chat_template.jinja
|
||||
# Context: https://huggingface.co/openai/gpt-oss-safeguard-20b/blob/8a11e17b25c973a24099d4016bf2e17dd7ec1574/config.json
|
||||
# Output is the configured decoder-context ceiling, not a published hosted-API output maximum.
|
||||
# Prompt, reasoning and final output share the 131,072-token budget; usable output is the remaining context.
|
||||
# No separate fixed output cap: https://huggingface.co/openai/gpt-oss-safeguard-20b/blob/8a11e17b25c973a24099d4016bf2e17dd7ec1574/generation_config.json
|
||||
# Reference generation has a caller-supplied token cap (0 = uncapped): https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py
|
||||
# Release: https://openai.com/index/introducing-gpt-oss-safeguard/
|
||||
name = "GPT OSS Safeguard 20B"
|
||||
description = "Safety model for policy screening, moderation, and risk-aware routing workflows"
|
||||
family = "gpt-oss"
|
||||
release_date = "2025-10-29"
|
||||
last_updated = "2025-10-29"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/openai/gpt-oss-safeguard-20b"
|
||||
@@ -1,25 +0,0 @@
|
||||
# Sources (accessed 2026-09-03):
|
||||
# https://huggingface.co/openbmb/MiniCPM5-1B (model card, config)
|
||||
# https://github.com/OpenBMB/MiniCPM (release announcement 2026-05-19)
|
||||
name = "MiniCPM5-1B"
|
||||
description = "Dense 1B-class open-source model for on-device and resource-constrained use, with native long-context support, Think / No Think chat modes, and tool calling"
|
||||
release_date = "2026-05-19"
|
||||
last_updated = "2026-05-19"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "apache-2.0"
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/openbmb/MiniCPM5-1B"
|
||||
@@ -1,25 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://docs.perplexity.ai/docs/sonar/models/sonar-deep-research
|
||||
# https://docs.perplexity.ai/api-reference/sonar-post
|
||||
# Field values mirror Perplexity's own first-party host entry in this repo
|
||||
# (providers/perplexity/models/sonar-deep-research.toml); host-scoped keys
|
||||
# (cost, reasoning_options) are intentionally left to the provider files.
|
||||
name = "Sonar Deep Research"
|
||||
description = "Sonar search model for autonomous research and citation-backed long-form reports"
|
||||
family = "sonar"
|
||||
release_date = "2025-02-01"
|
||||
last_updated = "2025-09-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,59 +0,0 @@
|
||||
name = "Sakana Namazu"
|
||||
description = "Japanese-specialized reasoning model based on Kimi K2.6 and tuned for Japanese language, culture, and business workflows"
|
||||
family = "sakana-namazu"
|
||||
release_date = "2026-08-03"
|
||||
last_updated = "2026-08-03"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[links]]
|
||||
label = "Official product page"
|
||||
url = "https://sakana.ai/namazu/"
|
||||
type = "announcement"
|
||||
|
||||
[[links]]
|
||||
label = "Official model documentation"
|
||||
url = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
type = "docs"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "AIME26"
|
||||
score = 96.67
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "MMLU-Pro"
|
||||
score = 90.33
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "LiveCodeBench v6"
|
||||
score = 90.33
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "JFBench"
|
||||
score = 37.40
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Translation"
|
||||
score = 52.20
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "FairPoliticsQA"
|
||||
score = 56.30
|
||||
source = "https://console.sakana.ai/models?model=sakana-namazu"
|
||||
@@ -1,33 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509
|
||||
# https://arxiv.org/abs/2509.14233
|
||||
# The model card states "Apertus by default supports a context length up to 65,536 tokens",
|
||||
# Apache-2.0 licensing, and tool use support. Sibling entry: models/swiss-ai/apertus-70b.toml.
|
||||
name = "Apertus 8B"
|
||||
description = "Fully open 8B multilingual LLM supporting 1800+ languages with 65K context. Trained on compliant open data. Apache 2.0, EU AI Act compliant."
|
||||
release_date = "2025-09-02"
|
||||
last_updated = "2025-09-02"
|
||||
knowledge = "2025-09"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509"
|
||||
|
||||
[[links]]
|
||||
label = "Paper"
|
||||
url = "https://arxiv.org/abs/2509.14233"
|
||||
type = "paper"
|
||||
@@ -1,4 +1,3 @@
|
||||
# https://cloud.tencent.com/document/product/1823/130051
|
||||
name = "Hy3"
|
||||
description = "Tencent Hy reasoning model for coding, instruction following, and agent tasks"
|
||||
family = "Hy"
|
||||
@@ -12,8 +11,7 @@ open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
input = 192_000
|
||||
output = 128_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name = "Hy4 preview"
|
||||
description = "A next-generation productivity model with significantly enhanced Agent and complex task execution capabilities."
|
||||
family = "Hy"
|
||||
release_date = "2026-08-28"
|
||||
last_updated = "2026-08-28"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_024_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,30 +0,0 @@
|
||||
# Sources:
|
||||
# https://huggingface.co/Trendyol/Trendyol-LLM-Asure-12B
|
||||
# https://huggingface.co/api/models/Trendyol/Trendyol-LLM-Asure-12B (createdAt, license, base_model)
|
||||
# https://huggingface.co/Trendyol/Trendyol-LLM-Asure-12B/raw/main/config.json (max_position_embeddings)
|
||||
# `reasoning` and `tool_call` are not stated on the model card; both were
|
||||
# measured against a host serving these weights (llmtr.com, 2026-08-16):
|
||||
# a request carrying `tools` returns no tool_calls, and no reasoning output
|
||||
# is produced.
|
||||
name = "Trendyol Asure 12B"
|
||||
description = "Turkish-language multimodal instruct model built on Gemma 3 12B for e-commerce text, chat, and image-text tasks"
|
||||
family = "gemma"
|
||||
release_date = "2026-02-19"
|
||||
last_updated = "2026-02-20"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "Gemma"
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/Trendyol/Trendyol-LLM-Asure-12B"
|
||||
@@ -1,25 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://developers.upstage.ai/docs/apis/chat
|
||||
# https://developers.upstage.ai/docs/capabilities/generate/reasoning
|
||||
# Field values mirror Upstage's own first-party host entry in this repo
|
||||
# (providers/upstage/models/solar-pro2.toml); host-scoped keys (cost,
|
||||
# reasoning_options) are intentionally left to the provider files.
|
||||
name = "Solar Pro 2"
|
||||
description = "Flagship model for demanding analysis, coding, and production agent workflows"
|
||||
family = "solar-pro"
|
||||
release_date = "2025-05-20"
|
||||
last_updated = "2025-05-20"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-03"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://developers.upstage.ai/docs/apis/chat
|
||||
# https://developers.upstage.ai/docs/capabilities/generate/reasoning
|
||||
# Field values mirror Upstage's own first-party host entry in this repo
|
||||
# (providers/upstage/models/solar-pro3.toml); host-scoped keys (cost,
|
||||
# reasoning_options) are intentionally left to the provider files.
|
||||
name = "Solar Pro 3"
|
||||
description = "Flagship model for demanding analysis, coding, and production agent workflows"
|
||||
family = "solar-pro"
|
||||
release_date = "2026-01"
|
||||
last_updated = "2026-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-03"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,26 +0,0 @@
|
||||
# Sources (accessed 2026-08-16):
|
||||
# https://developers.upstage.ai/docs/apis/chat
|
||||
# https://developers.upstage.ai/docs/capabilities/generate/reasoning
|
||||
# Field values mirror Upstage's own first-party host entry in this repo
|
||||
# (providers/upstage/models/solar-pro4.toml); host-scoped keys (cost,
|
||||
# reasoning_options) are intentionally left to the provider files.
|
||||
name = "Solar Pro 4"
|
||||
description = "Upstage's flagship model, specialized for agentic use"
|
||||
family = "solar-pro"
|
||||
release_date = "2026-08-06"
|
||||
last_updated = "2026-08-06"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2026-02"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 524_288
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,20 +0,0 @@
|
||||
# https://writer.com/blog/actions-with-palmyra-x4/
|
||||
# https://dev.writer.com/home/models
|
||||
name = "Palmyra X4"
|
||||
description = "Enterprise language model for workflow automation, coding, data analysis, and tool use"
|
||||
family = "palmyra"
|
||||
release_date = "2024-10-09"
|
||||
last_updated = "2025-04-28"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# https://writer.com/blog/long-context-palmyra-x5/
|
||||
# https://dev.writer.com/home/models
|
||||
# https://dev.writer.com/home/chat-with-images
|
||||
name = "Palmyra X5"
|
||||
description = "Reasoning model for deliberate analysis, multi-step problem solving, and tool use"
|
||||
family = "palmyra"
|
||||
release_date = "2025-04-28"
|
||||
last_updated = "2025-04-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
# Sources:
|
||||
# - https://x.ai/news/grok-4-1-fast
|
||||
# - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/grok/grok-4-1-fast
|
||||
name = "Grok 4.1 Fast (Reasoning)"
|
||||
description = "xAI's fast agentic tool-calling model with a 2M context window and built-in reasoning"
|
||||
family = "grok"
|
||||
release_date = "2025-11-19"
|
||||
last_updated = "2025-11-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 30_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,26 +0,0 @@
|
||||
# Sources:
|
||||
# - https://docs.x.ai/docs/models
|
||||
# - https://docs.x.ai/developers/models/grok-imagine-image-2.0
|
||||
# - https://docs.x.ai/docs/guides/image-generation
|
||||
# - https://x.ai/news/grok-imagine-image-2
|
||||
# Pricing: $0.04 per image (not token-based; no [cost] authored)
|
||||
# Release: 2026-08-07 (GA as Quality Mode; API model id grok-imagine-image-2.0)
|
||||
|
||||
name = "Grok Imagine Image 2.0"
|
||||
description = "Image model for prompt-driven generation, editing, and visual design workflows"
|
||||
family = "grok"
|
||||
release_date = "2026-08-07"
|
||||
last_updated = "2026-08-07"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 8_000
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["image"]
|
||||
@@ -1,25 +0,0 @@
|
||||
# Sources (accessed 2026-08-19):
|
||||
# - https://z.ai/blog/glm-4.6v
|
||||
# - https://huggingface.co/zai-org/GLM-4.6V-Flash
|
||||
name = "GLM-4.6V-Flash"
|
||||
description = "Lightweight GLM vision model for visual reasoning, documents, and multimodal agents"
|
||||
family = "glm"
|
||||
release_date = "2025-12-08"
|
||||
last_updated = "2025-12-08"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/zai-org/GLM-4.6V-Flash"
|
||||
@@ -1,20 +0,0 @@
|
||||
# Open weights: https://huggingface.co/zai-org/GLM-5.3-Flash (MIT, safetensors)
|
||||
name = "GLM-5.3-Flash"
|
||||
description = "Native multimodal GLM model for efficient coding and long-horizon agent tasks"
|
||||
family = "glm"
|
||||
release_date = "2026-08-26"
|
||||
last_updated = "2026-08-26"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -8,7 +8,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
|
||||
@@ -25,11 +25,9 @@
|
||||
"chutes:sync": "bun ./packages/core/script/sync-models.ts chutes",
|
||||
"databricks:generate": "bun ./packages/core/script/generate-databricks.ts",
|
||||
"helicone:generate": "bun ./packages/core/script/generate-helicone.ts",
|
||||
"cloudflare-ai-gateway:generate": "bun ./packages/core/script/generate-cloudflare-ai-gateway.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",
|
||||
"llmgateway-providers:sync": "bun ./packages/core/script/sync-models.ts llmgateway-providers",
|
||||
"requesty:sync": "bun ./packages/core/script/sync-models.ts requesty",
|
||||
"merge-gateway:sync": "bun ./packages/core/script/sync-models.ts merge-gateway",
|
||||
"nano-gpt:sync": "bun ./packages/core/script/sync-models.ts nano-gpt",
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { syncProviderByID } from "../src/sync/index.js";
|
||||
|
||||
const check = process.argv.includes("--check");
|
||||
const result = await syncProviderByID("cloudflare-ai-gateway", { dryRun: check });
|
||||
|
||||
if (check) {
|
||||
if (result.notices.length > 0) {
|
||||
console.error(`--check: ${result.notices.join("\n")}`);
|
||||
process.exit(1);
|
||||
}
|
||||
if (result.files.length > 0) {
|
||||
console.error(`--check: ${result.files.length} file(s) out of date`);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log("--check: up to date");
|
||||
}
|
||||
@@ -16,7 +16,6 @@ export const ModelFamilyValues = [
|
||||
"gpt-sol",
|
||||
"gpt-terra",
|
||||
"gpt-luna",
|
||||
"gpt-astra",
|
||||
"gpt-oss",
|
||||
"gpt-image",
|
||||
|
||||
@@ -53,7 +52,6 @@ export const ModelFamilyValues = [
|
||||
|
||||
// Meta Muse
|
||||
"muse",
|
||||
"muse-free",
|
||||
|
||||
// Alibaba Qwen
|
||||
"qwen",
|
||||
@@ -368,9 +366,6 @@ export const ModelFamilyValues = [
|
||||
// Conductor
|
||||
"fugu",
|
||||
|
||||
// Sakana Namazu
|
||||
"sakana-namazu",
|
||||
|
||||
// V0
|
||||
"v0",
|
||||
|
||||
|
||||
@@ -5,13 +5,9 @@ export const MAX_CREATED_MODELS = 10;
|
||||
export const MAX_DELETED_MODELS = 10;
|
||||
export const MAX_MODEL_CHURN = 15;
|
||||
const REVIEWED_REASONING_PROVIDERS = new Set([
|
||||
"crossmodel",
|
||||
"edenai",
|
||||
"empiriolabs",
|
||||
"hyper",
|
||||
"kilo",
|
||||
"llmgateway",
|
||||
"llmgateway-providers",
|
||||
"merge-gateway",
|
||||
"nano-gpt",
|
||||
"openrouter",
|
||||
@@ -55,14 +51,6 @@ export async function classifyAutoMerge(
|
||||
if (created + deleted > MAX_MODEL_CHURN) {
|
||||
reasons.push(`${created + deleted} models created or deleted (limit ${MAX_MODEL_CHURN})`);
|
||||
}
|
||||
if (
|
||||
models.some((change) =>
|
||||
change.status === "deleted"
|
||||
&& change.path.startsWith("providers/cloudflare-ai-gateway/models/")
|
||||
)
|
||||
) {
|
||||
reasons.push("Cloudflare AI Gateway model deletions require manual review");
|
||||
}
|
||||
|
||||
const reasoningMetadata = async (path: string, loader: typeof load) => {
|
||||
const model = Bun.TOML.parse(await loader(path)) as Record<string, unknown>;
|
||||
|
||||
+28
-126
@@ -5,12 +5,10 @@ import { z } from "zod";
|
||||
|
||||
import { AuthoredModel, AuthoredModelShape, ModelMetadata } from "../schema.js";
|
||||
import { openMissingModelIssues } from "./missing-issues.js";
|
||||
import { MissingReasoningOptionsError } from "./missing-reasoning-options.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";
|
||||
import { cloudflareAiGateway } from "./providers/cloudflare-ai-gateway.js";
|
||||
import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
|
||||
import { cortecs } from "./providers/cortecs.js";
|
||||
import { crossmodel } from "./providers/crossmodel.js";
|
||||
@@ -18,15 +16,13 @@ import { deepinfra } from "./providers/deepinfra.js";
|
||||
import { digitalocean } from "./providers/digitalocean.js";
|
||||
import { edenai } from "./providers/edenai.js";
|
||||
import { empiriolabs } from "./providers/empiriolabs.js";
|
||||
import { githubCopilot } from "./providers/github-copilot.js";
|
||||
import { google } from "./providers/google.js";
|
||||
import { hyper } from "./providers/hyper.js";
|
||||
import { huggingface } from "./providers/huggingface.js";
|
||||
import { inceptron } from "./providers/inceptron.js";
|
||||
import { kilo } from "./providers/kilo.js";
|
||||
import { llmgateway, llmgatewayProviders } from "./providers/llmgateway.js";
|
||||
import { llmgateway } from "./providers/llmgateway.js";
|
||||
import { mergeGateway } from "./providers/merge-gateway.js";
|
||||
import { meta } from "./providers/meta.js";
|
||||
import { nanoGpt } from "./providers/nano-gpt.js";
|
||||
import { openai } from "./providers/openai.js";
|
||||
import { ofox } from "./providers/ofox.js";
|
||||
@@ -86,8 +82,6 @@ export interface SyncProvider<SourceModel> {
|
||||
preserveSymlinks?: boolean;
|
||||
preserveBaseModels?: boolean;
|
||||
preserveDescriptions?: boolean;
|
||||
/** Replace existing leading comments with translateModel.header. */
|
||||
authoritativeHeaders?: boolean;
|
||||
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
|
||||
missingNotice?(paths: string[]): string[];
|
||||
/**
|
||||
@@ -104,17 +98,7 @@ export interface SyncProvider<SourceModel> {
|
||||
existing(id: string): ExistingModel | undefined;
|
||||
authored(id: string): ExistingModel | undefined;
|
||||
},
|
||||
): {
|
||||
id: string;
|
||||
model: SyncedModel;
|
||||
metadata?: { id: string; model: SyncedMetadata };
|
||||
/**
|
||||
* Leading comment block for the written file (e.g. the wire-path header
|
||||
* every toggle reasoning control requires). Existing headers win unless
|
||||
* authoritativeHeaders is enabled.
|
||||
*/
|
||||
header?: string;
|
||||
} | undefined;
|
||||
): { id: string; model: SyncedModel; metadata?: { id: string; model: SyncedMetadata } } | undefined;
|
||||
}
|
||||
|
||||
export interface SyncResult {
|
||||
@@ -134,7 +118,6 @@ export const providers: {
|
||||
anthropic: SyncProvider<any>;
|
||||
baseten: SyncProvider<any>;
|
||||
chutes: SyncProvider<any>;
|
||||
"cloudflare-ai-gateway": SyncProvider<any>;
|
||||
"cloudflare-workers-ai": SyncProvider<any>;
|
||||
cortecs: SyncProvider<any>;
|
||||
crossmodel: SyncProvider<any>;
|
||||
@@ -142,16 +125,13 @@ export const providers: {
|
||||
digitalocean: SyncProvider<any>;
|
||||
edenai: SyncProvider<any>;
|
||||
empiriolabs: SyncProvider<any>;
|
||||
"github-copilot": SyncProvider<any>;
|
||||
google: SyncProvider<any>;
|
||||
hyper: SyncProvider<any>;
|
||||
huggingface: SyncProvider<any>;
|
||||
inceptron: SyncProvider<any>;
|
||||
kilo: SyncProvider<any>;
|
||||
llmgateway: SyncProvider<any>;
|
||||
"llmgateway-providers": SyncProvider<any>;
|
||||
"merge-gateway": SyncProvider<any>;
|
||||
meta: SyncProvider<any>;
|
||||
"nano-gpt": SyncProvider<any>;
|
||||
ofox: SyncProvider<any>;
|
||||
openai: SyncProvider<any>;
|
||||
@@ -169,7 +149,6 @@ export const providers: {
|
||||
anthropic,
|
||||
baseten,
|
||||
chutes,
|
||||
"cloudflare-ai-gateway": cloudflareAiGateway,
|
||||
"cloudflare-workers-ai": cloudflareWorkersAi,
|
||||
cortecs,
|
||||
crossmodel,
|
||||
@@ -177,16 +156,13 @@ export const providers: {
|
||||
digitalocean,
|
||||
edenai,
|
||||
empiriolabs,
|
||||
"github-copilot": githubCopilot,
|
||||
google,
|
||||
hyper,
|
||||
huggingface,
|
||||
inceptron,
|
||||
kilo,
|
||||
llmgateway,
|
||||
"llmgateway-providers": llmgatewayProviders,
|
||||
"merge-gateway": mergeGateway,
|
||||
meta,
|
||||
"nano-gpt": nanoGpt,
|
||||
ofox,
|
||||
openai,
|
||||
@@ -210,7 +186,6 @@ export const groups = {
|
||||
"inceptron",
|
||||
"kilo",
|
||||
"llmgateway",
|
||||
"llmgateway-providers",
|
||||
"merge-gateway",
|
||||
"nano-gpt",
|
||||
"ofox",
|
||||
@@ -218,8 +193,8 @@ export const groups = {
|
||||
"openrouter",
|
||||
"vercel",
|
||||
],
|
||||
cloudflare: ["cloudflare-ai-gateway", "cloudflare-workers-ai"],
|
||||
direct: ["ambient", "anthropic", "baseten", "chutes", "cortecs", "deepinfra", "digitalocean", "github-copilot", "google", "hyper", "meta", "openai", "ovhcloud", "pioneer", "tinfoil", "venice", "wandb", "xai"],
|
||||
cloudflare: ["cloudflare-workers-ai"],
|
||||
direct: ["ambient", "anthropic", "baseten", "chutes", "cortecs", "deepinfra", "digitalocean", "google", "hyper", "openai", "ovhcloud", "pioneer", "tinfoil", "venice", "wandb", "xai"],
|
||||
} as const;
|
||||
|
||||
type ProviderID = keyof typeof providers;
|
||||
@@ -244,33 +219,19 @@ export async function syncProvider<SourceModel>(
|
||||
const { models: existing, brokenSymlinks } = existingState;
|
||||
let { modelMetadata } = existingState;
|
||||
const sourceModels = provider.parseModels(await provider.fetchModels());
|
||||
const desired = new Map<string, {
|
||||
model: z.infer<typeof SyncedAuthoredModel>;
|
||||
content: string;
|
||||
header: string;
|
||||
}>();
|
||||
const caseNormalizedDesiredPaths = new Map<string, string>();
|
||||
const desired = new Map<string, { model: z.infer<typeof SyncedAuthoredModel>; content: string }>();
|
||||
const desiredMetadata = new Map<string, { model: z.infer<typeof ModelMetadata>; content: string }>();
|
||||
const skippedRemote: string[] = [];
|
||||
const missingReasoning = new Map<string, string>();
|
||||
|
||||
for (const sourceModel of sourceModels) {
|
||||
let translated: ReturnType<typeof provider.translateModel>;
|
||||
try {
|
||||
translated = provider.translateModel(sourceModel, {
|
||||
existing(id) {
|
||||
return existing.get(`${id}.toml`)?.toml;
|
||||
},
|
||||
authored(id) {
|
||||
return existing.get(`${id}.toml`)?.authored;
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
if (!(error instanceof MissingReasoningOptionsError)) throw error;
|
||||
missingReasoning.set(error.modelId, error.message);
|
||||
console.warn(error.message);
|
||||
continue;
|
||||
}
|
||||
const translated = provider.translateModel(sourceModel, {
|
||||
existing(id) {
|
||||
return existing.get(`${id}.toml`)?.toml;
|
||||
},
|
||||
authored(id) {
|
||||
return existing.get(`${id}.toml`)?.authored;
|
||||
},
|
||||
});
|
||||
if (translated === undefined) {
|
||||
const skippedID = provider.sourceID?.(sourceModel);
|
||||
if (skippedID !== undefined) skippedRemote.push(skippedID);
|
||||
@@ -283,15 +244,9 @@ export async function syncProvider<SourceModel>(
|
||||
continue;
|
||||
}
|
||||
|
||||
const collidingPath = caseNormalizedDesiredPaths.get(relativePath.toLowerCase());
|
||||
if (collidingPath !== undefined) {
|
||||
throw new Error(
|
||||
collidingPath === relativePath
|
||||
? `Duplicate synced model path: ${provider.id}/${relativePath}`
|
||||
: `Synced model paths differ only in case: ${provider.id}/${collidingPath} and ${provider.id}/${relativePath}`,
|
||||
);
|
||||
if (desired.has(relativePath)) {
|
||||
throw new Error(`Duplicate synced model path: ${provider.id}/${relativePath}`);
|
||||
}
|
||||
caseNormalizedDesiredPaths.set(relativePath.toLowerCase(), relativePath);
|
||||
|
||||
if (translated.metadata !== undefined) {
|
||||
const parsedMetadata = ModelMetadata.safeParse({
|
||||
@@ -315,16 +270,13 @@ export async function syncProvider<SourceModel>(
|
||||
: preserveBaseModel(translated.model, existing.get(relativePath)?.authored);
|
||||
const translatedBase = "base_model" in translatedModel ? translatedModel.base_model : undefined;
|
||||
let resolvedReasoning: boolean | undefined;
|
||||
let baseReasoningOptions: unknown;
|
||||
if (translatedBase !== undefined) {
|
||||
if (translated.metadata?.id === translatedBase) {
|
||||
resolvedReasoning = translated.metadata.model.reasoning;
|
||||
baseReasoningOptions = translated.metadata.model.reasoning_options;
|
||||
} else {
|
||||
modelMetadata ??= await readModelMetadata(provider.modelsDir);
|
||||
const canonicalReasoning = modelMetadata[translatedBase]?.reasoning;
|
||||
resolvedReasoning = typeof canonicalReasoning === "boolean" ? canonicalReasoning : undefined;
|
||||
baseReasoningOptions = modelMetadata[translatedBase]?.reasoning_options;
|
||||
}
|
||||
} else {
|
||||
resolvedReasoning = existing.get(relativePath)?.toml.reasoning;
|
||||
@@ -333,7 +285,6 @@ export async function syncProvider<SourceModel>(
|
||||
translatedModel,
|
||||
existing.get(relativePath)?.authored,
|
||||
resolvedReasoning,
|
||||
baseReasoningOptions,
|
||||
);
|
||||
const withDescription = provider.preserveDescriptions === false
|
||||
? withReasoningOptions
|
||||
@@ -347,16 +298,9 @@ export async function syncProvider<SourceModel>(
|
||||
throw parsed.error;
|
||||
}
|
||||
|
||||
const translatedHeader = translated.header === undefined
|
||||
? undefined
|
||||
: leadingComments(translated.header);
|
||||
const header = provider.authoritativeHeaders
|
||||
? translatedHeader ?? ""
|
||||
: (existing.get(relativePath)?.header || translatedHeader) ?? "";
|
||||
desired.set(relativePath, {
|
||||
model: parsed.data,
|
||||
content: header + formatToml(parsed.data),
|
||||
header,
|
||||
content: (existing.get(relativePath)?.header ?? "") + formatToml(parsed.data),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -365,7 +309,7 @@ export async function syncProvider<SourceModel>(
|
||||
|
||||
const metadataDir = modelMetadataDir(provider.modelsDir);
|
||||
for (const [relativePath, file] of desiredMetadata) {
|
||||
const filePath = await safeWritePath(metadataDir, relativePath);
|
||||
const filePath = path.join(metadataDir, relativePath);
|
||||
const currentFile = Bun.file(filePath);
|
||||
const currentText = await currentFile.exists() ? await currentFile.text() : undefined;
|
||||
const current = currentText !== undefined
|
||||
@@ -396,7 +340,7 @@ export async function syncProvider<SourceModel>(
|
||||
console.log(`Skipping metadata removal in new-only mode: ${relativePath}`);
|
||||
continue;
|
||||
}
|
||||
const filePath = await safeWritePath(metadataDir, relativePath);
|
||||
const filePath = path.join(metadataDir, relativePath);
|
||||
files.push({ status: "deleted", path: filePath });
|
||||
if (options.dryRun) {
|
||||
console.log(`Would remove metadata ${relativePath}`);
|
||||
@@ -407,7 +351,7 @@ export async function syncProvider<SourceModel>(
|
||||
}
|
||||
|
||||
for (const [relativePath, file] of desired) {
|
||||
const filePath = await safeWritePath(provider.modelsDir, relativePath, true);
|
||||
const filePath = path.join(provider.modelsDir, relativePath);
|
||||
const current = existing.get(relativePath);
|
||||
|
||||
if (current === undefined) {
|
||||
@@ -427,12 +371,7 @@ export async function syncProvider<SourceModel>(
|
||||
continue;
|
||||
}
|
||||
|
||||
const headerChanged = provider.authoritativeHeaders && current.header !== file.header;
|
||||
if (
|
||||
headerChanged
|
||||
|| !(provider.sameModel?.(current.authored, file.model)
|
||||
?? sameModel(relativePath, current.authored, file.model))
|
||||
) {
|
||||
if (!(provider.sameModel?.(current.authored, file.model) ?? sameModel(relativePath, current.authored, file.model))) {
|
||||
if (options.newOnly) {
|
||||
unchanged++;
|
||||
continue;
|
||||
@@ -453,10 +392,6 @@ export async function syncProvider<SourceModel>(
|
||||
const missingLocal: string[] = [];
|
||||
for (const relativePath of new Set([...existing.keys(), ...brokenSymlinks])) {
|
||||
if (desired.has(relativePath)) continue;
|
||||
if (missingReasoning.has(relativePath.slice(0, -5))) {
|
||||
unchanged++;
|
||||
continue;
|
||||
}
|
||||
if (provider.deleteMissing === false) {
|
||||
missingLocal.push(relativePath);
|
||||
console.log(`Retaining model missing from source: ${relativePath}`);
|
||||
@@ -469,7 +404,7 @@ export async function syncProvider<SourceModel>(
|
||||
continue;
|
||||
}
|
||||
|
||||
const filePath = await safeWritePath(provider.modelsDir, relativePath, true);
|
||||
const filePath = path.join(provider.modelsDir, relativePath);
|
||||
files.push({ status: "deleted", path: filePath });
|
||||
if (options.dryRun) {
|
||||
console.log(`Would remove ${relativePath}`);
|
||||
@@ -479,26 +414,22 @@ export async function syncProvider<SourceModel>(
|
||||
}
|
||||
|
||||
const notices = [
|
||||
...missingReasoning.values(),
|
||||
...provider.skippedNotice?.(skippedRemote) ?? [],
|
||||
...provider.missingNotice?.(missingLocal) ?? [],
|
||||
];
|
||||
|
||||
const issueModels = [
|
||||
...(provider.skipCreates === true ? skippedRemote : []),
|
||||
...missingReasoning.keys(),
|
||||
];
|
||||
if (
|
||||
provider.trackMissingModels !== false
|
||||
&& issueModels.length > 0
|
||||
provider.skipCreates === true
|
||||
&& provider.trackMissingModels !== false
|
||||
&& skippedRemote.length > 0
|
||||
&& options.openIssues === true
|
||||
) {
|
||||
try {
|
||||
notices.push(
|
||||
...await openMissingModelIssues(
|
||||
{ id: provider.id, name: provider.name, modelsDir: provider.modelsDir },
|
||||
issueModels,
|
||||
{ dryRun: options.dryRun, reasons: Object.fromEntries(missingReasoning) },
|
||||
skippedRemote,
|
||||
{ dryRun: options.dryRun },
|
||||
),
|
||||
);
|
||||
} catch (error) {
|
||||
@@ -545,7 +476,6 @@ export function preserveReasoningOptions(
|
||||
model: SyncedModel,
|
||||
existing: ExistingModel | undefined,
|
||||
resolvedReasoning: boolean | undefined = existing?.reasoning,
|
||||
baseReasoningOptions: unknown = undefined,
|
||||
): SyncedModel {
|
||||
if ((model.reasoning ?? resolvedReasoning) === false) {
|
||||
const { reasoning_options: _reasoningOptions, ...withoutReasoningOptions } = model;
|
||||
@@ -553,10 +483,7 @@ export function preserveReasoningOptions(
|
||||
}
|
||||
if (model.reasoning_options !== undefined) return model;
|
||||
if (existing?.reasoning_options === undefined) {
|
||||
// When the base model already declares reasoning_options, leave the field
|
||||
// unset so the factored file inherits them — stamping [] here would
|
||||
// shadow the base's real controls with "no controls".
|
||||
return (model.reasoning ?? resolvedReasoning) === true && baseReasoningOptions === undefined
|
||||
return (model.reasoning ?? resolvedReasoning) === true
|
||||
? { ...model, reasoning_options: [] }
|
||||
: model;
|
||||
}
|
||||
@@ -644,31 +571,6 @@ async function isSymlink(filePath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
async function safeWritePath(root: string, relativePath: string, allowLeafSymlink = false) {
|
||||
const resolvedRoot = path.resolve(root);
|
||||
const target = path.resolve(resolvedRoot, relativePath);
|
||||
const relative = path.relative(resolvedRoot, target);
|
||||
if (relative === "" || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) {
|
||||
throw new Error(`Refusing to sync path outside ${root}: ${relativePath}`);
|
||||
}
|
||||
if (await isSymlink(resolvedRoot)) {
|
||||
throw new Error(`Refusing to sync through symlink: ${resolvedRoot}`);
|
||||
}
|
||||
|
||||
let current = resolvedRoot;
|
||||
for (const segment of path.relative(resolvedRoot, path.dirname(target)).split(path.sep)) {
|
||||
if (segment === "") continue;
|
||||
current = path.join(current, segment);
|
||||
if (await isSymlink(current)) {
|
||||
throw new Error(`Refusing to sync through symlink: ${current}`);
|
||||
}
|
||||
}
|
||||
if (!allowLeafSymlink && await isSymlink(target)) {
|
||||
throw new Error(`Refusing to sync through symlink: ${target}`);
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
async function readModelMetadata(modelsDir: string) {
|
||||
const metadataDir = modelMetadataDir(modelsDir);
|
||||
const result: Record<string, Record<string, unknown>> = {};
|
||||
@@ -896,7 +798,7 @@ async function writeReport(target: string, results: SyncResult[]) {
|
||||
}
|
||||
}
|
||||
|
||||
lines.push("", "This PR was created automatically by the model sync workflow.");
|
||||
lines.push("", "This PR was created automatically by the daily model sync workflow.");
|
||||
await Bun.write(".sync/model-sync-report.md", `${lines.join("\n")}\n`);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,18 +6,15 @@ export interface MissingModelIssueTarget {
|
||||
|
||||
export interface OpenMissingModelIssuesOptions {
|
||||
dryRun?: boolean;
|
||||
reasons?: Record<string, string>;
|
||||
}
|
||||
|
||||
function issueTitle(providerId: string, modelId: string) {
|
||||
return `[missing-model] ${providerId}: ${modelId}`;
|
||||
}
|
||||
|
||||
function issueBody(provider: MissingModelIssueTarget, modelId: string, reason?: string) {
|
||||
function issueBody(provider: MissingModelIssueTarget, modelId: string) {
|
||||
return [
|
||||
reason === undefined
|
||||
? `The **${provider.name}** catalog sync found remote model \`${modelId}\` that is not in the local catalog.`
|
||||
: `The **${provider.name}** catalog sync is missing reasoning options for remote model \`${modelId}\`. Any existing local entry was left unchanged.`,
|
||||
`The **${provider.name}** catalog sync found remote model \`${modelId}\` that is not in the local catalog.`,
|
||||
"",
|
||||
`| Field | Value |`,
|
||||
`| --- | --- |`,
|
||||
@@ -25,13 +22,8 @@ function issueBody(provider: MissingModelIssueTarget, modelId: string, reason?:
|
||||
`| Model ID | \`${modelId}\` |`,
|
||||
`| Expected path | \`${provider.modelsDir}/${modelId}.toml\` |`,
|
||||
"",
|
||||
reason === undefined
|
||||
? "This provider uses `skipCreates` because the remote source is not enough to auto-author a full TOML."
|
||||
: `Sync diagnostic: ${reason}`,
|
||||
"This provider uses `skipCreates` because the remote source is not enough to auto-author a full TOML.",
|
||||
"Add the model manually (prefer `base_model` when matching `models/` metadata exists).",
|
||||
...(reason === undefined ? [] : [
|
||||
`Research the provider's reasoning controls; do not use an empty placeholder. Update \`providers/${provider.id}/curation.toml\` if present, including source URLs and wire paths in its \`note\` array, so the next sync retains the fix.`,
|
||||
]),
|
||||
"",
|
||||
].join("\n");
|
||||
}
|
||||
@@ -88,7 +80,7 @@ export async function openMissingModelIssues(
|
||||
}
|
||||
|
||||
try {
|
||||
const number = await createIssue(title, issueBody(provider, modelId, options.reasons?.[modelId]), labels);
|
||||
const number = await createIssue(title, issueBody(provider, modelId), labels);
|
||||
existingByTitle.set(title, number);
|
||||
await dispatchIssueFixer(provider.id, number);
|
||||
const notice = `Opened GitHub issue #${number} and dispatched the issue fixer for missing model \`${modelId}\``;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
/** A reasoning model needs researched provider-specific controls. */
|
||||
export class MissingReasoningOptionsError extends Error {
|
||||
constructor(readonly modelId: string, reason: string) {
|
||||
super(`${modelId}: ${reason}`);
|
||||
this.name = "MissingReasoningOptionsError";
|
||||
}
|
||||
}
|
||||
@@ -210,15 +210,15 @@ export function parseAnthropicPricing(markdown: string, now = new Date()) {
|
||||
|
||||
const table = section.split("\n").filter((line) => line.trimStart().startsWith("|"));
|
||||
const rows = table.map((line) => line.split("|").slice(1, -1).map((cell) => cell.trim()));
|
||||
const header = rows[0]?.map((cell) => markdownText(cell).toLowerCase().replaceAll("&", "and"));
|
||||
const header = rows[0]?.map(markdownText);
|
||||
if (header === undefined) throw new Error("Anthropic pricing page is missing the model pricing table");
|
||||
|
||||
const indexes = {
|
||||
model: header.indexOf("model"),
|
||||
input: header.indexOf("base input tokens"),
|
||||
cacheWrite: header.indexOf("5m cache writes"),
|
||||
cacheRead: header.indexOf("cache hits and refreshes"),
|
||||
output: header.indexOf("output tokens"),
|
||||
model: header.indexOf("Model"),
|
||||
input: header.indexOf("Base Input Tokens"),
|
||||
cacheWrite: header.indexOf("5m Cache Writes"),
|
||||
cacheRead: header.indexOf("Cache Hits & Refreshes"),
|
||||
output: header.indexOf("Output Tokens"),
|
||||
};
|
||||
if (Object.values(indexes).some((index) => index < 0)) {
|
||||
throw new Error("Anthropic model pricing table has unexpected columns");
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { describeModel } from "../../describe.js";
|
||||
import type {
|
||||
ExistingModel,
|
||||
SyncProvider,
|
||||
SyncedBaseModel,
|
||||
SyncedFullModel,
|
||||
SyncedModel,
|
||||
} from "../index.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://inference.baseten.co/v1/models";
|
||||
@@ -67,7 +61,6 @@ export const baseten = {
|
||||
},
|
||||
translateModel(model, context) {
|
||||
const existing = context.existing(model.id);
|
||||
const authored = context.authored(model.id);
|
||||
const baseModel = existing === undefined
|
||||
? resolveBasetenBaseModel(model.id)
|
||||
: existing.base_model;
|
||||
@@ -79,7 +72,7 @@ export const baseten = {
|
||||
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildBasetenModel(model, existing, baseModel, authored),
|
||||
model: buildBasetenModel(model, existing, baseModel),
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<BasetenModel>;
|
||||
@@ -109,7 +102,6 @@ export function buildBasetenModel(
|
||||
model: BasetenModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel = existing === undefined ? resolveBasetenBaseModel(model.id) : existing.base_model,
|
||||
authored?: ExistingModel,
|
||||
): SyncedModel {
|
||||
const features = new Set(model.supported_features);
|
||||
const samplingParameters = new Set(model.supported_sampling_parameters);
|
||||
@@ -130,9 +122,7 @@ export function buildBasetenModel(
|
||||
const limit = {
|
||||
context: model.context_length,
|
||||
input: existing?.limit?.input,
|
||||
// Explicit provider limits are serving overrides and sync pins. Baseten's
|
||||
// catalog has returned a model's context window as its completion limit.
|
||||
output: authored?.limit?.output ?? model.max_completion_tokens,
|
||||
output: model.max_completion_tokens,
|
||||
};
|
||||
const values: Partial<SyncedFullModel> = {
|
||||
name: model.name ?? existing?.name,
|
||||
@@ -169,21 +159,7 @@ export function buildBasetenModel(
|
||||
if (limit.context === undefined || limit.output === undefined) {
|
||||
throw new Error(`Baseten model ${model.id} has incomplete token limits required for sync`);
|
||||
}
|
||||
const factored = factorBaseModel(
|
||||
baseModel,
|
||||
values,
|
||||
limit,
|
||||
existing?.base_model_omit,
|
||||
) as SyncedBaseModel;
|
||||
if (authored?.limit?.output === undefined) return factored;
|
||||
|
||||
return {
|
||||
...factored,
|
||||
limit: {
|
||||
...factored.limit,
|
||||
output: authored.limit.output,
|
||||
},
|
||||
};
|
||||
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
const required = z.object({
|
||||
|
||||
@@ -1,506 +0,0 @@
|
||||
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { z } from "zod";
|
||||
|
||||
import { ReasoningOption } from "../../schema.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedBaseModel } from "../index.js";
|
||||
import { MissingReasoningOptionsError } from "../missing-reasoning-options.js";
|
||||
|
||||
const API_BASE = "https://api.cloudflare.com/client/v4/accounts";
|
||||
const PROVIDER_DIR = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"cloudflare-ai-gateway",
|
||||
);
|
||||
const MODELS_ROOT = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
|
||||
const CURATION_PATH = path.join(PROVIDER_DIR, "curation.toml");
|
||||
const TEXT_GENERATION = "Text Generation";
|
||||
const REQUEST_TIMEOUT_MS = 30_000;
|
||||
const MAX_CATALOG_PAGES = 1_000;
|
||||
const MAX_BACKOFF_DELAY_MS = 8_000;
|
||||
const MAX_RETRY_DELAY_MS = 60_000;
|
||||
|
||||
const NATIVE_NPM: Record<string, string> = {
|
||||
anthropic: "@ai-sdk/anthropic",
|
||||
openai: "@ai-sdk/openai",
|
||||
};
|
||||
|
||||
const CatalogEntry = z.object({
|
||||
model_id: z.string().refine(isSafeModelID, "model_id must be a safe relative provider/model path"),
|
||||
task: z.string(),
|
||||
context_length: z.number().int().positive().nullish(),
|
||||
pricing: z.record(z.number().nonnegative()).nullish(),
|
||||
}).passthrough();
|
||||
const CatalogModel = CatalogEntry.extend({
|
||||
task: z.literal(TEXT_GENERATION),
|
||||
context_length: z.number().int().positive().nullish(),
|
||||
pricing: z.record(z.number().nonnegative()),
|
||||
});
|
||||
|
||||
const CloudflareResponse = z.object({
|
||||
success: z.literal(true),
|
||||
result: z.array(CatalogEntry),
|
||||
result_info: z.object({
|
||||
page: z.number().int().positive(),
|
||||
per_page: z.number().int().positive(),
|
||||
total_count: z.number().int().nonnegative(),
|
||||
total_pages: z.number().int().positive().optional(),
|
||||
count: z.number().int().nonnegative().optional(),
|
||||
}).passthrough(),
|
||||
}).passthrough();
|
||||
|
||||
const SourceModel = z.object({
|
||||
catalog: CatalogModel,
|
||||
schemaInput: z.unknown().optional(),
|
||||
});
|
||||
|
||||
const CuratedModel = z.object({
|
||||
base_model: z.string().refine(isSafeModelID, "base_model must be a safe relative provider/model path").optional(),
|
||||
structured_output: z.boolean().optional(),
|
||||
reasoning_options: z.array(ReasoningOption).optional(),
|
||||
limit: z.object({
|
||||
context: z.number().optional(),
|
||||
input: z.number().optional(),
|
||||
output: z.number().optional(),
|
||||
}).strict().optional(),
|
||||
interleaved: z.union([
|
||||
z.literal(true),
|
||||
z.object({ field: z.enum(["reasoning_content", "reasoning_details"]) }).strict(),
|
||||
]).optional(),
|
||||
note: z.array(z.string().refine((value) => !/[\r\n]/.test(value))).optional(),
|
||||
}).strict();
|
||||
|
||||
const Curation = z.object({
|
||||
skip: z.array(z.string()).default([]),
|
||||
models: z.record(CuratedModel).default({}),
|
||||
}).strict();
|
||||
|
||||
type CatalogModel = z.infer<typeof CatalogModel>;
|
||||
type CatalogEntry = z.infer<typeof CatalogEntry>;
|
||||
type SourceModel = z.infer<typeof SourceModel>;
|
||||
type CuratedModel = z.infer<typeof CuratedModel>;
|
||||
|
||||
const curation = Curation.parse(Bun.TOML.parse(readFileSync(CURATION_PATH, "utf8")));
|
||||
const skippedModels = new Set(curation.skip);
|
||||
|
||||
export const cloudflareAiGateway = {
|
||||
id: "cloudflare-ai-gateway",
|
||||
name: "Cloudflare AI Gateway",
|
||||
modelsDir: "providers/cloudflare-ai-gateway/models",
|
||||
preserveDescriptions: false,
|
||||
authoritativeHeaders: true,
|
||||
async fetchModels() {
|
||||
const catalog = CatalogEntry.array().parse(await loadCatalog());
|
||||
const catalogIDs = new Set(catalog.map((model) => model.model_id));
|
||||
if (catalogIDs.size !== catalog.length) {
|
||||
throw new Error("Cloudflare AI Gateway catalog returned duplicate model IDs");
|
||||
}
|
||||
const textModels = catalog.filter((model) => model.task === TEXT_GENERATION);
|
||||
if (textModels.length === 0) {
|
||||
throw new Error("Cloudflare AI Gateway catalog returned no Text Generation models");
|
||||
}
|
||||
|
||||
const emittedModels = textModels.filter(
|
||||
(model) => !model.model_id.startsWith("@cf/") && !skippedModels.has(model.model_id),
|
||||
).map((model) => CatalogModel.parse(model));
|
||||
if (emittedModels.length === 0) {
|
||||
throw new Error("Cloudflare AI Gateway catalog returned no eligible proxied models");
|
||||
}
|
||||
const sources = await mapLimit(emittedModels, 6, async (model) => ({
|
||||
catalog: model,
|
||||
schemaInput: await loadCatalogSchemaInput(model.model_id),
|
||||
}));
|
||||
|
||||
const liveIDs = new Set(textModels.map((model) => model.model_id));
|
||||
for (const id of Object.keys(curation.models)) {
|
||||
if (!liveIDs.has(id)) console.warn(`warning: curation id not in live feed: ${id}`);
|
||||
}
|
||||
|
||||
return sources;
|
||||
},
|
||||
parseModels(raw) {
|
||||
return SourceModel.array().parse(raw);
|
||||
},
|
||||
translateModel(source, context) {
|
||||
const id = source.catalog.model_id;
|
||||
const curated = curation.models[id] ?? {};
|
||||
return {
|
||||
id,
|
||||
model: buildCloudflareAiGatewayModel(
|
||||
source.catalog,
|
||||
source.schemaInput,
|
||||
curated,
|
||||
context.authored(id),
|
||||
),
|
||||
header: noteHeader(curated.note),
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<SourceModel>;
|
||||
|
||||
export function buildCloudflareAiGatewayModel(
|
||||
catalog: CatalogModel,
|
||||
schemaInput: unknown,
|
||||
curated: CuratedModel = {},
|
||||
existing?: ExistingModel,
|
||||
): SyncedBaseModel {
|
||||
const id = catalog.model_id;
|
||||
// Pricing failures must not be hidden by missing reasoning controls.
|
||||
const cost = proxiedCost(catalog.pricing, id);
|
||||
const baseModel = curated.base_model ?? resolveBaseModel(id);
|
||||
if (baseModel === undefined) {
|
||||
throw new Error(`${id}: no lab file and no curated base_model; add it to skip or map it`);
|
||||
}
|
||||
|
||||
const model: SyncedBaseModel = { base_model: baseModel };
|
||||
if (curated.structured_output !== undefined) {
|
||||
model.structured_output = curated.structured_output;
|
||||
}
|
||||
if (curated.interleaved !== undefined) model.interleaved = curated.interleaved;
|
||||
|
||||
if (baseReasoning(baseModel)) {
|
||||
const derived = deriveReasoningOptions(schemaInput);
|
||||
const reasoningOptions = curated.reasoning_options ?? (derived.length > 0 ? derived : undefined);
|
||||
if (reasoningOptions === undefined) {
|
||||
throw new MissingReasoningOptionsError(
|
||||
id,
|
||||
`base ${baseModel} reasons but the catalog schema and curation provide no reasoning_options`,
|
||||
);
|
||||
}
|
||||
model.reasoning_options = reasoningOptions;
|
||||
}
|
||||
|
||||
model.cost = cost;
|
||||
|
||||
const limit = {
|
||||
...(catalog.context_length == null && existing?.limit?.context === undefined
|
||||
? {}
|
||||
: { context: catalog.context_length ?? existing?.limit?.context }),
|
||||
...curated.limit,
|
||||
};
|
||||
if (Object.keys(limit).length > 0) model.limit = limit;
|
||||
|
||||
const npm = NATIVE_NPM[id.split("/")[0]!];
|
||||
if (npm !== undefined) model.provider = { npm };
|
||||
return model;
|
||||
}
|
||||
|
||||
export function deriveReasoningOptions(
|
||||
schemaInput: unknown,
|
||||
): NonNullable<SyncedBaseModel["reasoning_options"]> {
|
||||
let hasToggle = false;
|
||||
let effortValues: Array<"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "default">
|
||||
| undefined;
|
||||
|
||||
const EffortValues = z.array(z.enum([
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
]));
|
||||
|
||||
const visit = (node: unknown) => {
|
||||
if (Array.isArray(node)) {
|
||||
node.forEach(visit);
|
||||
return;
|
||||
}
|
||||
if (node === null || typeof node !== "object") return;
|
||||
|
||||
for (const [key, value] of Object.entries(node)) {
|
||||
if (key !== "properties" || value === null || typeof value !== "object") {
|
||||
visit(value);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (const [property, rawSchema] of Object.entries(value)) {
|
||||
const propertySchema = rawSchema as Record<string, unknown>;
|
||||
if (property === "enable_thinking" || property === "thinking") hasToggle = true;
|
||||
if (property === "effort" || property === "reasoning_effort") {
|
||||
const candidates = [propertySchema, ...arrayValue(propertySchema.anyOf), ...arrayValue(propertySchema.oneOf)];
|
||||
for (const candidate of candidates) {
|
||||
const parsed = EffortValues.safeParse(candidate.enum);
|
||||
if (parsed.success) effortValues = parsed.data;
|
||||
}
|
||||
}
|
||||
visit(rawSchema);
|
||||
}
|
||||
}
|
||||
};
|
||||
visit(schemaInput);
|
||||
|
||||
const options: NonNullable<SyncedBaseModel["reasoning_options"]> = [];
|
||||
if (hasToggle) options.push({ type: "toggle" });
|
||||
if (effortValues !== undefined) options.push({ type: "effort", values: effortValues });
|
||||
return options;
|
||||
}
|
||||
|
||||
function arrayValue(value: unknown): Array<Record<string, unknown>> {
|
||||
return Array.isArray(value)
|
||||
? value.filter((item): item is Record<string, unknown> => item !== null && typeof item === "object")
|
||||
: [];
|
||||
}
|
||||
|
||||
async function loadCatalog() {
|
||||
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
|
||||
if (fixtureDir !== undefined) return loadFixtureRows(fixtureDir, "catalog");
|
||||
|
||||
const { accountID, token } = credentials();
|
||||
const pages: Array<z.infer<typeof CloudflareResponse>> = [];
|
||||
for (let page = 1; page <= MAX_CATALOG_PAGES; page++) {
|
||||
const url = new URL(`${API_BASE}/${accountID}/ai/catalog/models`);
|
||||
url.searchParams.set("page", String(page));
|
||||
url.searchParams.set("per_page", "50");
|
||||
const { response, json } = await fetchJsonWithRetry(url, { headers: { Authorization: `Bearer ${token}` } });
|
||||
if (!response.ok) {
|
||||
throw new Error(`Cloudflare AI Gateway catalog request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
const body = CloudflareResponse.parse(json);
|
||||
pages.push(body);
|
||||
const expectedPages = catalogPageCount(pages[0]!);
|
||||
if (expectedPages > MAX_CATALOG_PAGES) throw new Error(`Invalid Cloudflare AI Gateway catalog page count: ${expectedPages}`);
|
||||
if (page === expectedPages) return validateCatalogPages(pages, "Cloudflare AI Gateway catalog");
|
||||
}
|
||||
throw new Error("Cloudflare AI Gateway catalog exceeded the pagination safety limit");
|
||||
}
|
||||
|
||||
async function loadCatalogSchemaInput(id: string): Promise<unknown> {
|
||||
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
|
||||
if (fixtureDir !== undefined) {
|
||||
const file = path.join(fixtureDir, "schema", `${id.replaceAll("/", "_")}.json`);
|
||||
if (!existsSync(file)) return undefined;
|
||||
return z.object({
|
||||
success: z.literal(true),
|
||||
result: z.object({ schema: z.object({ input: z.unknown().optional() }).passthrough() }).passthrough(),
|
||||
}).passthrough().parse(JSON.parse(readFileSync(file, "utf8"))).result.schema.input;
|
||||
}
|
||||
|
||||
const { accountID, token } = credentials();
|
||||
const { response, json } = await fetchJsonWithRetry(
|
||||
`${API_BASE}/${accountID}/ai/catalog/models/${id.split("/").map(encodeURIComponent).join("/")}/schema`,
|
||||
{ headers: { Authorization: `Bearer ${token}` } },
|
||||
);
|
||||
if (response.status === 404) return undefined;
|
||||
if (!response.ok) {
|
||||
throw new Error(`Cloudflare AI Gateway schema request failed for ${id}: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return z.object({
|
||||
success: z.literal(true),
|
||||
result: z.object({ schema: z.object({ input: z.unknown().optional() }).passthrough() }).passthrough(),
|
||||
}).passthrough().parse(json).result.schema.input;
|
||||
}
|
||||
|
||||
function credentials() {
|
||||
const token = process.env.CLOUDFLARE_API_TOKEN
|
||||
?? process.env.CLOUDFLARE_PRODUCTION_API_TOKEN;
|
||||
const accountID = process.env.CLOUDFLARE_ACCOUNT_ID
|
||||
?? process.env.CLOUDFLARE_PRODUCTION_ACCOUNT_ID_AI_GATEWAY_SANDBOX;
|
||||
if (!token || !accountID) {
|
||||
throw new Error(
|
||||
"Cloudflare AI Gateway sync requires Cloudflare API token and account ID credentials",
|
||||
);
|
||||
}
|
||||
return { accountID, token };
|
||||
}
|
||||
|
||||
function loadFixtureRows(directory: string, prefix: string): unknown[] {
|
||||
const pages = readdirSync(directory)
|
||||
.filter((name) => name.startsWith(prefix) && name.endsWith(".json"))
|
||||
.sort()
|
||||
.map((file) => CloudflareResponse.parse(JSON.parse(readFileSync(path.join(directory, file), "utf8"))))
|
||||
.sort((a, b) => a.result_info.page - b.result_info.page);
|
||||
return validateCatalogPages(pages, `Cloudflare AI Gateway fixtures in ${directory}`);
|
||||
}
|
||||
|
||||
function catalogPageCount(page: z.infer<typeof CloudflareResponse>) {
|
||||
const calculated = Math.max(1, Math.ceil(page.result_info.total_count / page.result_info.per_page));
|
||||
if (page.result_info.total_pages !== undefined && page.result_info.total_pages !== calculated) {
|
||||
throw new Error("Invalid Cloudflare AI Gateway catalog pagination: total_pages does not match total_count");
|
||||
}
|
||||
return page.result_info.total_pages ?? calculated;
|
||||
}
|
||||
|
||||
function validateCatalogPages(pages: Array<z.infer<typeof CloudflareResponse>>, source: string) {
|
||||
const first = pages[0];
|
||||
if (first === undefined) throw new Error(`${source} contained no pages`);
|
||||
const expectedPages = catalogPageCount(first);
|
||||
if (pages.length !== expectedPages) {
|
||||
throw new Error(`${source} contains ${pages.length}/${expectedPages} pages`);
|
||||
}
|
||||
|
||||
const models: CatalogEntry[] = [];
|
||||
const ids = new Set<string>();
|
||||
for (const [index, page] of pages.entries()) {
|
||||
if (page.result_info.page !== index + 1) {
|
||||
throw new Error(`${source} expected page ${index + 1}, got ${page.result_info.page}`);
|
||||
}
|
||||
if (
|
||||
page.result_info.total_count !== first.result_info.total_count
|
||||
|| page.result_info.per_page !== first.result_info.per_page
|
||||
|| catalogPageCount(page) !== expectedPages
|
||||
) {
|
||||
throw new Error(`${source} pagination changed while reading pages`);
|
||||
}
|
||||
if (page.result_info.count !== undefined && page.result_info.count !== page.result.length) {
|
||||
throw new Error(`${source} result count mismatch on page ${page.result_info.page}`);
|
||||
}
|
||||
if (page.result.length > page.result_info.per_page) {
|
||||
throw new Error(`${source} page ${page.result_info.page} exceeds per_page`);
|
||||
}
|
||||
for (const model of page.result) {
|
||||
if (ids.has(model.model_id)) throw new Error(`${source} returned duplicate model ID ${model.model_id}`);
|
||||
ids.add(model.model_id);
|
||||
models.push(model);
|
||||
}
|
||||
}
|
||||
if (models.length !== first.result_info.total_count) {
|
||||
throw new Error(`${source} pagination ended at ${models.length}/${first.result_info.total_count}`);
|
||||
}
|
||||
return models;
|
||||
}
|
||||
|
||||
async function fetchJsonWithRetry(
|
||||
url: string | URL,
|
||||
init: RequestInit,
|
||||
attempts = 5,
|
||||
): Promise<{ response: Response; json?: unknown }> {
|
||||
let delay = 500;
|
||||
for (let attempt = 1; attempt <= attempts; attempt++) {
|
||||
try {
|
||||
const timeout = AbortSignal.timeout(REQUEST_TIMEOUT_MS);
|
||||
const response = await fetch(url, {
|
||||
...init,
|
||||
signal: init.signal ? AbortSignal.any([init.signal, timeout]) : timeout,
|
||||
});
|
||||
if (!response.ok) {
|
||||
if ((response.status === 429 || response.status >= 500) && attempt < attempts) {
|
||||
await response.body?.cancel();
|
||||
await waitForRetry(retryDelay(response, delay), init.signal);
|
||||
delay = Math.min(delay * 2, MAX_BACKOFF_DELAY_MS);
|
||||
continue;
|
||||
}
|
||||
await response.body?.cancel();
|
||||
return { response };
|
||||
}
|
||||
try {
|
||||
return { response, json: await response.json() };
|
||||
} catch (error) {
|
||||
if (attempt === attempts) throw error;
|
||||
}
|
||||
} catch (error) {
|
||||
if (init.signal?.aborted || attempt === attempts) throw error;
|
||||
}
|
||||
await waitForRetry(delay, init.signal);
|
||||
delay = Math.min(delay * 2, MAX_BACKOFF_DELAY_MS);
|
||||
}
|
||||
throw new Error("Cloudflare AI Gateway request exhausted retries");
|
||||
}
|
||||
|
||||
function retryDelay(response: Response, fallback: number) {
|
||||
const value = response.headers.get("retry-after");
|
||||
if (value === null) return fallback;
|
||||
const seconds = Number(value);
|
||||
if (Number.isFinite(seconds) && seconds >= 0) return Math.min(seconds * 1_000, MAX_RETRY_DELAY_MS);
|
||||
const timestamp = Date.parse(value);
|
||||
return Number.isFinite(timestamp)
|
||||
? Math.min(Math.max(timestamp - Date.now(), 0), MAX_RETRY_DELAY_MS)
|
||||
: fallback;
|
||||
}
|
||||
|
||||
function waitForRetry(delay: number, signal: AbortSignal | null | undefined) {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
if (signal?.aborted) return reject(signal.reason);
|
||||
const onAbort = () => {
|
||||
clearTimeout(timer);
|
||||
reject(signal.reason);
|
||||
};
|
||||
const timer = setTimeout(() => {
|
||||
signal?.removeEventListener("abort", onAbort);
|
||||
resolve();
|
||||
}, delay);
|
||||
signal?.addEventListener("abort", onAbort, { once: true });
|
||||
});
|
||||
}
|
||||
|
||||
async function mapLimit<T, R>(items: T[], limit: number, transform: (item: T) => Promise<R>) {
|
||||
const results = new Array<R>(items.length);
|
||||
let next = 0;
|
||||
await Promise.all(Array.from({ length: Math.min(limit, items.length) }, async () => {
|
||||
while (next < items.length) {
|
||||
const index = next++;
|
||||
results[index] = await transform(items[index]!);
|
||||
}
|
||||
}));
|
||||
return results;
|
||||
}
|
||||
|
||||
const FLAT_PRICING_KEYS: Record<string, "input" | "output" | "cache_read" | "cache_write"> = {
|
||||
"Input tokens (per 1M)": "input",
|
||||
"Output tokens (per 1M)": "output",
|
||||
"Cached input tokens (per 1M)": "cache_read",
|
||||
"Cache creation tokens (per 1M)": "cache_write",
|
||||
};
|
||||
const TIERED_PRICING_KEY = /^(Input|Output|Cached input)\s*(<=?|>=?)\s*(\d+)k\s*\(per 1M\)$/;
|
||||
const TIERED_PRICING_FIELDS = {
|
||||
Input: "input",
|
||||
Output: "output",
|
||||
"Cached input": "cache_read",
|
||||
} as const;
|
||||
|
||||
function proxiedCost(pricing: Record<string, number>, id: string): NonNullable<SyncedBaseModel["cost"]> {
|
||||
const cost: NonNullable<SyncedBaseModel["cost"]> = {};
|
||||
for (const [key, value] of Object.entries(pricing)) {
|
||||
const flatField = FLAT_PRICING_KEYS[key];
|
||||
if (flatField !== undefined) {
|
||||
cost[flatField] = value;
|
||||
continue;
|
||||
}
|
||||
const tier = TIERED_PRICING_KEY.exec(key);
|
||||
if (tier !== null) {
|
||||
const field = TIERED_PRICING_FIELDS[tier[1] as keyof typeof TIERED_PRICING_FIELDS];
|
||||
if (tier[2]!.startsWith("<")) cost[field] = value;
|
||||
continue;
|
||||
}
|
||||
throw new Error(`${id}: unmapped pricing key "${key}"`);
|
||||
}
|
||||
if (cost.input === undefined || cost.output === undefined) {
|
||||
throw new Error(`${id}: catalog pricing must include input and output rates`);
|
||||
}
|
||||
return cost;
|
||||
}
|
||||
|
||||
function isSafeModelID(id: string) {
|
||||
if (path.isAbsolute(id) || id.includes("\\")) return false;
|
||||
const segments = id.split("/");
|
||||
return segments.length >= 2
|
||||
&& segments.every((segment) => /^[A-Za-z0-9@._-]+$/.test(segment) && segment !== "." && segment !== "..");
|
||||
}
|
||||
|
||||
function resolveBaseModel(id: string) {
|
||||
if (labFileExists(id)) return id;
|
||||
const dashed = id.replaceAll(".", "-");
|
||||
return labFileExists(dashed) ? dashed : undefined;
|
||||
}
|
||||
|
||||
function labFileExists(id: string) {
|
||||
return existsSync(path.join(MODELS_ROOT, `${id}.toml`));
|
||||
}
|
||||
|
||||
function baseReasoning(id: string) {
|
||||
const file = path.join(MODELS_ROOT, `${id}.toml`);
|
||||
return existsSync(file) && z.object({ reasoning: z.boolean().optional() }).passthrough()
|
||||
.parse(Bun.TOML.parse(readFileSync(file, "utf8"))).reasoning === true;
|
||||
}
|
||||
|
||||
function noteHeader(note: string[] | undefined) {
|
||||
return note === undefined || note.length === 0
|
||||
? undefined
|
||||
: `${note.map((line) => `# ${line}`).join("\n")}\n`;
|
||||
}
|
||||
@@ -13,16 +13,6 @@ const CANONICAL_BASE_MODEL_EXCEPTIONS = {
|
||||
const EUR_TO_USD = 1.114;
|
||||
|
||||
const CortecsModality = z.enum(["text", "audio", "image", "video", "pdf"]);
|
||||
type CortecsModality = z.infer<typeof CortecsModality>;
|
||||
|
||||
function modalities(values: string[]): CortecsModality[] {
|
||||
const allowed = new Set<CortecsModality>(CortecsModality.options);
|
||||
const result = values
|
||||
.map((value) => value.toLowerCase())
|
||||
.map((value) => value === "file" ? "pdf" : value)
|
||||
.filter((value): value is CortecsModality => allowed.has(value as CortecsModality));
|
||||
return [...new Set<CortecsModality>(result.length > 0 ? result : ["text"])];
|
||||
}
|
||||
|
||||
export const CortecsModel = z.object({
|
||||
id: z.string().min(1),
|
||||
@@ -36,9 +26,8 @@ export const CortecsModel = z.object({
|
||||
cache_write_cost: z.number().nonnegative().optional(),
|
||||
}).passthrough(),
|
||||
context_size: z.number().int().positive(),
|
||||
max_output_tokens: z.number().int().positive().optional(),
|
||||
input_modalities: z.array(z.string()).transform(modalities).default(["text"]),
|
||||
output_modalities: z.array(z.string()).transform(modalities).default(["text"]),
|
||||
input_modalities: z.array(CortecsModality).default(["text"]),
|
||||
output_modalities: z.array(CortecsModality).default(["text"]),
|
||||
supported_features: z.array(z.string()).default([]),
|
||||
}).passthrough();
|
||||
|
||||
@@ -98,7 +87,7 @@ export function buildCortecsModel(
|
||||
const limit = {
|
||||
context: model.context_size,
|
||||
input: existing?.limit?.input,
|
||||
output: model.max_output_tokens ?? authored?.limit?.output ?? model.context_size,
|
||||
output: authored?.limit?.output ?? model.context_size,
|
||||
};
|
||||
const cost = {
|
||||
input: usd(model.pricing.input_token),
|
||||
|
||||
Loaded 100 of 3329 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user