update providers

This commit is contained in:
yiling
2026-08-01 21:38:42 +08:00
parent 0bccd13399
commit a54c04e15a
39 changed files with 21083 additions and 18187 deletions
+1
View File
@@ -3,6 +3,7 @@ dist
.bun .bun
src/generated src/generated
packages/db/src/generated packages/db/src/generated
packages/core/src/generated
src/ui/components/ui src/ui/components/ui
packages/webui/paraglide packages/webui/paraglide
*.md *.md
@@ -47,34 +47,34 @@ export const builtinProviders: Record<string, any> = {
groq, groq,
openrouter, openrouter,
mistral, mistral,
'amazon-bedrock': amazonBedrock, "amazon-bedrock": amazonBedrock,
'ant-ling': antLing, "ant-ling": antLing,
'azure-openai-responses': azureOpenaiResponses, "azure-openai-responses": azureOpenaiResponses,
cerebras, cerebras,
'cloudflare-ai-gateway': cloudflareAiGateway, "cloudflare-ai-gateway": cloudflareAiGateway,
'cloudflare-workers-ai': cloudflareWorkersAi, "cloudflare-workers-ai": cloudflareWorkersAi,
fireworks, fireworks,
'github-copilot': githubCopilot, "github-copilot": githubCopilot,
'google-vertex': googleVertex, "google-vertex": googleVertex,
huggingface, huggingface,
'kimi-coding': kimiCoding, "kimi-coding": kimiCoding,
minimax, minimax,
'minimax-cn': minimaxCn, "minimax-cn": minimaxCn,
moonshotai, moonshotai,
'moonshotai-cn': moonshotaiCn, "moonshotai-cn": moonshotaiCn,
nvidia, nvidia,
'openai-codex': openaiCodex, "openai-codex": openaiCodex,
opencode, opencode,
'opencode-go': opencodeGo, "opencode-go": opencodeGo,
'qwen-token-plan': qwenTokenPlan, "qwen-token-plan": qwenTokenPlan,
'qwen-token-plan-cn': qwenTokenPlanCn, "qwen-token-plan-cn": qwenTokenPlanCn,
together, together,
'vercel-ai-gateway': vercelAiGateway, "vercel-ai-gateway": vercelAiGateway,
xai, xai,
xiaomi, xiaomi,
'xiaomi-token-plan-ams': xiaomiTokenPlanAms, "xiaomi-token-plan-ams": xiaomiTokenPlanAms,
'xiaomi-token-plan-cn': xiaomiTokenPlanCn, "xiaomi-token-plan-cn": xiaomiTokenPlanCn,
'xiaomi-token-plan-sgp': xiaomiTokenPlanSgp, "xiaomi-token-plan-sgp": xiaomiTokenPlanSgp,
zai, zai,
'zai-coding-cn': zaiCodingCn, "zai-coding-cn": zaiCodingCn,
} as unknown as Record<string, any> } as unknown as Record<string, any>
File diff suppressed because it is too large Load Diff
@@ -1,65 +1,71 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'ant-ling' export const providerName = "ant-ling"
export const providerConfig = { export const providerConfig = {
name: 'ant-ling', "name": "ant-ling",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.ant-ling.com/v1', "baseUrl": "https://api.ant-ling.com/v1",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'Ling-2.6-1T', "modelId": "Ling-2.6-1T",
name: 'Ling 2.6 1T', "name": "Ling 2.6 1T",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 262144,
input: 0.06, "maxTokens": 65536,
output: 0.25, "cost": {
cacheRead: 0, "input": 0.06,
cacheWrite: 0, "output": 0.25,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'Ling-2.6-flash', "modelId": "Ling-2.6-flash",
name: 'Ling 2.6 Flash', "name": "Ling 2.6 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 262144,
input: 0.01, "maxTokens": 65536,
output: 0.02, "cost": {
cacheRead: 0, "input": 0.01,
cacheWrite: 0, "output": 0.02,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'Ring-2.6-1T', "modelId": "Ring-2.6-1T",
name: 'Ring 2.6 1T', "name": "Ring 2.6 1T",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 262144,
input: 0.06, "maxTokens": 65536,
output: 0.25, "cost": {
cacheRead: 0, "input": 0.06,
cacheWrite: 0, "output": 0.25,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
+261 -219
View File
@@ -1,252 +1,294 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'anthropic' export const providerName = "anthropic"
export const providerConfig = { export const providerConfig = {
name: 'anthropic', "name": "anthropic",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
baseUrl: 'https://api.anthropic.com', "baseUrl": "https://api.anthropic.com",
apiKey: 'ANTHROPIC_API_KEY', "apiKey": "ANTHROPIC_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'claude-fable-5', "modelId": "claude-fable-5",
name: 'Claude Fable 5', "name": "Claude Fable 5",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 10, "contextWindow": 1000000,
output: 50, "maxTokens": 128000,
cacheRead: 1, "cost": {
cacheWrite: 12.5, "input": 10,
}, "output": 50,
}, "cacheRead": 1,
"cacheWrite": 12.5
}
}
}, },
{ {
modelId: 'claude-haiku-4-5', "modelId": "claude-haiku-4-5",
name: 'Claude Haiku 4.5 (latest)', "name": "Claude Haiku 4.5 (latest)",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 1, "contextWindow": 200000,
output: 5, "maxTokens": 64000,
cacheRead: 0.1, "cost": {
cacheWrite: 1.25, "input": 1,
}, "output": 5,
}, "cacheRead": 0.1,
"cacheWrite": 1.25
}
}
}, },
{ {
modelId: 'claude-haiku-4-5-20251001', "modelId": "claude-haiku-4-5-20251001",
name: 'Claude Haiku 4.5', "name": "Claude Haiku 4.5",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 1, "contextWindow": 200000,
output: 5, "maxTokens": 64000,
cacheRead: 0.1, "cost": {
cacheWrite: 1.25, "input": 1,
}, "output": 5,
}, "cacheRead": 0.1,
"cacheWrite": 1.25
}
}
}, },
{ {
modelId: 'claude-opus-4-1', "modelId": "claude-opus-4-1",
name: 'Claude Opus 4.1 (latest)', "name": "Claude Opus 4.1 (latest)",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 32000, "image"
cost: { ],
input: 15, "contextWindow": 200000,
output: 75, "maxTokens": 32000,
cacheRead: 1.5, "cost": {
cacheWrite: 18.75, "input": 15,
}, "output": 75,
}, "cacheRead": 1.5,
"cacheWrite": 18.75
}
}
}, },
{ {
modelId: 'claude-opus-4-1-20250805', "modelId": "claude-opus-4-1-20250805",
name: 'Claude Opus 4.1', "name": "Claude Opus 4.1",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 32000, "image"
cost: { ],
input: 15, "contextWindow": 200000,
output: 75, "maxTokens": 32000,
cacheRead: 1.5, "cost": {
cacheWrite: 18.75, "input": 15,
}, "output": 75,
}, "cacheRead": 1.5,
"cacheWrite": 18.75
}
}
}, },
{ {
modelId: 'claude-opus-4-5', "modelId": "claude-opus-4-5",
name: 'Claude Opus 4.5 (latest)', "name": "Claude Opus 4.5 (latest)",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 5, "contextWindow": 200000,
output: 25, "maxTokens": 64000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
}, "output": 25,
}, "cacheRead": 0.5,
"cacheWrite": 6.25
}
}
}, },
{ {
modelId: 'claude-opus-4-5-20251101', "modelId": "claude-opus-4-5-20251101",
name: 'Claude Opus 4.5', "name": "Claude Opus 4.5",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 5, "contextWindow": 200000,
output: 25, "maxTokens": 64000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
}, "output": 25,
}, "cacheRead": 0.5,
"cacheWrite": 6.25
}
}
}, },
{ {
modelId: 'claude-opus-4-6', "modelId": "claude-opus-4-6",
name: 'Claude Opus 4.6', "name": "Claude Opus 4.6",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 5, "contextWindow": 1000000,
output: 25, "maxTokens": 128000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
}, "output": 25,
}, "cacheRead": 0.5,
"cacheWrite": 6.25
}
}
}, },
{ {
modelId: 'claude-opus-4-7', "modelId": "claude-opus-4-7",
name: 'Claude Opus 4.7', "name": "Claude Opus 4.7",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 5, "contextWindow": 1000000,
output: 25, "maxTokens": 128000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
}, "output": 25,
}, "cacheRead": 0.5,
"cacheWrite": 6.25
}
}
}, },
{ {
modelId: 'claude-opus-4-8', "modelId": "claude-opus-4-8",
name: 'Claude Opus 4.8', "name": "Claude Opus 4.8",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 5, "contextWindow": 1000000,
output: 25, "maxTokens": 128000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
}, "output": 25,
}, "cacheRead": 0.5,
"cacheWrite": 6.25
}
}
}, },
{ {
modelId: 'claude-sonnet-4-5', "modelId": "claude-sonnet-4-5",
name: 'Claude Sonnet 4.5 (latest)', "name": "Claude Sonnet 4.5 (latest)",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 3, "contextWindow": 1000000,
output: 15, "maxTokens": 64000,
cacheRead: 0.3, "cost": {
cacheWrite: 3.75, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
"cacheWrite": 3.75
}
}
}, },
{ {
modelId: 'claude-sonnet-4-5-20250929', "modelId": "claude-sonnet-4-5-20250929",
name: 'Claude Sonnet 4.5', "name": "Claude Sonnet 4.5",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 3, "contextWindow": 1000000,
output: 15, "maxTokens": 64000,
cacheRead: 0.3, "cost": {
cacheWrite: 3.75, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
"cacheWrite": 3.75
}
}
}, },
{ {
modelId: 'claude-sonnet-4-6', "modelId": "claude-sonnet-4-6",
name: 'Claude Sonnet 4.6', "name": "Claude Sonnet 4.6",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 3, "contextWindow": 1000000,
output: 15, "maxTokens": 128000,
cacheRead: 0.3, "cost": {
cacheWrite: 3.75, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
"cacheWrite": 3.75
}
}
}, },
{ {
modelId: 'claude-sonnet-5', "modelId": "claude-sonnet-5",
name: 'Claude Sonnet 5', "name": "Claude Sonnet 5",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 2, "contextWindow": 1000000,
output: 10, "maxTokens": 128000,
cacheRead: 0.2, "cost": {
cacheWrite: 2.5, "input": 2,
}, "output": 10,
}, "cacheRead": 0.2,
}, "cacheWrite": 2.5
], }
}
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'cerebras' export const providerName = "cerebras"
export const providerConfig = { export const providerConfig = {
name: 'cerebras', "name": "cerebras",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.cerebras.ai/v1', "baseUrl": "https://api.cerebras.ai/v1",
apiKey: 'CEREBRAS_API_KEY', "apiKey": "CEREBRAS_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'gemma-4-31b', "modelId": "gemma-4-31b",
name: 'Gemma 4 31B IT', "name": "Gemma 4 31B IT",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 131072, "text",
maxTokens: 40960, "image"
cost: { ],
input: 0.99, "contextWindow": 131072,
output: 1.49, "maxTokens": 40960,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.99,
}, "output": 1.49,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gpt-oss-120b', "modelId": "gpt-oss-120b",
name: 'GPT OSS 120B', "name": "GPT OSS 120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 40960, ],
cost: { "contextWindow": 131072,
input: 0.35, "maxTokens": 40960,
output: 0.75, "cost": {
cacheRead: 0, "input": 0.35,
cacheWrite: 0, "output": 0.75,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'zai-glm-4.7', "modelId": "zai-glm-4.7",
name: 'Z.AI GLM-4.7', "name": "Z.AI GLM-4.7",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 40960, ],
cost: { "contextWindow": 131072,
input: 2.25, "maxTokens": 40960,
output: 2.75, "cost": {
cacheRead: 2.25, "input": 2.25,
cacheWrite: 0, "output": 2.75,
}, "cacheRead": 2.25,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,235 +1,265 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'cloudflare-workers-ai' export const providerName = "cloudflare-workers-ai"
export const providerConfig = { export const providerConfig = {
name: 'cloudflare-workers-ai', "name": "cloudflare-workers-ai",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1', "baseUrl": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",
apiKey: 'CLOUDFLARE_API_KEY', "apiKey": "CLOUDFLARE_API_KEY"
}, },
models: [ "models": [
{ {
modelId: '@cf/google/gemma-4-26b-a4b-it', "modelId": "@cf/google/gemma-4-26b-a4b-it",
name: 'Gemma 4 26B A4B IT', "name": "Gemma 4 26B A4B IT",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 256000, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0.1, "contextWindow": 256000,
output: 0.3, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.1,
}, "output": 0.3,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/ibm-granite/granite-4.0-h-micro', "modelId": "@cf/ibm-granite/granite-4.0-h-micro",
name: 'Granite 4.0 H Micro', "name": "Granite 4.0 H Micro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131000, "text"
maxTokens: 131000, ],
cost: { "contextWindow": 131000,
input: 0.017, "maxTokens": 131000,
output: 0.112, "cost": {
cacheRead: 0, "input": 0.017,
cacheWrite: 0, "output": 0.112,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/meta/llama-3.3-70b-instruct-fp8-fast', "modelId": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
name: 'Llama 3.3 70B Instruct fp8 Fast', "name": "Llama 3.3 70B Instruct fp8 Fast",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 24000, "text"
maxTokens: 24000, ],
cost: { "contextWindow": 24000,
input: 0.293, "maxTokens": 24000,
output: 2.253, "cost": {
cacheRead: 0, "input": 0.293,
cacheWrite: 0, "output": 2.253,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/meta/llama-4-scout-17b-16e-instruct', "modelId": "@cf/meta/llama-4-scout-17b-16e-instruct",
name: 'Llama 4 Scout 17B 16E Instruct', "name": "Llama 4 Scout 17B 16E Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 131000, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0.27, "contextWindow": 131000,
output: 0.85, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.27,
}, "output": 0.85,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/mistralai/mistral-small-3.1-24b-instruct', "modelId": "@cf/mistralai/mistral-small-3.1-24b-instruct",
name: 'Mistral Small 3.1 24B Instruct', "name": "Mistral Small 3.1 24B Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 128000, ],
cost: { "contextWindow": 128000,
input: 0.351, "maxTokens": 128000,
output: 0.555, "cost": {
cacheRead: 0, "input": 0.351,
cacheWrite: 0, "output": 0.555,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/moonshotai/kimi-k2.6', "modelId": "@cf/moonshotai/kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 256000, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 256000,
cacheRead: 0.16, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.16,
"cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/moonshotai/kimi-k2.7-code', "modelId": "@cf/moonshotai/kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/nvidia/nemotron-3-120b-a12b', "modelId": "@cf/nvidia/nemotron-3-120b-a12b",
name: 'Nemotron 3 Super 120B', "name": "Nemotron 3 Super 120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 256000, "text"
maxTokens: 256000, ],
cost: { "contextWindow": 256000,
input: 0.5, "maxTokens": 256000,
output: 1.5, "cost": {
cacheRead: 0, "input": 0.5,
cacheWrite: 0, "output": 1.5,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/openai/gpt-oss-120b', "modelId": "@cf/openai/gpt-oss-120b",
name: 'GPT OSS 120B', "name": "GPT OSS 120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 128000,
input: 0.35, "maxTokens": 16384,
output: 0.75, "cost": {
cacheRead: 0, "input": 0.35,
cacheWrite: 0, "output": 0.75,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/openai/gpt-oss-20b', "modelId": "@cf/openai/gpt-oss-20b",
name: 'GPT OSS 20B', "name": "GPT OSS 20B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 128000,
input: 0.2, "maxTokens": 16384,
output: 0.3, "cost": {
cacheRead: 0, "input": 0.2,
cacheWrite: 0, "output": 0.3,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/qwen/qwen3-30b-a3b-fp8', "modelId": "@cf/qwen/qwen3-30b-a3b-fp8",
name: 'Qwen3 30B A3b fp8', "name": "Qwen3 30B A3b fp8",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 32768, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 32768,
input: 0.0509, "maxTokens": 32768,
output: 0.335, "cost": {
cacheRead: 0, "input": 0.0509,
cacheWrite: 0, "output": 0.335,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/zai-org/glm-4.7-flash', "modelId": "@cf/zai-org/glm-4.7-flash",
name: 'GLM-4.7-Flash', "name": "GLM-4.7-Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0.0605, "maxTokens": 131072,
output: 0.4, "cost": {
cacheRead: 0, "input": 0.0605,
cacheWrite: 0, "output": 0.4,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: '@cf/zai-org/glm-5.2', "modelId": "@cf/zai-org/glm-5.2",
name: 'Glm 5.2', "name": "Glm 5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 1.4, "maxTokens": 262144,
output: 4.4, "cost": {
cacheRead: 0.26, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.26,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
@@ -1,48 +1,52 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'deepseek' export const providerName = "deepseek"
export const providerConfig = { export const providerConfig = {
name: 'deepseek', "name": "deepseek",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.deepseek.com', "baseUrl": "https://api.deepseek.com",
apiKey: 'DEEPSEEK_API_KEY', "apiKey": "DEEPSEEK_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'deepseek-v4-flash', "modelId": "deepseek-v4-flash",
name: 'DeepSeek V4 Flash', "name": "DeepSeek V4 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0.14, "maxTokens": 384000,
output: 0.28, "cost": {
cacheRead: 0.0028, "input": 0.14,
cacheWrite: 0, "output": 0.28,
}, "cacheRead": 0.0028,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-pro', "modelId": "deepseek-v4-pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0.435, "maxTokens": 384000,
output: 0.87, "cost": {
cacheRead: 0.003625, "input": 0.435,
cacheWrite: 0, "output": 0.87,
}, "cacheRead": 0.003625,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
+287 -249
View File
@@ -1,286 +1,324 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'fireworks' export const providerName = "fireworks"
export const providerConfig = { export const providerConfig = {
name: 'fireworks', "name": "fireworks",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
baseUrl: 'https://api.fireworks.ai/inference', "baseUrl": "https://api.fireworks.ai/inference",
apiKey: 'FIREWORKS_API_KEY', "apiKey": "FIREWORKS_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'accounts/fireworks/models/deepseek-v4-flash', "modelId": "accounts/fireworks/models/deepseek-v4-flash",
name: 'DeepSeek V4 Flash', "name": "DeepSeek V4 Flash",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0.14, "maxTokens": 384000,
output: 0.28, "cost": {
cacheRead: 0.028, "input": 0.14,
cacheWrite: 0, "output": 0.28,
}, "cacheRead": 0.028,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/deepseek-v4-pro', "modelId": "accounts/fireworks/models/deepseek-v4-pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 1.74, "maxTokens": 384000,
output: 3.48, "cost": {
cacheRead: 0.145, "input": 1.74,
cacheWrite: 0, "output": 3.48,
}, "cacheRead": 0.145,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/glm-5p1', "modelId": "accounts/fireworks/models/glm-5p1",
name: 'GLM 5.1', "name": "GLM 5.1",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 202800,
input: 1.4, "maxTokens": 131072,
output: 4.4, "cost": {
cacheRead: 0.26, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.26,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/glm-5p2', "modelId": "accounts/fireworks/models/glm-5p2",
name: 'GLM 5.2', "name": "GLM 5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048575, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048575,
input: 1.4, "maxTokens": 131072,
output: 4.4, "cost": {
cacheRead: 0.14, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.14,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/gpt-oss-120b', "modelId": "accounts/fireworks/models/gpt-oss-120b",
name: 'GPT OSS 120B', "name": "GPT OSS 120B",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 131072,
input: 0.15, "maxTokens": 32768,
output: 0.6, "cost": {
cacheRead: 0.015, "input": 0.15,
cacheWrite: 0, "output": 0.6,
}, "cacheRead": 0.015,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/gpt-oss-20b', "modelId": "accounts/fireworks/models/gpt-oss-20b",
name: 'GPT OSS 20B', "name": "GPT OSS 20B",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 131072,
input: 0.07, "maxTokens": 32768,
output: 0.3, "cost": {
cacheRead: 0.035, "input": 0.07,
cacheWrite: 0, "output": 0.3,
}, "cacheRead": 0.035,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/kimi-k2p6', "modelId": "accounts/fireworks/models/kimi-k2p6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262000, "text",
maxTokens: 262000, "image"
cost: { ],
input: 0.95, "contextWindow": 262000,
output: 4, "maxTokens": 262000,
cacheRead: 0.16, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.16,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/kimi-k2p7-code', "modelId": "accounts/fireworks/models/kimi-k2p7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262000, "text",
maxTokens: 262000, "image"
cost: { ],
input: 0.95, "contextWindow": 262000,
output: 4, "maxTokens": 262000,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/minimax-m2p7', "modelId": "accounts/fireworks/models/minimax-m2p7",
name: 'MiniMax-M2.7', "name": "MiniMax-M2.7",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 196608, "text"
maxTokens: 196608, ],
cost: { "contextWindow": 196608,
input: 0.3, "maxTokens": 196608,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/minimax-m3', "modelId": "accounts/fireworks/models/minimax-m3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 512000, "text"
maxTokens: 512000, ],
cost: { "contextWindow": 512000,
input: 0.3, "maxTokens": 512000,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/models/qwen3p7-plus', "modelId": "accounts/fireworks/models/qwen3p7-plus",
name: 'Qwen 3.7 Plus', "name": "Qwen 3.7 Plus",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.4, "contextWindow": 262144,
output: 1.6, "maxTokens": 65536,
cacheRead: 0.08, "cost": {
cacheWrite: 0, "input": 0.4,
}, "output": 1.6,
}, "cacheRead": 0.08,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/routers/glm-5p1-fast', "modelId": "accounts/fireworks/routers/glm-5p1-fast",
name: 'GLM 5.1 Fast', "name": "GLM 5.1 Fast",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 202800,
input: 2.8, "maxTokens": 131072,
output: 8.8, "cost": {
cacheRead: 0.52, "input": 2.8,
cacheWrite: 0, "output": 8.8,
}, "cacheRead": 0.52,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/routers/glm-5p2-fast', "modelId": "accounts/fireworks/routers/glm-5p2-fast",
name: 'GLM 5.2 Fast', "name": "GLM 5.2 Fast",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048575, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048575,
input: 2.1, "maxTokens": 131072,
output: 6.6, "cost": {
cacheRead: 0.21, "input": 2.1,
cacheWrite: 0, "output": 6.6,
}, "cacheRead": 0.21,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/routers/kimi-k2p6-fast', "modelId": "accounts/fireworks/routers/kimi-k2p6-fast",
name: 'Kimi K2.6 Fast', "name": "Kimi K2.6 Fast",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262000, "text",
maxTokens: 262000, "image"
cost: { ],
input: 2, "contextWindow": 262000,
output: 8, "maxTokens": 262000,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 8,
}, "cacheRead": 0.3,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/routers/kimi-k2p6-turbo', "modelId": "accounts/fireworks/routers/kimi-k2p6-turbo",
name: 'Kimi K2.6 Turbo', "name": "Kimi K2.6 Turbo",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262000, "text",
maxTokens: 262000, "image"
cost: { ],
input: 2, "contextWindow": 262000,
output: 8, "maxTokens": 262000,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 8,
}, "cacheRead": 0.3,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'accounts/fireworks/routers/kimi-k2p7-code-fast', "modelId": "accounts/fireworks/routers/kimi-k2p7-code-fast",
name: 'Kimi K2.7 Code Fast', "name": "Kimi K2.7 Code Fast",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262000, "text",
maxTokens: 262000, "image"
cost: { ],
input: 1.9, "contextWindow": 262000,
output: 8, "maxTokens": 262000,
cacheRead: 0.38, "cost": {
cacheWrite: 0, "input": 1.9,
}, "output": 8,
}, "cacheRead": 0.38,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,184 +1,214 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'google-vertex' export const providerName = "google-vertex"
export const providerConfig = { export const providerConfig = {
name: 'google-vertex', "name": "google-vertex",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
baseUrl: 'https://{location}-aiplatform.googleapis.com', "baseUrl": "https://{location}-aiplatform.googleapis.com",
apiKey: 'GOOGLE_CLOUD_API_KEY', "apiKey": "GOOGLE_CLOUD_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'gemini-2.5-flash', "modelId": "gemini-2.5-flash",
name: 'Gemini 2.5 Flash', "name": "Gemini 2.5 Flash",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.3, "contextWindow": 1048576,
output: 2.5, "maxTokens": 65536,
cacheRead: 0.03, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 2.5,
}, "cacheRead": 0.03,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.5-flash-lite', "modelId": "gemini-2.5-flash-lite",
name: 'Gemini 2.5 Flash-Lite', "name": "Gemini 2.5 Flash-Lite",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.1, "contextWindow": 1048576,
output: 0.4, "maxTokens": 65536,
cacheRead: 0.01, "cost": {
cacheWrite: 0, "input": 0.1,
}, "output": 0.4,
}, "cacheRead": 0.01,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.5-pro', "modelId": "gemini-2.5-pro",
name: 'Gemini 2.5 Pro', "name": "Gemini 2.5 Pro",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.25, "contextWindow": 1048576,
output: 10, "maxTokens": 65536,
cacheRead: 0.125, "cost": {
cacheWrite: 0, "input": 1.25,
}, "output": 10,
}, "cacheRead": 0.125,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3-flash-preview', "modelId": "gemini-3-flash-preview",
name: 'Gemini 3 Flash Preview', "name": "Gemini 3 Flash Preview",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.5, "contextWindow": 1048576,
output: 3, "maxTokens": 65536,
cacheRead: 0.05, "cost": {
cacheWrite: 0, "input": 0.5,
}, "output": 3,
}, "cacheRead": 0.05,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-flash-lite', "modelId": "gemini-3.1-flash-lite",
name: 'Gemini 3.1 Flash Lite', "name": "Gemini 3.1 Flash Lite",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.25, "contextWindow": 1048576,
output: 1.5, "maxTokens": 65536,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.25,
}, "output": 1.5,
}, "cacheRead": 0.025,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-pro-preview', "modelId": "gemini-3.1-pro-preview",
name: 'Gemini 3.1 Pro Preview', "name": "Gemini 3.1 Pro Preview",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 2, "contextWindow": 1048576,
output: 12, "maxTokens": 65536,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 12,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-pro-preview-customtools', "modelId": "gemini-3.1-pro-preview-customtools",
name: 'Gemini 3.1 Pro Preview Custom Tools', "name": "Gemini 3.1 Pro Preview Custom Tools",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 2, "contextWindow": 1048576,
output: 12, "maxTokens": 65536,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 12,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.5-flash', "modelId": "gemini-3.5-flash",
name: 'Gemini 3.5 Flash', "name": "Gemini 3.5 Flash",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.5, "contextWindow": 1048576,
output: 9, "maxTokens": 65536,
cacheRead: 0.15, "cost": {
cacheWrite: 0, "input": 1.5,
}, "output": 9,
}, "cacheRead": 0.15,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-flash-latest', "modelId": "gemini-flash-latest",
name: 'Gemini Flash Latest', "name": "Gemini Flash Latest",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.5, "contextWindow": 1048576,
output: 9, "maxTokens": 65536,
cacheRead: 0.15, "cost": {
cacheWrite: 0, "input": 1.5,
}, "output": 9,
}, "cacheRead": 0.15,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-flash-lite-latest', "modelId": "gemini-flash-lite-latest",
name: 'Gemini Flash-Lite Latest', "name": "Gemini Flash-Lite Latest",
config: { "config": {
api: 'google-vertex', "api": "google-vertex",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.25, "contextWindow": 1048576,
output: 1.5, "maxTokens": 65536,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.25,
}, "output": 1.5,
}, "cacheRead": 0.025,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
+333 -279
View File
@@ -1,320 +1,374 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'google' export const providerName = "google"
export const providerConfig = { export const providerConfig = {
name: 'google', "name": "google",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
baseUrl: 'https://generativelanguage.googleapis.com/v1beta', "baseUrl": "https://generativelanguage.googleapis.com/v1beta",
apiKey: 'GEMINI_API_KEY', "apiKey": "GEMINI_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'gemini-2.0-flash', "modelId": "gemini-2.0-flash",
name: 'Gemini 2.0 Flash', "name": "Gemini 2.0 Flash",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 8192, "image"
cost: { ],
input: 0.1, "contextWindow": 1048576,
output: 0.4, "maxTokens": 8192,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.1,
}, "output": 0.4,
}, "cacheRead": 0.025,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.0-flash-lite', "modelId": "gemini-2.0-flash-lite",
name: 'Gemini 2.0 Flash-Lite', "name": "Gemini 2.0 Flash-Lite",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 8192, "image"
cost: { ],
input: 0.075, "contextWindow": 1048576,
output: 0.3, "maxTokens": 8192,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.075,
}, "output": 0.3,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.5-flash', "modelId": "gemini-2.5-flash",
name: 'Gemini 2.5 Flash', "name": "Gemini 2.5 Flash",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.3, "contextWindow": 1048576,
output: 2.5, "maxTokens": 65536,
cacheRead: 0.03, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 2.5,
}, "cacheRead": 0.03,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.5-flash-lite', "modelId": "gemini-2.5-flash-lite",
name: 'Gemini 2.5 Flash-Lite', "name": "Gemini 2.5 Flash-Lite",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.1, "contextWindow": 1048576,
output: 0.4, "maxTokens": 65536,
cacheRead: 0.01, "cost": {
cacheWrite: 0, "input": 0.1,
}, "output": 0.4,
}, "cacheRead": 0.01,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-2.5-pro', "modelId": "gemini-2.5-pro",
name: 'Gemini 2.5 Pro', "name": "Gemini 2.5 Pro",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.25, "contextWindow": 1048576,
output: 10, "maxTokens": 65536,
cacheRead: 0.125, "cost": {
cacheWrite: 0, "input": 1.25,
}, "output": 10,
}, "cacheRead": 0.125,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3-flash-preview', "modelId": "gemini-3-flash-preview",
name: 'Gemini 3 Flash Preview', "name": "Gemini 3 Flash Preview",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.5, "contextWindow": 1048576,
output: 3, "maxTokens": 65536,
cacheRead: 0.05, "cost": {
cacheWrite: 0, "input": 0.5,
}, "output": 3,
}, "cacheRead": 0.05,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3-pro-preview', "modelId": "gemini-3-pro-preview",
name: 'Gemini 3 Pro Preview', "name": "Gemini 3 Pro Preview",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 2, "contextWindow": 1048576,
output: 12, "maxTokens": 65536,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 12,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-flash-lite', "modelId": "gemini-3.1-flash-lite",
name: 'Gemini 3.1 Flash Lite', "name": "Gemini 3.1 Flash Lite",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.25, "contextWindow": 1048576,
output: 1.5, "maxTokens": 65536,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.25,
}, "output": 1.5,
}, "cacheRead": 0.025,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-flash-lite-preview', "modelId": "gemini-3.1-flash-lite-preview",
name: 'Gemini 3.1 Flash Lite Preview', "name": "Gemini 3.1 Flash Lite Preview",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.25, "contextWindow": 1048576,
output: 1.5, "maxTokens": 65536,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.25,
}, "output": 1.5,
}, "cacheRead": 0.025,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-pro-preview', "modelId": "gemini-3.1-pro-preview",
name: 'Gemini 3.1 Pro Preview', "name": "Gemini 3.1 Pro Preview",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 2, "contextWindow": 1048576,
output: 12, "maxTokens": 65536,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 12,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.1-pro-preview-customtools', "modelId": "gemini-3.1-pro-preview-customtools",
name: 'Gemini 3.1 Pro Preview Custom Tools', "name": "Gemini 3.1 Pro Preview Custom Tools",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 2, "contextWindow": 1048576,
output: 12, "maxTokens": 65536,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 12,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.5-flash', "modelId": "gemini-3.5-flash",
name: 'Gemini 3.5 Flash', "name": "Gemini 3.5 Flash",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.5, "contextWindow": 1048576,
output: 9, "maxTokens": 65536,
cacheRead: 0.15, "cost": {
cacheWrite: 0, "input": 1.5,
}, "output": 9,
}, "cacheRead": 0.15,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.5-flash-lite', "modelId": "gemini-3.5-flash-lite",
name: 'Gemini 3.5 Flash Lite', "name": "Gemini 3.5 Flash Lite",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.3, "contextWindow": 1048576,
output: 2.5, "maxTokens": 65536,
cacheRead: 0.03, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 2.5,
}, "cacheRead": 0.03,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-3.6-flash', "modelId": "gemini-3.6-flash",
name: 'Gemini 3.6 Flash', "name": "Gemini 3.6 Flash",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.5, "contextWindow": 1048576,
output: 7.5, "maxTokens": 65536,
cacheRead: 0.15, "cost": {
cacheWrite: 0, "input": 1.5,
}, "output": 7.5,
}, "cacheRead": 0.15,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-flash-latest', "modelId": "gemini-flash-latest",
name: 'Gemini Flash Latest', "name": "Gemini Flash Latest",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 1.5, "contextWindow": 1048576,
output: 9, "maxTokens": 65536,
cacheRead: 0.15, "cost": {
cacheWrite: 0, "input": 1.5,
}, "output": 9,
}, "cacheRead": 0.15,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemini-flash-lite-latest', "modelId": "gemini-flash-lite-latest",
name: 'Gemini Flash-Lite Latest', "name": "Gemini Flash-Lite Latest",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.25, "contextWindow": 1048576,
output: 1.5, "maxTokens": 65536,
cacheRead: 0.025, "cost": {
cacheWrite: 0, "input": 0.25,
}, "output": 1.5,
}, "cacheRead": 0.025,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemma-4-26b-a4b-it', "modelId": "gemma-4-26b-a4b-it",
name: 'Gemma 4 26B A4B IT', "name": "Gemma 4 26B A4B IT",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 32768,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gemma-4-31b-it', "modelId": "gemma-4-31b-it",
name: 'Gemma 4 31B IT', "name": "Gemma 4 31B IT",
config: { "config": {
api: 'google-generative-ai', "api": "google-generative-ai",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 32768,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
+129 -114
View File
@@ -1,133 +1,148 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'groq' export const providerName = "groq"
export const providerConfig = { export const providerConfig = {
name: 'groq', "name": "groq",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.groq.com/openai/v1', "baseUrl": "https://api.groq.com/openai/v1",
apiKey: 'GROQ_API_KEY', "apiKey": "GROQ_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'llama-3.1-8b-instant', "modelId": "llama-3.1-8b-instant",
name: 'Llama 3.1 8B', "name": "Llama 3.1 8B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0.05, "maxTokens": 131072,
output: 0.08, "cost": {
cacheRead: 0, "input": 0.05,
cacheWrite: 0, "output": 0.08,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'llama-3.3-70b-versatile', "modelId": "llama-3.3-70b-versatile",
name: 'Llama 3.3 70B', "name": "Llama 3.3 70B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 131072,
input: 0.59, "maxTokens": 32768,
output: 0.79, "cost": {
cacheRead: 0, "input": 0.59,
cacheWrite: 0, "output": 0.79,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta-llama/llama-4-scout-17b-16e-instruct', "modelId": "meta-llama/llama-4-scout-17b-16e-instruct",
name: 'Llama 4 Scout 17B 16E', "name": "Llama 4 Scout 17B 16E",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 131072, "text",
maxTokens: 8192, "image"
cost: { ],
input: 0.11, "contextWindow": 131072,
output: 0.34, "maxTokens": 8192,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.11,
}, "output": 0.34,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-120b', "modelId": "openai/gpt-oss-120b",
name: 'GPT OSS 120B', "name": "GPT OSS 120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 131072,
input: 0.15, "maxTokens": 65536,
output: 0.6, "cost": {
cacheRead: 0.075, "input": 0.15,
cacheWrite: 0, "output": 0.6,
}, "cacheRead": 0.075,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-20b', "modelId": "openai/gpt-oss-20b",
name: 'GPT OSS 20B', "name": "GPT OSS 20B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 131072,
input: 0.075, "maxTokens": 65536,
output: 0.3, "cost": {
cacheRead: 0.0375, "input": 0.075,
cacheWrite: 0, "output": 0.3,
}, "cacheRead": 0.0375,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-safeguard-20b', "modelId": "openai/gpt-oss-safeguard-20b",
name: 'Safety GPT OSS 20B', "name": "Safety GPT OSS 20B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 131072,
input: 0.075, "maxTokens": 65536,
output: 0.3, "cost": {
cacheRead: 0, "input": 0.075,
cacheWrite: 0, "output": 0.3,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen/qwen3-32b', "modelId": "qwen/qwen3-32b",
name: 'Qwen3-32B', "name": "Qwen3-32B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 40960, ],
cost: { "contextWindow": 131072,
input: 0.29, "maxTokens": 40960,
output: 0.59, "cost": {
cacheRead: 0, "input": 0.29,
cacheWrite: 0, "output": 0.59,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,65 +1,74 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'kimi-coding' export const providerName = "kimi-coding"
export const providerConfig = { export const providerConfig = {
name: 'kimi-coding', "name": "kimi-coding",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
baseUrl: 'https://api.kimi.com/coding', "baseUrl": "https://api.kimi.com/coding",
apiKey: 'KIMI_API_KEY', "apiKey": "KIMI_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'k3', "modelId": "k3",
name: 'Kimi K3', "name": "Kimi K3",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 3, "contextWindow": 1048576,
output: 15, "maxTokens": 131072,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-for-coding', "modelId": "kimi-for-coding",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 32768,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-for-coding-highspeed', "modelId": "kimi-for-coding-highspeed",
name: 'Kimi For Coding HighSpeed', "name": "Kimi For Coding HighSpeed",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 1.9, "contextWindow": 262144,
output: 8, "maxTokens": 32768,
cacheRead: 0.38, "cost": {
cacheWrite: 0, "input": 1.9,
}, "output": 8,
}, "cacheRead": 0.38,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'minimax-cn' export const providerName = "minimax-cn"
export const providerConfig = { export const providerConfig = {
name: 'minimax-cn', "name": "minimax-cn",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
baseUrl: 'https://api.minimaxi.com/anthropic', "baseUrl": "https://api.minimaxi.com/anthropic",
apiKey: 'MINIMAX_CN_API_KEY', "apiKey": "MINIMAX_CN_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'MiniMax-M2.7', "modelId": "MiniMax-M2.7",
name: 'MiniMax-M2.7', "name": "MiniMax-M2.7",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0.3, "maxTokens": 131072,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0.375, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0.375
}
}
}, },
{ {
modelId: 'MiniMax-M2.7-highspeed', "modelId": "MiniMax-M2.7-highspeed",
name: 'MiniMax-M2.7-highspeed', "name": "MiniMax-M2.7-highspeed",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0.6, "maxTokens": 131072,
output: 2.4, "cost": {
cacheRead: 0.06, "input": 0.6,
cacheWrite: 0.375, "output": 2.4,
}, "cacheRead": 0.06,
}, "cacheWrite": 0.375
}
}
}, },
{ {
modelId: 'MiniMax-M3', "modelId": "MiniMax-M3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 0.3, "contextWindow": 1000000,
output: 1.2, "maxTokens": 128000,
cacheRead: 0.06, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'minimax' export const providerName = "minimax"
export const providerConfig = { export const providerConfig = {
name: 'minimax', "name": "minimax",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
baseUrl: 'https://api.minimax.io/anthropic', "baseUrl": "https://api.minimax.io/anthropic",
apiKey: 'MINIMAX_API_KEY', "apiKey": "MINIMAX_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'MiniMax-M2.7', "modelId": "MiniMax-M2.7",
name: 'MiniMax-M2.7', "name": "MiniMax-M2.7",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0.3, "maxTokens": 131072,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0.375, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0.375
}
}
}, },
{ {
modelId: 'MiniMax-M2.7-highspeed', "modelId": "MiniMax-M2.7-highspeed",
name: 'MiniMax-M2.7-highspeed', "name": "MiniMax-M2.7-highspeed",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0.6, "maxTokens": 131072,
output: 2.4, "cost": {
cacheRead: 0.06, "input": 0.6,
cacheWrite: 0.375, "output": 2.4,
}, "cacheRead": 0.06,
}, "cacheWrite": 0.375
}
}
}, },
{ {
modelId: 'MiniMax-M3', "modelId": "MiniMax-M3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 0.3, "contextWindow": 1000000,
output: 1.2, "maxTokens": 128000,
cacheRead: 0.06, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,184 +1,209 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'moonshotai-cn' export const providerName = "moonshotai-cn"
export const providerConfig = { export const providerConfig = {
name: 'moonshotai-cn', "name": "moonshotai-cn",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.moonshot.cn/v1', "baseUrl": "https://api.moonshot.cn/v1",
apiKey: 'MOONSHOT_API_KEY', "apiKey": "MOONSHOT_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'kimi-k2-0711-preview', "modelId": "kimi-k2-0711-preview",
name: 'Kimi K2 0711', "name": "Kimi K2 0711",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 131072,
input: 0.6, "maxTokens": 16384,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-0905-preview', "modelId": "kimi-k2-0905-preview",
name: 'Kimi K2 0905', "name": "Kimi K2 0905",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 0.6, "maxTokens": 262144,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-thinking', "modelId": "kimi-k2-thinking",
name: 'Kimi K2 Thinking', "name": "Kimi K2 Thinking",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 0.6, "maxTokens": 262144,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-thinking-turbo', "modelId": "kimi-k2-thinking-turbo",
name: 'Kimi K2 Thinking Turbo', "name": "Kimi K2 Thinking Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 1.15, "maxTokens": 262144,
output: 8, "cost": {
cacheRead: 0.15, "input": 1.15,
cacheWrite: 0, "output": 8,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-turbo-preview', "modelId": "kimi-k2-turbo-preview",
name: 'Kimi K2 Turbo', "name": "Kimi K2 Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 2.4, "maxTokens": 262144,
output: 10, "cost": {
cacheRead: 0.6, "input": 2.4,
cacheWrite: 0, "output": 10,
}, "cacheRead": 0.6,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.5', "modelId": "kimi-k2.5",
name: 'Kimi K2.5', "name": "Kimi K2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.6, "contextWindow": 262144,
output: 3, "maxTokens": 262144,
cacheRead: 0.1, "cost": {
cacheWrite: 0, "input": 0.6,
}, "output": 3,
}, "cacheRead": 0.1,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.6', "modelId": "kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.16, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.16,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code', "modelId": "kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code-highspeed', "modelId": "kimi-k2.7-code-highspeed",
name: 'Kimi K2.7 Code HighSpeed', "name": "Kimi K2.7 Code HighSpeed",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 1.9, "contextWindow": 262144,
output: 8, "maxTokens": 262144,
cacheRead: 0.38, "cost": {
cacheWrite: 0, "input": 1.9,
}, "output": 8,
}, "cacheRead": 0.38,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k3', "modelId": "kimi-k3",
name: 'Kimi K3', "name": "Kimi K3",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 3, "contextWindow": 1048576,
output: 15, "maxTokens": 131072,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
@@ -1,184 +1,209 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'moonshotai' export const providerName = "moonshotai"
export const providerConfig = { export const providerConfig = {
name: 'moonshotai', "name": "moonshotai",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.moonshot.ai/v1', "baseUrl": "https://api.moonshot.ai/v1",
apiKey: 'MOONSHOT_API_KEY', "apiKey": "MOONSHOT_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'kimi-k2-0711-preview', "modelId": "kimi-k2-0711-preview",
name: 'Kimi K2 0711', "name": "Kimi K2 0711",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 131072,
input: 0.6, "maxTokens": 16384,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-0905-preview', "modelId": "kimi-k2-0905-preview",
name: 'Kimi K2 0905', "name": "Kimi K2 0905",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 0.6, "maxTokens": 262144,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-thinking', "modelId": "kimi-k2-thinking",
name: 'Kimi K2 Thinking', "name": "Kimi K2 Thinking",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 0.6, "maxTokens": 262144,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.6,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-thinking-turbo', "modelId": "kimi-k2-thinking-turbo",
name: 'Kimi K2 Thinking Turbo', "name": "Kimi K2 Thinking Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 1.15, "maxTokens": 262144,
output: 8, "cost": {
cacheRead: 0.15, "input": 1.15,
cacheWrite: 0, "output": 8,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2-turbo-preview', "modelId": "kimi-k2-turbo-preview",
name: 'Kimi K2 Turbo', "name": "Kimi K2 Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 2.4, "maxTokens": 262144,
output: 10, "cost": {
cacheRead: 0.6, "input": 2.4,
cacheWrite: 0, "output": 10,
}, "cacheRead": 0.6,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.5', "modelId": "kimi-k2.5",
name: 'Kimi K2.5', "name": "Kimi K2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.6, "contextWindow": 262144,
output: 3, "maxTokens": 262144,
cacheRead: 0.1, "cost": {
cacheWrite: 0, "input": 0.6,
}, "output": 3,
}, "cacheRead": 0.1,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.6', "modelId": "kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.16, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.16,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code', "modelId": "kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code-highspeed', "modelId": "kimi-k2.7-code-highspeed",
name: 'Kimi K2.7 Code HighSpeed', "name": "Kimi K2.7 Code HighSpeed",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 1.9, "contextWindow": 262144,
output: 8, "maxTokens": 262144,
cacheRead: 0.38, "cost": {
cacheWrite: 0, "input": 1.9,
}, "output": 8,
}, "cacheRead": 0.38,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k3', "modelId": "kimi-k3",
name: 'Kimi K3', "name": "Kimi K3",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 3, "contextWindow": 1048576,
output: 15, "maxTokens": 131072,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
+340 -294
View File
@@ -1,337 +1,383 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'nvidia' export const providerName = "nvidia"
export const providerConfig = { export const providerConfig = {
name: 'nvidia', "name": "nvidia",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://integrate.api.nvidia.com/v1', "baseUrl": "https://integrate.api.nvidia.com/v1",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'meta/llama-3.1-70b-instruct', "modelId": "meta/llama-3.1-70b-instruct",
name: 'Llama 3.1 70b Instruct', "name": "Llama 3.1 70b Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 4096, ],
cost: { "contextWindow": 128000,
input: 0, "maxTokens": 4096,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta/llama-3.1-8b-instruct', "modelId": "meta/llama-3.1-8b-instruct",
name: 'Llama 3.1 8B Instruct', "name": "Llama 3.1 8B Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 16000, "text"
maxTokens: 4096, ],
cost: { "contextWindow": 16000,
input: 0, "maxTokens": 4096,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta/llama-3.2-11b-vision-instruct', "modelId": "meta/llama-3.2-11b-vision-instruct",
name: 'Llama 3.2 11b Vision Instruct', "name": "Llama 3.2 11b Vision Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 128000, "text",
maxTokens: 4096, "image"
cost: { ],
input: 0, "contextWindow": 128000,
output: 0, "maxTokens": 4096,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta/llama-3.2-90b-vision-instruct', "modelId": "meta/llama-3.2-90b-vision-instruct",
name: 'Llama-3.2-90B-Vision-Instruct', "name": "Llama-3.2-90B-Vision-Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 128000, "text",
maxTokens: 8192, "image"
cost: { ],
input: 0, "contextWindow": 128000,
output: 0, "maxTokens": 8192,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta/llama-3.3-70b-instruct', "modelId": "meta/llama-3.3-70b-instruct",
name: 'Llama 3.3 70b Instruct', "name": "Llama 3.3 70b Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 4096, ],
cost: { "contextWindow": 128000,
input: 0, "maxTokens": 4096,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'minimaxai/minimax-m3', "modelId": "minimaxai/minimax-m3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mistralai/mistral-large-3-675b-instruct-2512', "modelId": "mistralai/mistral-large-3-675b-instruct-2512",
name: 'Mistral Large 3 675B Instruct 2512', "name": "Mistral Large 3 675B Instruct 2512",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 262144,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mistralai/mistral-small-4-119b-2603', "modelId": "mistralai/mistral-small-4-119b-2603",
name: 'mistral-small-4-119b-2603', "name": "mistral-small-4-119b-2603",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 128000, "text",
maxTokens: 8192, "image"
cost: { ],
input: 0, "contextWindow": 128000,
output: 0, "maxTokens": 8192,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'moonshotai/kimi-k2.6', "modelId": "moonshotai/kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 262144,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nemotron-3-nano-30b-a3b', "modelId": "nvidia/nemotron-3-nano-30b-a3b",
name: 'nemotron-3-nano-30b-a3b', "name": "nemotron-3-nano-30b-a3b",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning', "modelId": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",
name: 'Nemotron 3 Nano Omni', "name": "Nemotron 3 Nano Omni",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 256000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0, "contextWindow": 256000,
output: 0, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nemotron-3-super-120b-a12b', "modelId": "nvidia/nemotron-3-super-120b-a12b",
name: 'Nemotron 3 Super', "name": "Nemotron 3 Super",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 262144, ],
cost: { "contextWindow": 262144,
input: 0.2, "maxTokens": 262144,
output: 0.8, "cost": {
cacheRead: 0, "input": 0.2,
cacheWrite: 0, "output": 0.8,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nemotron-3-ultra-550b-a55b', "modelId": "nvidia/nemotron-3-ultra-550b-a55b",
name: 'Nemotron 3 Ultra 550B A55B', "name": "Nemotron 3 Ultra 550B A55B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 1000000,
input: 0.5, "maxTokens": 65536,
output: 2.5, "cost": {
cacheRead: 0.15, "input": 0.5,
cacheWrite: 0, "output": 2.5,
}, "cacheRead": 0.15,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nvidia-nemotron-nano-9b-v2', "modelId": "nvidia/nvidia-nemotron-nano-9b-v2",
name: 'nvidia-nemotron-nano-9b-v2', "name": "nvidia-nemotron-nano-9b-v2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-120b', "modelId": "openai/gpt-oss-120b",
name: 'GPT-OSS-120B', "name": "GPT-OSS-120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 8192, ],
cost: { "contextWindow": 128000,
input: 0, "maxTokens": 8192,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-20b', "modelId": "openai/gpt-oss-20b",
name: 'GPT OSS 20B', "name": "GPT OSS 20B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 32768,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'stepfun-ai/step-3.5-flash', "modelId": "stepfun-ai/step-3.5-flash",
name: 'Step 3.5 Flash', "name": "Step 3.5 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 256000, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 256000,
input: 0, "maxTokens": 16384,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'stepfun-ai/step-3.7-flash', "modelId": "stepfun-ai/step-3.7-flash",
name: 'Step 3.7 Flash', "name": "Step 3.7 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 256000, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0, "contextWindow": 256000,
output: 0, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'z-ai/glm-5.2', "modelId": "z-ai/glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
@@ -1,178 +1,198 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'openai-codex' export const providerName = "openai-codex"
export const providerConfig = { export const providerConfig = {
name: 'openai-codex', "name": "openai-codex",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
baseUrl: 'https://chatgpt.com/backend-api', "baseUrl": "https://chatgpt.com/backend-api",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'gpt-5.3-codex-spark', "modelId": "gpt-5.3-codex-spark",
name: 'GPT-5.3 Codex Spark', "name": "GPT-5.3 Codex Spark",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 128000, "text"
maxTokens: 128000, ],
cost: { "contextWindow": 128000,
input: 1.75, "maxTokens": 128000,
output: 14, "cost": {
cacheRead: 0.175, "input": 1.75,
cacheWrite: 0, "output": 14,
}, "cacheRead": 0.175,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'gpt-5.4', "modelId": "gpt-5.4",
name: 'GPT-5.4', "name": "GPT-5.4",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 2.5, "contextWindow": 272000,
output: 15, "maxTokens": 128000,
cacheRead: 0.25, "cost": {
cacheWrite: 0, "input": 2.5,
tiers: [ "output": 15,
"cacheRead": 0.25,
"cacheWrite": 0,
"tiers": [
{ {
inputTokensAbove: 272000, "inputTokensAbove": 272000,
input: 5, "input": 5,
output: 22.5, "output": 22.5,
cacheRead: 0.5, "cacheRead": 0.5,
cacheWrite: 0, "cacheWrite": 0
}, }
], ]
}, }
}, }
}, },
{ {
modelId: 'gpt-5.4-mini', "modelId": "gpt-5.4-mini",
name: 'GPT-5.4 mini', "name": "GPT-5.4 mini",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 0.75, "contextWindow": 272000,
output: 4.5, "maxTokens": 128000,
cacheRead: 0.075, "cost": {
cacheWrite: 0, "input": 0.75,
}, "output": 4.5,
}, "cacheRead": 0.075,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'gpt-5.5', "modelId": "gpt-5.5",
name: 'GPT-5.5', "name": "GPT-5.5",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 5, "contextWindow": 272000,
output: 30, "maxTokens": 128000,
cacheRead: 0.5, "cost": {
cacheWrite: 0, "input": 5,
tiers: [ "output": 30,
"cacheRead": 0.5,
"cacheWrite": 0,
"tiers": [
{ {
inputTokensAbove: 272000, "inputTokensAbove": 272000,
input: 10, "input": 10,
output: 45, "output": 45,
cacheRead: 1, "cacheRead": 1,
cacheWrite: 0, "cacheWrite": 0
}, }
], ]
}, }
}, }
}, },
{ {
modelId: 'gpt-5.6-luna', "modelId": "gpt-5.6-luna",
name: 'GPT-5.6 Luna', "name": "GPT-5.6 Luna",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 1, "contextWindow": 272000,
output: 6, "maxTokens": 128000,
cacheRead: 0.1, "cost": {
cacheWrite: 1.25, "input": 1,
tiers: [ "output": 6,
"cacheRead": 0.1,
"cacheWrite": 1.25,
"tiers": [
{ {
inputTokensAbove: 272000, "inputTokensAbove": 272000,
input: 2, "input": 2,
output: 9, "output": 9,
cacheRead: 0.2, "cacheRead": 0.2,
cacheWrite: 2.5, "cacheWrite": 2.5
}, }
], ]
}, }
}, }
}, },
{ {
modelId: 'gpt-5.6-sol', "modelId": "gpt-5.6-sol",
name: 'GPT-5.6 Sol', "name": "GPT-5.6 Sol",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 5, "contextWindow": 272000,
output: 30, "maxTokens": 128000,
cacheRead: 0.5, "cost": {
cacheWrite: 6.25, "input": 5,
tiers: [ "output": 30,
"cacheRead": 0.5,
"cacheWrite": 6.25,
"tiers": [
{ {
inputTokensAbove: 272000, "inputTokensAbove": 272000,
input: 10, "input": 10,
output: 45, "output": 45,
cacheRead: 1, "cacheRead": 1,
cacheWrite: 12.5, "cacheWrite": 12.5
}, }
], ]
}, }
}, }
}, },
{ {
modelId: 'gpt-5.6-terra', "modelId": "gpt-5.6-terra",
name: 'GPT-5.6 Terra', "name": "GPT-5.6 Terra",
config: { "config": {
api: 'openai-codex-responses', "api": "openai-codex-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 272000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 2.5, "contextWindow": 272000,
output: 15, "maxTokens": 128000,
cacheRead: 0.25, "cost": {
cacheWrite: 3.125, "input": 2.5,
tiers: [ "output": 15,
"cacheRead": 0.25,
"cacheWrite": 3.125,
"tiers": [
{ {
inputTokensAbove: 272000, "inputTokensAbove": 272000,
input: 5, "input": 5,
output: 22.5, "output": 22.5,
cacheRead: 0.5, "cacheRead": 0.5,
cacheWrite: 6.25, "cacheWrite": 6.25
}, }
], ]
}, }
}, }
}, }
], ]
} as const } as const
File diff suppressed because it is too large Load Diff
@@ -1,269 +1,307 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'opencode-go' export const providerName = "opencode-go"
export const providerConfig = { export const providerConfig = {
name: 'opencode-go', "name": "opencode-go",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://opencode.ai/zen/go/v1', "baseUrl": "https://opencode.ai/zen/go/v1",
apiKey: 'OPENCODE_API_KEY', "apiKey": "OPENCODE_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'deepseek-v4-flash', "modelId": "deepseek-v4-flash",
name: 'DeepSeek V4 Flash', "name": "DeepSeek V4 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0.14, "maxTokens": 384000,
output: 0.28, "cost": {
cacheRead: 0.0028, "input": 0.14,
cacheWrite: 0, "output": 0.28,
}, "cacheRead": 0.0028,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-pro', "modelId": "deepseek-v4-pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0.435, "maxTokens": 384000,
output: 0.87, "cost": {
cacheRead: 0.003625, "input": 0.435,
cacheWrite: 0, "output": 0.87,
}, "cacheRead": 0.003625,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.1', "modelId": "glm-5.1",
name: 'GLM-5.1', "name": "GLM-5.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 202752,
input: 1.4, "maxTokens": 32768,
output: 4.4, "cost": {
cacheRead: 0.26, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.26,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.2', "modelId": "glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 1.4, "maxTokens": 131072,
output: 4.4, "cost": {
cacheRead: 0.26, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.26,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'grok-4.5', "modelId": "grok-4.5",
name: 'Grok 4.5', "name": "Grok 4.5",
config: { "config": {
api: 'openai-responses', "api": "openai-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 500000, "text",
maxTokens: 500000, "image"
cost: { ],
input: 2, "contextWindow": 500000,
output: 6, "maxTokens": 500000,
cacheRead: 0.5, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 6,
}, "cacheRead": 0.5,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.6', "modelId": "kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 65536,
cacheRead: 0.16, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.16,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code', "modelId": "kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0.95, "contextWindow": 262144,
output: 4, "maxTokens": 262144,
cacheRead: 0.19, "cost": {
cacheWrite: 0, "input": 0.95,
}, "output": 4,
}, "cacheRead": 0.19,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k3', "modelId": "kimi-k3",
name: 'Kimi K3 (2x usage)', "name": "Kimi K3 (2x usage)",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 3, "contextWindow": 1048576,
output: 15, "maxTokens": 131072,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 3,
}, "output": 15,
}, "cacheRead": 0.3,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5', "modelId": "mimo-v2.5",
name: 'MiMo V2.5', "name": "MiMo V2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 128000, "image"
cost: { ],
input: 0.14, "contextWindow": 1000000,
output: 0.28, "maxTokens": 128000,
cacheRead: 0.0028, "cost": {
cacheWrite: 0, "input": 0.14,
}, "output": 0.28,
}, "cacheRead": 0.0028,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro', "modelId": "mimo-v2.5-pro",
name: 'MiMo V2.5 Pro', "name": "MiMo V2.5 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 128000, ],
cost: { "contextWindow": 1048576,
input: 0.435, "maxTokens": 128000,
output: 0.87, "cost": {
cacheRead: 0.003625, "input": 0.435,
cacheWrite: 0, "output": 0.87,
}, "cacheRead": 0.003625,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'minimax-m2.7', "modelId": "minimax-m2.7",
name: 'MiniMax-M2.7', "name": "MiniMax-M2.7",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0.3, "maxTokens": 131072,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'minimax-m3', "modelId": "minimax-m3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0.3, "contextWindow": 1000000,
output: 1.2, "maxTokens": 131072,
cacheRead: 0.06, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 1.2,
}, "cacheRead": 0.06,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.6-plus', "modelId": "qwen3.6-plus",
name: 'Qwen3.6 Plus', "name": "Qwen3.6 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.5, "contextWindow": 1000000,
output: 3, "maxTokens": 65536,
cacheRead: 0.05, "cost": {
cacheWrite: 0.625, "input": 0.5,
}, "output": 3,
}, "cacheRead": 0.05,
"cacheWrite": 0.625
}
}
}, },
{ {
modelId: 'qwen3.7-max', "modelId": "qwen3.7-max",
name: 'Qwen3.7 Max', "name": "Qwen3.7 Max",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 1000000,
input: 2.5, "maxTokens": 65536,
output: 7.5, "cost": {
cacheRead: 0.5, "input": 2.5,
cacheWrite: 3.125, "output": 7.5,
}, "cacheRead": 0.5,
}, "cacheWrite": 3.125
}
}
}, },
{ {
modelId: 'qwen3.7-plus', "modelId": "qwen3.7-plus",
name: 'Qwen3.7 Plus', "name": "Qwen3.7 Plus",
config: { "config": {
api: 'anthropic-messages', "api": "anthropic-messages",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.4, "contextWindow": 1000000,
output: 1.6, "maxTokens": 65536,
cacheRead: 0.04, "cost": {
cacheWrite: 0.5, "input": 0.4,
}, "output": 1.6,
}, "cacheRead": 0.04,
}, "cacheWrite": 0.5
], }
}
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,269 +1,306 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'qwen-token-plan-cn' export const providerName = "qwen-token-plan-cn"
export const providerConfig = { export const providerConfig = {
name: 'qwen-token-plan-cn', "name": "qwen-token-plan-cn",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1', "baseUrl": "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'MiniMax-M2.5', "modelId": "MiniMax-M2.5",
name: 'MiniMax-M2.5', "name": "MiniMax-M2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 196608, "text"
maxTokens: 24576, ],
cost: { "contextWindow": 196608,
input: 0, "maxTokens": 24576,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v3.2', "modelId": "deepseek-v3.2",
name: 'DeepSeek V3.2', "name": "DeepSeek V3.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 65536,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-flash', "modelId": "deepseek-v4-flash",
name: 'DeepSeek V4 Flash', "name": "DeepSeek V4 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 384000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-pro', "modelId": "deepseek-v4-pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 384000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5', "modelId": "glm-5",
name: 'GLM-5', "name": "GLM-5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 202752,
input: 0, "maxTokens": 16384,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.1', "modelId": "glm-5.1",
name: 'GLM-5.1', "name": "GLM-5.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 128000, ],
cost: { "contextWindow": 202752,
input: 0, "maxTokens": 128000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.2', "modelId": "glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.5', "modelId": "kimi-k2.5",
name: 'Kimi K2.5', "name": "Kimi K2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 32768,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.6', "modelId": "kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code', "modelId": "kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 262144,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.6-flash', "modelId": "qwen3.6-flash",
name: 'Qwen3.6 Flash', "name": "Qwen3.6 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.6-plus', "modelId": "qwen3.6-plus",
name: 'Qwen3.6 Plus', "name": "Qwen3.6 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.7-max', "modelId": "qwen3.7-max",
name: 'Qwen3.7 Max', "name": "Qwen3.7 Max",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 65536,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.7-plus', "modelId": "qwen3.7-plus",
name: 'Qwen3.7 Plus', "name": "Qwen3.7 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 64000,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.8-max-preview', "modelId": "qwen3.8-max-preview",
name: 'Qwen3.8 Max Preview', "name": "Qwen3.8 Max Preview",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
@@ -1,269 +1,306 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'qwen-token-plan' export const providerName = "qwen-token-plan"
export const providerConfig = { export const providerConfig = {
name: 'qwen-token-plan', "name": "qwen-token-plan",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1', "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'MiniMax-M2.5', "modelId": "MiniMax-M2.5",
name: 'MiniMax-M2.5', "name": "MiniMax-M2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 196608, "text"
maxTokens: 24576, ],
cost: { "contextWindow": 196608,
input: 0, "maxTokens": 24576,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v3.2', "modelId": "deepseek-v3.2",
name: 'DeepSeek V3.2', "name": "DeepSeek V3.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 65536,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-flash', "modelId": "deepseek-v4-flash",
name: 'DeepSeek V4 Flash', "name": "DeepSeek V4 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 384000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-v4-pro', "modelId": "deepseek-v4-pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 384000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5', "modelId": "glm-5",
name: 'GLM-5', "name": "GLM-5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 16384, ],
cost: { "contextWindow": 202752,
input: 0, "maxTokens": 16384,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.1', "modelId": "glm-5.1",
name: 'GLM-5.1', "name": "GLM-5.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 128000, ],
cost: { "contextWindow": 202752,
input: 0, "maxTokens": 128000,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.2', "modelId": "glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.5', "modelId": "kimi-k2.5",
name: 'Kimi K2.5', "name": "Kimi K2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 32768, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 32768,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.6', "modelId": "kimi-k2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 16384, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 16384,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'kimi-k2.7-code', "modelId": "kimi-k2.7-code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 262144, "image"
cost: { ],
input: 0, "contextWindow": 262144,
output: 0, "maxTokens": 262144,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.6-flash', "modelId": "qwen3.6-flash",
name: 'Qwen3.6 Flash', "name": "Qwen3.6 Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.6-plus', "modelId": "qwen3.6-plus",
name: 'Qwen3.6 Plus', "name": "Qwen3.6 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.7-max', "modelId": "qwen3.7-max",
name: 'Qwen3.7 Max', "name": "Qwen3.7 Max",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 65536,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.7-plus', "modelId": "qwen3.7-plus",
name: 'Qwen3.7 Plus', "name": "Qwen3.7 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 64000, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 64000,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'qwen3.8-max-preview', "modelId": "qwen3.8-max-preview",
name: 'Qwen3.8 Max Preview', "name": "Qwen3.8 Max Preview",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 1000000,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
+286 -249
View File
@@ -1,286 +1,323 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'together' export const providerName = "together"
export const providerConfig = { export const providerConfig = {
name: 'together', "name": "together",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.together.ai/v1', "baseUrl": "https://api.together.ai/v1",
apiKey: 'TOGETHER_API_KEY', "apiKey": "TOGETHER_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'MiniMaxAI/MiniMax-M2.7', "modelId": "MiniMaxAI/MiniMax-M2.7",
name: 'MiniMax-M2.7', "name": "MiniMax-M2.7",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 202752, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 202752,
input: 0.3, "maxTokens": 131072,
output: 1.2, "cost": {
cacheRead: 0.06, "input": 0.3,
cacheWrite: 0, "output": 1.2,
}, "cacheRead": 0.06,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'MiniMaxAI/MiniMax-M3', "modelId": "MiniMaxAI/MiniMax-M3",
name: 'MiniMax-M3', "name": "MiniMax-M3",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 524288, "text",
maxTokens: 250000, "image"
cost: { ],
input: 0.3, "contextWindow": 524288,
output: 1.2, "maxTokens": 250000,
cacheRead: 0.06, "cost": {
cacheWrite: 0, "input": 0.3,
}, "output": 1.2,
}, "cacheRead": 0.06,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'Qwen/Qwen2.5-7B-Instruct-Turbo', "modelId": "Qwen/Qwen2.5-7B-Instruct-Turbo",
name: 'Qwen 2.5 7B Instruct Turbo', "name": "Qwen 2.5 7B Instruct Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 32768, "text"
maxTokens: 32768, ],
cost: { "contextWindow": 32768,
input: 0.3, "maxTokens": 32768,
output: 0.3, "cost": {
cacheRead: 0, "input": 0.3,
cacheWrite: 0, "output": 0.3,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'Qwen/Qwen3.5-9B', "modelId": "Qwen/Qwen3.5-9B",
name: 'Qwen3.5 9B', "name": "Qwen3.5 9B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 65536, "image"
cost: { ],
input: 0.17, "contextWindow": 262144,
output: 0.25, "maxTokens": 65536,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.17,
}, "output": 0.25,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'Qwen/Qwen3.6-Plus', "modelId": "Qwen/Qwen3.6-Plus",
name: 'Qwen3.6 Plus', "name": "Qwen3.6 Plus",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 500000, ],
cost: { "contextWindow": 1000000,
input: 0.5, "maxTokens": 500000,
output: 3, "cost": {
cacheRead: 0, "input": 0.5,
cacheWrite: 0, "output": 3,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'Qwen/Qwen3.7-Max', "modelId": "Qwen/Qwen3.7-Max",
name: 'Qwen3.7 Max', "name": "Qwen3.7 Max",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 500000, ],
cost: { "contextWindow": 1000000,
input: 1.25, "maxTokens": 500000,
output: 3.75, "cost": {
cacheRead: 0, "input": 1.25,
cacheWrite: 0, "output": 3.75,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'deepseek-ai/DeepSeek-V4-Pro', "modelId": "deepseek-ai/DeepSeek-V4-Pro",
name: 'DeepSeek V4 Pro', "name": "DeepSeek V4 Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 512000, "text"
maxTokens: 384000, ],
cost: { "contextWindow": 512000,
input: 1.74, "maxTokens": 384000,
output: 3.48, "cost": {
cacheRead: 0.2, "input": 1.74,
cacheWrite: 0, "output": 3.48,
}, "cacheRead": 0.2,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'google/gemma-4-31B-it', "modelId": "google/gemma-4-31B-it",
name: 'Gemma 4 31B Instruct', "name": "Gemma 4 31B Instruct",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0.39, "contextWindow": 262144,
output: 0.97, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0.39,
}, "output": 0.97,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'meta-llama/Llama-3.3-70B-Instruct-Turbo', "modelId": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
name: 'Llama 3.3 70B', "name": "Llama 3.3 70B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: false, "reasoning": false,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 1.04, "maxTokens": 131072,
output: 1.04, "cost": {
cacheRead: 0, "input": 1.04,
cacheWrite: 0, "output": 1.04,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'moonshotai/Kimi-K2.6', "modelId": "moonshotai/Kimi-K2.6",
name: 'Kimi K2.6', "name": "Kimi K2.6",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 131000, "image"
cost: { ],
input: 1.2, "contextWindow": 262144,
output: 4.5, "maxTokens": 131000,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 1.2,
}, "output": 4.5,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'moonshotai/Kimi-K2.7-Code', "modelId": "moonshotai/Kimi-K2.7-Code",
name: 'Kimi K2.7 Code', "name": "Kimi K2.7 Code",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 262144,
input: 0.95, "maxTokens": 131072,
output: 4, "cost": {
cacheRead: 0.19, "input": 0.95,
cacheWrite: 0, "output": 4,
}, "cacheRead": 0.19,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'nvidia/nemotron-3-ultra-550b-a55b', "modelId": "nvidia/nemotron-3-ultra-550b-a55b",
name: 'Nemotron 3 Ultra 550B A55B', "name": "Nemotron 3 Ultra 550B A55B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 512300, "text"
maxTokens: 512300, ],
cost: { "contextWindow": 512300,
input: 0.6, "maxTokens": 512300,
output: 3.6, "cost": {
cacheRead: 0.2, "input": 0.6,
cacheWrite: 0, "output": 3.6,
}, "cacheRead": 0.2,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-120b', "modelId": "openai/gpt-oss-120b",
name: 'GPT OSS 120B', "name": "GPT OSS 120B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0.15, "maxTokens": 131072,
output: 0.6, "cost": {
cacheRead: 0, "input": 0.15,
cacheWrite: 0, "output": 0.6,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'openai/gpt-oss-20b', "modelId": "openai/gpt-oss-20b",
name: 'GPT OSS 20B', "name": "GPT OSS 20B",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 131072,
input: 0.05, "maxTokens": 131072,
output: 0.2, "cost": {
cacheRead: 0, "input": 0.05,
cacheWrite: 0, "output": 0.2,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'thinkingmachines/Inkling', "modelId": "thinkingmachines/Inkling",
name: 'Inkling', "name": "Inkling",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 524288, "text",
maxTokens: 131072, "image"
cost: { ],
input: 1, "contextWindow": 524288,
output: 4.05, "maxTokens": 131072,
cacheRead: 0.17, "cost": {
cacheWrite: 0, "input": 1,
}, "output": 4.05,
}, "cacheRead": 0.17,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'zai-org/GLM-5.2', "modelId": "zai-org/GLM-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 164000, ],
cost: { "contextWindow": 262144,
input: 1.4, "maxTokens": 164000,
output: 4.4, "cost": {
cacheRead: 0.26, "input": 1.4,
cacheWrite: 0, "output": 4.4,
}, "cacheRead": 0.26,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
File diff suppressed because it is too large Load Diff
+63 -54
View File
@@ -1,65 +1,74 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'xai' export const providerName = "xai"
export const providerConfig = { export const providerConfig = {
name: 'xai', "name": "xai",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.x.ai/v1', "baseUrl": "https://api.x.ai/v1",
apiKey: 'XAI_API_KEY', "apiKey": "XAI_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'grok-4.3', "modelId": "grok-4.3",
name: 'Grok 4.3', "name": "Grok 4.3",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1000000, "text",
maxTokens: 30000, "image"
cost: { ],
input: 1.25, "contextWindow": 1000000,
output: 2.5, "maxTokens": 30000,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 1.25,
}, "output": 2.5,
}, "cacheRead": 0.2,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'grok-4.5', "modelId": "grok-4.5",
name: 'Grok 4.5', "name": "Grok 4.5",
config: { "config": {
api: 'openai-responses', "api": "openai-responses",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 500000, "text",
maxTokens: 500000, "image"
cost: { ],
input: 2, "contextWindow": 500000,
output: 6, "maxTokens": 500000,
cacheRead: 0.3, "cost": {
cacheWrite: 0, "input": 2,
}, "output": 6,
}, "cacheRead": 0.3,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'grok-build-0.1', "modelId": "grok-build-0.1",
name: 'Grok Build 0.1', "name": "Grok Build 0.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 256000, "text",
maxTokens: 256000, "image"
cost: { ],
input: 1, "contextWindow": 256000,
output: 2, "maxTokens": 256000,
cacheRead: 0.2, "cost": {
cacheWrite: 0, "input": 1,
}, "output": 2,
}, "cacheRead": 0.2,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'xiaomi-token-plan-ams' export const providerName = "xiaomi-token-plan-ams"
export const providerConfig = { export const providerConfig = {
name: 'xiaomi-token-plan-ams', "name": "xiaomi-token-plan-ams",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://token-plan-ams.xiaomimimo.com/v1', "baseUrl": "https://token-plan-ams.xiaomimimo.com/v1",
apiKey: 'XIAOMI_TOKEN_PLAN_AMS_API_KEY', "apiKey": "XIAOMI_TOKEN_PLAN_AMS_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'mimo-v2-pro', "modelId": "mimo-v2-pro",
name: 'MiMo-V2-Pro', "name": "MiMo-V2-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5', "modelId": "mimo-v2.5",
name: 'MiMo-V2.5', "name": "MiMo-V2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 1048576,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro', "modelId": "mimo-v2.5-pro",
name: 'MiMo-V2.5-Pro', "name": "MiMo-V2.5-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'xiaomi-token-plan-cn' export const providerName = "xiaomi-token-plan-cn"
export const providerConfig = { export const providerConfig = {
name: 'xiaomi-token-plan-cn', "name": "xiaomi-token-plan-cn",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://token-plan-cn.xiaomimimo.com/v1', "baseUrl": "https://token-plan-cn.xiaomimimo.com/v1",
apiKey: 'XIAOMI_TOKEN_PLAN_CN_API_KEY', "apiKey": "XIAOMI_TOKEN_PLAN_CN_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'mimo-v2-pro', "modelId": "mimo-v2-pro",
name: 'MiMo-V2-Pro', "name": "MiMo-V2-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5', "modelId": "mimo-v2.5",
name: 'MiMo-V2.5', "name": "MiMo-V2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 1048576,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro', "modelId": "mimo-v2.5-pro",
name: 'MiMo-V2.5-Pro', "name": "MiMo-V2.5-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
@@ -1,65 +1,72 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'xiaomi-token-plan-sgp' export const providerName = "xiaomi-token-plan-sgp"
export const providerConfig = { export const providerConfig = {
name: 'xiaomi-token-plan-sgp', "name": "xiaomi-token-plan-sgp",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://token-plan-sgp.xiaomimimo.com/v1', "baseUrl": "https://token-plan-sgp.xiaomimimo.com/v1",
apiKey: 'XIAOMI_TOKEN_PLAN_SGP_API_KEY', "apiKey": "XIAOMI_TOKEN_PLAN_SGP_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'mimo-v2-pro', "modelId": "mimo-v2-pro",
name: 'MiMo-V2-Pro', "name": "MiMo-V2-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5', "modelId": "mimo-v2.5",
name: 'MiMo-V2.5', "name": "MiMo-V2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 1048576,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro', "modelId": "mimo-v2.5-pro",
name: 'MiMo-V2.5-Pro', "name": "MiMo-V2.5-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
+113 -99
View File
@@ -1,116 +1,130 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'xiaomi' export const providerName = "xiaomi"
export const providerConfig = { export const providerConfig = {
name: 'xiaomi', "name": "xiaomi",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.xiaomimimo.com/v1', "baseUrl": "https://api.xiaomimimo.com/v1",
apiKey: 'XIAOMI_API_KEY', "apiKey": "XIAOMI_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'mimo-v2-flash', "modelId": "mimo-v2-flash",
name: 'MiMo-V2-Flash', "name": "MiMo-V2-Flash",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 262144, "text"
maxTokens: 65536, ],
cost: { "contextWindow": 262144,
input: 0.14, "maxTokens": 65536,
output: 0.28, "cost": {
cacheRead: 0.0028, "input": 0.14,
cacheWrite: 0, "output": 0.28,
}, "cacheRead": 0.0028,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2-omni', "modelId": "mimo-v2-omni",
name: 'MiMo-V2-Omni', "name": "MiMo-V2-Omni",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 262144, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0.14, "contextWindow": 262144,
output: 0.28, "maxTokens": 131072,
cacheRead: 0.0028, "cost": {
cacheWrite: 0, "input": 0.14,
}, "output": 0.28,
}, "cacheRead": 0.0028,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2-pro', "modelId": "mimo-v2-pro",
name: 'MiMo-V2-Pro', "name": "MiMo-V2-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0.435, "maxTokens": 131072,
output: 0.87, "cost": {
cacheRead: 0.0036, "input": 0.435,
cacheWrite: 0, "output": 0.87,
}, "cacheRead": 0.0036,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5', "modelId": "mimo-v2.5",
name: 'MiMo-V2.5', "name": "MiMo-V2.5",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 1048576, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0.14, "contextWindow": 1048576,
output: 0.28, "maxTokens": 131072,
cacheRead: 0.0028, "cost": {
cacheWrite: 0, "input": 0.14,
}, "output": 0.28,
}, "cacheRead": 0.0028,
"cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro', "modelId": "mimo-v2.5-pro",
name: 'MiMo-V2.5-Pro', "name": "MiMo-V2.5-Pro",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 0.435, "maxTokens": 131072,
output: 0.87, "cost": {
cacheRead: 0.0036, "input": 0.435,
cacheWrite: 0, "output": 0.87,
}, "cacheRead": 0.0036,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'mimo-v2.5-pro-ultraspeed', "modelId": "mimo-v2.5-pro-ultraspeed",
name: 'MiMo-V2.5-Pro-UltraSpeed', "name": "MiMo-V2.5-Pro-UltraSpeed",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1048576, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1048576,
input: 1.305, "maxTokens": 131072,
output: 2.61, "cost": {
cacheRead: 0.0108, "input": 1.305,
cacheWrite: 0, "output": 2.61,
}, "cacheRead": 0.0108,
}, "cacheWrite": 0
}, }
], }
}
]
} as const } as const
@@ -1,116 +1,129 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'zai-coding-cn' export const providerName = "zai-coding-cn"
export const providerConfig = { export const providerConfig = {
name: 'zai-coding-cn', "name": "zai-coding-cn",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://open.bigmodel.cn/api/coding/paas/v4', "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
apiKey: '', "apiKey": ""
}, },
models: [ "models": [
{ {
modelId: 'glm-4.5-air', "modelId": "glm-4.5-air",
name: 'GLM-4.5-Air', "name": "GLM-4.5-Air",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 98304, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 98304,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-4.7', "modelId": "glm-4.7",
name: 'GLM-4.7', "name": "GLM-4.7",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5-turbo', "modelId": "glm-5-turbo",
name: 'GLM-5-Turbo', "name": "GLM-5-Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 200000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 200000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.1', "modelId": "glm-5.1",
name: 'GLM-5.1', "name": "GLM-5.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 200000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 200000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.2', "modelId": "glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5v-turbo', "modelId": "glm-5v-turbo",
name: 'GLM-5V-Turbo', "name": "GLM-5V-Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 200000,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const
+112 -99
View File
@@ -1,116 +1,129 @@
// This file is auto-generated by scripts/generate-builtin-providers.ts // This file is auto-generated by scripts/generate-builtin-providers.ts
// Do not edit manually - run 'bun run generate-providers' to update // Do not edit manually - run 'bun run generate-providers' to update
export const providerName = 'zai' export const providerName = "zai"
export const providerConfig = { export const providerConfig = {
name: 'zai', "name": "zai",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
baseUrl: 'https://api.z.ai/api/coding/paas/v4', "baseUrl": "https://api.z.ai/api/coding/paas/v4",
apiKey: 'ZAI_API_KEY', "apiKey": "ZAI_API_KEY"
}, },
models: [ "models": [
{ {
modelId: 'glm-4.5-air', "modelId": "glm-4.5-air",
name: 'GLM-4.5-Air', "name": "GLM-4.5-Air",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 131072, "text"
maxTokens: 98304, ],
cost: { "contextWindow": 131072,
input: 0, "maxTokens": 98304,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-4.7', "modelId": "glm-4.7",
name: 'GLM-4.7', "name": "GLM-4.7",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 204800, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 204800,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5-turbo', "modelId": "glm-5-turbo",
name: 'GLM-5-Turbo', "name": "GLM-5-Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 200000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 200000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.1', "modelId": "glm-5.1",
name: 'GLM-5.1', "name": "GLM-5.1",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 200000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 200000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5.2', "modelId": "glm-5.2",
name: 'GLM-5.2', "name": "GLM-5.2",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text'], "input": [
contextWindow: 1000000, "text"
maxTokens: 131072, ],
cost: { "contextWindow": 1000000,
input: 0, "maxTokens": 131072,
output: 0, "cost": {
cacheRead: 0, "input": 0,
cacheWrite: 0, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
}
}
}, },
{ {
modelId: 'glm-5v-turbo', "modelId": "glm-5v-turbo",
name: 'GLM-5V-Turbo', "name": "GLM-5V-Turbo",
config: { "config": {
api: 'openai-completions', "api": "openai-completions",
reasoning: true, "reasoning": true,
input: ['text', 'image'], "input": [
contextWindow: 200000, "text",
maxTokens: 131072, "image"
cost: { ],
input: 0, "contextWindow": 200000,
output: 0, "maxTokens": 131072,
cacheRead: 0, "cost": {
cacheWrite: 0, "input": 0,
}, "output": 0,
}, "cacheRead": 0,
}, "cacheWrite": 0
], }
}
}
]
} as const } as const