mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
refactor(core): replace generated provider files with pi-ai dynamic methods
This commit is contained in:
@@ -1,80 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
import { providerConfig as openai } from './providers/openai'
|
||||
import { providerConfig as anthropic } from './providers/anthropic'
|
||||
import { providerConfig as google } from './providers/google'
|
||||
import { providerConfig as deepseek } from './providers/deepseek'
|
||||
import { providerConfig as groq } from './providers/groq'
|
||||
import { providerConfig as openrouter } from './providers/openrouter'
|
||||
import { providerConfig as mistral } from './providers/mistral'
|
||||
import { providerConfig as amazonBedrock } from './providers/amazon-bedrock'
|
||||
import { providerConfig as antLing } from './providers/ant-ling'
|
||||
import { providerConfig as azureOpenaiResponses } from './providers/azure-openai-responses'
|
||||
import { providerConfig as cerebras } from './providers/cerebras'
|
||||
import { providerConfig as cloudflareAiGateway } from './providers/cloudflare-ai-gateway'
|
||||
import { providerConfig as cloudflareWorkersAi } from './providers/cloudflare-workers-ai'
|
||||
import { providerConfig as fireworks } from './providers/fireworks'
|
||||
import { providerConfig as githubCopilot } from './providers/github-copilot'
|
||||
import { providerConfig as googleVertex } from './providers/google-vertex'
|
||||
import { providerConfig as huggingface } from './providers/huggingface'
|
||||
import { providerConfig as kimiCoding } from './providers/kimi-coding'
|
||||
import { providerConfig as minimax } from './providers/minimax'
|
||||
import { providerConfig as minimaxCn } from './providers/minimax-cn'
|
||||
import { providerConfig as moonshotai } from './providers/moonshotai'
|
||||
import { providerConfig as moonshotaiCn } from './providers/moonshotai-cn'
|
||||
import { providerConfig as nvidia } from './providers/nvidia'
|
||||
import { providerConfig as openaiCodex } from './providers/openai-codex'
|
||||
import { providerConfig as opencode } from './providers/opencode'
|
||||
import { providerConfig as opencodeGo } from './providers/opencode-go'
|
||||
import { providerConfig as qwenTokenPlan } from './providers/qwen-token-plan'
|
||||
import { providerConfig as qwenTokenPlanCn } from './providers/qwen-token-plan-cn'
|
||||
import { providerConfig as together } from './providers/together'
|
||||
import { providerConfig as vercelAiGateway } from './providers/vercel-ai-gateway'
|
||||
import { providerConfig as xai } from './providers/xai'
|
||||
import { providerConfig as xiaomi } from './providers/xiaomi'
|
||||
import { providerConfig as xiaomiTokenPlanAms } from './providers/xiaomi-token-plan-ams'
|
||||
import { providerConfig as xiaomiTokenPlanCn } from './providers/xiaomi-token-plan-cn'
|
||||
import { providerConfig as xiaomiTokenPlanSgp } from './providers/xiaomi-token-plan-sgp'
|
||||
import { providerConfig as zai } from './providers/zai'
|
||||
import { providerConfig as zaiCodingCn } from './providers/zai-coding-cn'
|
||||
|
||||
export const builtinProviders: Record<string, any> = {
|
||||
openai,
|
||||
anthropic,
|
||||
google,
|
||||
deepseek,
|
||||
groq,
|
||||
openrouter,
|
||||
mistral,
|
||||
"amazon-bedrock": amazonBedrock,
|
||||
"ant-ling": antLing,
|
||||
"azure-openai-responses": azureOpenaiResponses,
|
||||
cerebras,
|
||||
"cloudflare-ai-gateway": cloudflareAiGateway,
|
||||
"cloudflare-workers-ai": cloudflareWorkersAi,
|
||||
fireworks,
|
||||
"github-copilot": githubCopilot,
|
||||
"google-vertex": googleVertex,
|
||||
huggingface,
|
||||
"kimi-coding": kimiCoding,
|
||||
minimax,
|
||||
"minimax-cn": minimaxCn,
|
||||
moonshotai,
|
||||
"moonshotai-cn": moonshotaiCn,
|
||||
nvidia,
|
||||
"openai-codex": openaiCodex,
|
||||
opencode,
|
||||
"opencode-go": opencodeGo,
|
||||
"qwen-token-plan": qwenTokenPlan,
|
||||
"qwen-token-plan-cn": qwenTokenPlanCn,
|
||||
together,
|
||||
"vercel-ai-gateway": vercelAiGateway,
|
||||
xai,
|
||||
xiaomi,
|
||||
"xiaomi-token-plan-ams": xiaomiTokenPlanAms,
|
||||
"xiaomi-token-plan-cn": xiaomiTokenPlanCn,
|
||||
"xiaomi-token-plan-sgp": xiaomiTokenPlanSgp,
|
||||
zai,
|
||||
"zai-coding-cn": zaiCodingCn,
|
||||
} as unknown as Record<string, any>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,71 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "ant-ling"
|
||||
export const providerConfig = {
|
||||
"name": "ant-ling",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.ant-ling.com/v1",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "Ling-2.6-1T",
|
||||
"name": "Ling 2.6 1T",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.06,
|
||||
"output": 0.25,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Ling-2.6-flash",
|
||||
"name": "Ling 2.6 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.01,
|
||||
"output": 0.02,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Ring-2.6-1T",
|
||||
"name": "Ring 2.6 1T",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.06,
|
||||
"output": 0.25,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,294 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "anthropic"
|
||||
export const providerConfig = {
|
||||
"name": "anthropic",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://api.anthropic.com",
|
||||
"apiKey": "ANTHROPIC_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "claude-fable-5",
|
||||
"name": "Claude Fable 5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 50,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-haiku-4-5",
|
||||
"name": "Claude Haiku 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 5,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-haiku-4-5-20251001",
|
||||
"name": "Claude Haiku 4.5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 5,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-1",
|
||||
"name": "Claude Opus 4.1 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 75,
|
||||
"cacheRead": 1.5,
|
||||
"cacheWrite": 18.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-1-20250805",
|
||||
"name": "Claude Opus 4.1",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 75,
|
||||
"cacheRead": 1.5,
|
||||
"cacheWrite": 18.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-5",
|
||||
"name": "Claude Opus 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-5-20251101",
|
||||
"name": "Claude Opus 4.5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-6",
|
||||
"name": "Claude Opus 4.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-7",
|
||||
"name": "Claude Opus 4.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-8",
|
||||
"name": "Claude Opus 4.8",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4-5",
|
||||
"name": "Claude Sonnet 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4-5-20250929",
|
||||
"name": "Claude Sonnet 4.5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4-6",
|
||||
"name": "Claude Sonnet 4.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-5",
|
||||
"name": "Claude Sonnet 5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 10,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,932 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "azure-openai-responses"
|
||||
export const providerConfig = {
|
||||
"name": "azure-openai-responses",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"baseUrl": "",
|
||||
"apiKey": "AZURE_OPENAI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gpt-4",
|
||||
"name": "GPT-4",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 8192,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 60,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4-turbo",
|
||||
"name": "GPT-4 Turbo",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 30,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1",
|
||||
"name": "GPT-4.1",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1-mini",
|
||||
"name": "GPT-4.1 mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 1.6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1-nano",
|
||||
"name": "GPT-4.1 nano",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o",
|
||||
"name": "GPT-4o",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-05-13",
|
||||
"name": "GPT-4o (2024-05-13)",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 15,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-08-06",
|
||||
"name": "GPT-4o (2024-08-06)",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-11-20",
|
||||
"name": "GPT-4o (2024-11-20)",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-mini",
|
||||
"name": "GPT-4o mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5",
|
||||
"name": "GPT-5",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-chat-latest",
|
||||
"name": "GPT-5 Chat Latest",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-codex",
|
||||
"name": "GPT-5-Codex",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-mini",
|
||||
"name": "GPT-5 Mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-nano",
|
||||
"name": "GPT-5 Nano",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.05,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.005,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-pro",
|
||||
"name": "GPT-5 Pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 120,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1",
|
||||
"name": "GPT-5.1",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-chat-latest",
|
||||
"name": "GPT-5.1 Chat",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex",
|
||||
"name": "GPT-5.1 Codex",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex-max",
|
||||
"name": "GPT-5.1 Codex Max",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex-mini",
|
||||
"name": "GPT-5.1 Codex mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2",
|
||||
"name": "GPT-5.2",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-chat-latest",
|
||||
"name": "GPT-5.2 Chat",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-codex",
|
||||
"name": "GPT-5.2 Codex",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-pro",
|
||||
"name": "GPT-5.2 Pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 21,
|
||||
"output": 168,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-chat-latest",
|
||||
"name": "GPT-5.3 Chat (latest)",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex",
|
||||
"name": "GPT-5.3 Codex",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex-spark",
|
||||
"name": "GPT-5.3 Codex Spark",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4",
|
||||
"name": "GPT-5.4",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-mini",
|
||||
"name": "GPT-5.4 mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.75,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-nano",
|
||||
"name": "GPT-5.4 nano",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 1.25,
|
||||
"cacheRead": 0.02,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-pro",
|
||||
"name": "GPT-5.4 Pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 180,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5",
|
||||
"name": "GPT-5.5",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5-pro",
|
||||
"name": "GPT-5.5 Pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 180,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-luna",
|
||||
"name": "GPT-5.6 Luna",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-sol",
|
||||
"name": "GPT-5.6 Sol",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-terra",
|
||||
"name": "GPT-5.6 Terra",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 3.125
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-realtime-2.1",
|
||||
"name": "GPT-Realtime-2.1",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 4,
|
||||
"output": 24,
|
||||
"cacheRead": 0.4,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o1",
|
||||
"name": "o1",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 60,
|
||||
"cacheRead": 7.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o1-pro",
|
||||
"name": "o1-pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 150,
|
||||
"output": 600,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3",
|
||||
"name": "o3",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-deep-research",
|
||||
"name": "o3-deep-research",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 40,
|
||||
"cacheRead": 2.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-mini",
|
||||
"name": "o3-mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.55,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-pro",
|
||||
"name": "o3-pro",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 20,
|
||||
"output": 80,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o4-mini",
|
||||
"name": "o4-mini",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.275,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o4-mini-deep-research",
|
||||
"name": "o4-mini-deep-research",
|
||||
"config": {
|
||||
"api": "azure-openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "cerebras"
|
||||
export const providerConfig = {
|
||||
"name": "cerebras",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.cerebras.ai/v1",
|
||||
"apiKey": "CEREBRAS_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gemma-4-31b",
|
||||
"name": "Gemma 4 31B IT",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 40960,
|
||||
"cost": {
|
||||
"input": 0.99,
|
||||
"output": 1.49,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 40960,
|
||||
"cost": {
|
||||
"input": 0.35,
|
||||
"output": 0.75,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-glm-4.7",
|
||||
"name": "Z.AI GLM-4.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 40960,
|
||||
"cost": {
|
||||
"input": 2.25,
|
||||
"output": 2.75,
|
||||
"cacheRead": 2.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,849 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "cloudflare-ai-gateway"
|
||||
export const providerConfig = {
|
||||
"name": "cloudflare-ai-gateway",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",
|
||||
"apiKey": "CLOUDFLARE_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "claude-3-5-haiku",
|
||||
"name": "Claude Haiku 3.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0.8,
|
||||
"output": 4,
|
||||
"cacheRead": 0.08,
|
||||
"cacheWrite": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-3-haiku",
|
||||
"name": "Claude Haiku 3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.25,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0.3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-3-opus",
|
||||
"name": "Claude Opus 3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 75,
|
||||
"cacheRead": 1.5,
|
||||
"cacheWrite": 18.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-3-sonnet",
|
||||
"name": "Claude Sonnet 3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0.3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-3.5-haiku",
|
||||
"name": "Claude Haiku 3.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0.8,
|
||||
"output": 4,
|
||||
"cacheRead": 0.08,
|
||||
"cacheWrite": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-3.5-sonnet",
|
||||
"name": "Claude Sonnet 3.5 v2",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-fable-5",
|
||||
"name": "Claude Fable 5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 50,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-haiku-4-5",
|
||||
"name": "Claude Haiku 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 5,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4",
|
||||
"name": "Claude Opus 4 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 75,
|
||||
"cacheRead": 1.5,
|
||||
"cacheWrite": 18.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-1",
|
||||
"name": "Claude Opus 4.1 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 75,
|
||||
"cacheRead": 1.5,
|
||||
"cacheWrite": 18.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-5",
|
||||
"name": "Claude Opus 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-6",
|
||||
"name": "Claude Opus 4.6 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-7",
|
||||
"name": "Claude Opus 4.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4-8",
|
||||
"name": "Claude Opus 4.8",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4",
|
||||
"name": "Claude Sonnet 4 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4-5",
|
||||
"name": "Claude Sonnet 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4-6",
|
||||
"name": "Claude Sonnet 4.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-5",
|
||||
"name": "Claude Sonnet 5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 10,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4",
|
||||
"name": "GPT-4",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 8192,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 60,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4-turbo",
|
||||
"name": "GPT-4 Turbo",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 30,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o",
|
||||
"name": "GPT-4o",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-mini",
|
||||
"name": "GPT-4o mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.08,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1",
|
||||
"name": "GPT-5.1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.13,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex",
|
||||
"name": "GPT-5.1 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2",
|
||||
"name": "GPT-5.2",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-codex",
|
||||
"name": "GPT-5.2 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex",
|
||||
"name": "GPT-5.3 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4",
|
||||
"name": "GPT-5.4",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5",
|
||||
"name": "GPT-5.5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-luna",
|
||||
"name": "GPT-5.6 Luna",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-sol",
|
||||
"name": "GPT-5.6 Sol",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-terra",
|
||||
"name": "GPT-5.6 Terra",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o1",
|
||||
"name": "o1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 60,
|
||||
"cacheRead": 7.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3",
|
||||
"name": "o3",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-mini",
|
||||
"name": "o3-mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.55,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-pro",
|
||||
"name": "o3-pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 20,
|
||||
"output": 80,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o4-mini",
|
||||
"name": "o4-mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.28,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "workers-ai/@cf/moonshotai/kimi-k2.5",
|
||||
"name": "Kimi K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "workers-ai/@cf/moonshotai/kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b",
|
||||
"name": "Nemotron 3 Super 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "workers-ai/@cf/zai-org/glm-4.7-flash",
|
||||
"name": "GLM-4.7-Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.06,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "workers-ai/@cf/zai-org/glm-5.2",
|
||||
"name": "Glm 5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,265 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "cloudflare-workers-ai"
|
||||
export const providerConfig = {
|
||||
"name": "cloudflare-workers-ai",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",
|
||||
"apiKey": "CLOUDFLARE_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "@cf/google/gemma-4-26b-a4b-it",
|
||||
"name": "Gemma 4 26B A4B IT",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/ibm-granite/granite-4.0-h-micro",
|
||||
"name": "Granite 4.0 H Micro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131000,
|
||||
"maxTokens": 131000,
|
||||
"cost": {
|
||||
"input": 0.017,
|
||||
"output": 0.112,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
||||
"name": "Llama 3.3 70B Instruct fp8 Fast",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 24000,
|
||||
"maxTokens": 24000,
|
||||
"cost": {
|
||||
"input": 0.293,
|
||||
"output": 2.253,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/meta/llama-4-scout-17b-16e-instruct",
|
||||
"name": "Llama 4 Scout 17B 16E Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 131000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.27,
|
||||
"output": 0.85,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/mistralai/mistral-small-3.1-24b-instruct",
|
||||
"name": "Mistral Small 3.1 24B Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.351,
|
||||
"output": 0.555,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/moonshotai/kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/moonshotai/kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/nvidia/nemotron-3-120b-a12b",
|
||||
"name": "Nemotron 3 Super 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/openai/gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.35,
|
||||
"output": 0.75,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/openai/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/qwen/qwen3-30b-a3b-fp8",
|
||||
"name": "Qwen3 30B A3b fp8",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 32768,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.0509,
|
||||
"output": 0.335,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/zai-org/glm-4.7-flash",
|
||||
"name": "GLM-4.7-Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.0605,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "@cf/zai-org/glm-5.2",
|
||||
"name": "Glm 5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,52 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "deepseek"
|
||||
export const providerConfig = {
|
||||
"name": "deepseek",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.deepseek.com",
|
||||
"apiKey": "DEEPSEEK_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "deepseek-v4-flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.003625,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,324 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "fireworks"
|
||||
export const providerConfig = {
|
||||
"name": "fireworks",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://api.fireworks.ai/inference",
|
||||
"apiKey": "FIREWORKS_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/deepseek-v4-flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/deepseek-v4-pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 1.74,
|
||||
"output": 3.48,
|
||||
"cacheRead": 0.145,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/glm-5p1",
|
||||
"name": "GLM 5.1",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/glm-5p2",
|
||||
"name": "GLM 5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048575,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.14,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.07,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0.035,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/kimi-k2p6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262000,
|
||||
"maxTokens": 262000,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/kimi-k2p7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262000,
|
||||
"maxTokens": 262000,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/minimax-m2p7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 196608,
|
||||
"maxTokens": 196608,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/minimax-m3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 512000,
|
||||
"maxTokens": 512000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/models/qwen3p7-plus",
|
||||
"name": "Qwen 3.7 Plus",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 1.6,
|
||||
"cacheRead": 0.08,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/routers/glm-5p1-fast",
|
||||
"name": "GLM 5.1 Fast",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 2.8,
|
||||
"output": 8.8,
|
||||
"cacheRead": 0.52,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/routers/glm-5p2-fast",
|
||||
"name": "GLM 5.2 Fast",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048575,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 2.1,
|
||||
"output": 6.6,
|
||||
"cacheRead": 0.21,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/routers/kimi-k2p6-fast",
|
||||
"name": "Kimi K2.6 Fast",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262000,
|
||||
"maxTokens": 262000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/routers/kimi-k2p6-turbo",
|
||||
"name": "Kimi K2.6 Turbo",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262000,
|
||||
"maxTokens": 262000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "accounts/fireworks/routers/kimi-k2p7-code-fast",
|
||||
"name": "Kimi K2.7 Code Fast",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262000,
|
||||
"maxTokens": 262000,
|
||||
"cost": {
|
||||
"input": 1.9,
|
||||
"output": 8,
|
||||
"cacheRead": 0.38,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,627 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "github-copilot"
|
||||
export const providerConfig = {
|
||||
"name": "github-copilot",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.individual.githubcopilot.com",
|
||||
"apiKey": "COPILOT_GITHUB_TOKEN"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "claude-fable-5",
|
||||
"name": "Claude Fable 5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 50,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-haiku-4.5",
|
||||
"name": "Claude Haiku 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 5,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4.5",
|
||||
"name": "Claude Opus 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4.6",
|
||||
"name": "Claude Opus 4.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4.7",
|
||||
"name": "Claude Opus 4.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-opus-4.8",
|
||||
"name": "Claude Opus 4.8",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 25,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4",
|
||||
"name": "Claude Sonnet 4 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 216000,
|
||||
"maxTokens": 16000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4.5",
|
||||
"name": "Claude Sonnet 4.5 (latest)",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-4.6",
|
||||
"name": "Claude Sonnet 4.6",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 3.75
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "claude-sonnet-5",
|
||||
"name": "Claude Sonnet 5",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 10,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-pro",
|
||||
"name": "Gemini 2.5 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3-flash-preview",
|
||||
"name": "Gemini 3 Flash Preview",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 3,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-pro-preview",
|
||||
"name": "Gemini 3.1 Pro Preview",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 200000,
|
||||
"input": 4,
|
||||
"output": 18,
|
||||
"cacheRead": 0.4,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.5-flash",
|
||||
"name": "Gemini 3.5 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 9,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1",
|
||||
"name": "GPT-4.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-mini",
|
||||
"name": "GPT-5 Mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 264000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2",
|
||||
"name": "GPT-5.2",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-codex",
|
||||
"name": "GPT-5.2 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex",
|
||||
"name": "GPT-5.3 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4",
|
||||
"name": "GPT-5.4",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-mini",
|
||||
"name": "GPT-5.4 mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.75,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-nano",
|
||||
"name": "GPT-5.4 nano",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 1.25,
|
||||
"cacheRead": 0.02,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5",
|
||||
"name": "GPT-5.5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-luna",
|
||||
"name": "GPT-5.6 Luna",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 200000,
|
||||
"input": 2,
|
||||
"output": 9,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-sol",
|
||||
"name": "GPT-5.6 Sol",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-terra",
|
||||
"name": "GPT-5.6 Terra",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 3.125,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mai-code-1-flash-picker",
|
||||
"name": "MAI-Code-1-Flash",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.75,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,214 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "google-vertex"
|
||||
export const providerConfig = {
|
||||
"name": "google-vertex",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"baseUrl": "https://{location}-aiplatform.googleapis.com",
|
||||
"apiKey": "GOOGLE_CLOUD_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gemini-2.5-flash",
|
||||
"name": "Gemini 2.5 Flash",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-flash-lite",
|
||||
"name": "Gemini 2.5 Flash-Lite",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-pro",
|
||||
"name": "Gemini 2.5 Pro",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3-flash-preview",
|
||||
"name": "Gemini 3 Flash Preview",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 3,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-flash-lite",
|
||||
"name": "Gemini 3.1 Flash Lite",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-pro-preview",
|
||||
"name": "Gemini 3.1 Pro Preview",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-pro-preview-customtools",
|
||||
"name": "Gemini 3.1 Pro Preview Custom Tools",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.5-flash",
|
||||
"name": "Gemini 3.5 Flash",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 9,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-flash-latest",
|
||||
"name": "Gemini Flash Latest",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 9,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-flash-lite-latest",
|
||||
"name": "Gemini Flash-Lite Latest",
|
||||
"config": {
|
||||
"api": "google-vertex",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,374 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "google"
|
||||
export const providerConfig = {
|
||||
"name": "google",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"baseUrl": "https://generativelanguage.googleapis.com/v1beta",
|
||||
"apiKey": "GEMINI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gemini-2.0-flash",
|
||||
"name": "Gemini 2.0 Flash",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.0-flash-lite",
|
||||
"name": "Gemini 2.0 Flash-Lite",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0.075,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-flash",
|
||||
"name": "Gemini 2.5 Flash",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-flash-lite",
|
||||
"name": "Gemini 2.5 Flash-Lite",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-2.5-pro",
|
||||
"name": "Gemini 2.5 Pro",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3-flash-preview",
|
||||
"name": "Gemini 3 Flash Preview",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 3,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3-pro-preview",
|
||||
"name": "Gemini 3 Pro Preview",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-flash-lite",
|
||||
"name": "Gemini 3.1 Flash Lite",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-flash-lite-preview",
|
||||
"name": "Gemini 3.1 Flash Lite Preview",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-pro-preview",
|
||||
"name": "Gemini 3.1 Pro Preview",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.1-pro-preview-customtools",
|
||||
"name": "Gemini 3.1 Pro Preview Custom Tools",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 12,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.5-flash",
|
||||
"name": "Gemini 3.5 Flash",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 9,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.5-flash-lite",
|
||||
"name": "Gemini 3.5 Flash Lite",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-3.6-flash",
|
||||
"name": "Gemini 3.6 Flash",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 7.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-flash-latest",
|
||||
"name": "Gemini Flash Latest",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 9,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemini-flash-lite-latest",
|
||||
"name": "Gemini Flash-Lite Latest",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemma-4-26b-a4b-it",
|
||||
"name": "Gemma 4 26B A4B IT",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gemma-4-31b-it",
|
||||
"name": "Gemma 4 31B IT",
|
||||
"config": {
|
||||
"api": "google-generative-ai",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,148 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "groq"
|
||||
export const providerConfig = {
|
||||
"name": "groq",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.groq.com/openai/v1",
|
||||
"apiKey": "GROQ_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "llama-3.1-8b-instant",
|
||||
"name": "Llama 3.1 8B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.05,
|
||||
"output": 0.08,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "llama-3.3-70b-versatile",
|
||||
"name": "Llama 3.3 70B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.59,
|
||||
"output": 0.79,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta-llama/llama-4-scout-17b-16e-instruct",
|
||||
"name": "Llama 4 Scout 17B 16E",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0.11,
|
||||
"output": 0.34,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.075,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0.0375,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-safeguard-20b",
|
||||
"name": "Safety GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.075,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen/qwen3-32b",
|
||||
"name": "Qwen3-32B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 40960,
|
||||
"cost": {
|
||||
"input": 0.29,
|
||||
"output": 0.59,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,960 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "huggingface"
|
||||
export const providerConfig = {
|
||||
"name": "huggingface",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://router.huggingface.co/v1",
|
||||
"apiKey": "HF_TOKEN"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M2",
|
||||
"name": "MiniMax-M2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M2.1",
|
||||
"name": "MiniMax-M2.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M2.5",
|
||||
"name": "MiniMax-M2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M2.7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 524288,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-235B-A22B",
|
||||
"name": "Qwen3 235B-A22B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 40960,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 0.8,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-235B-A22B-Thinking-2507",
|
||||
"name": "Qwen3-235B-A22B-Thinking-2507",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-32B",
|
||||
"name": "Qwen3 32B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.29,
|
||||
"output": 0.59,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
|
||||
"name": "Qwen3-Coder 30B-A3B Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.07,
|
||||
"output": 0.26,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
||||
"name": "Qwen3-Coder-480B-A35B-Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 66536,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-Coder-Next",
|
||||
"name": "Qwen3-Coder-Next",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-Next-80B-A3B-Instruct",
|
||||
"name": "Qwen3-Next-80B-A3B-Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 66536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 1,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3-Next-80B-A3B-Thinking",
|
||||
"name": "Qwen3-Next-80B-A3B-Thinking",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-122B-A10B",
|
||||
"name": "Qwen3.5 122B-A10B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 3.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-27B",
|
||||
"name": "Qwen3.5 27B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 2.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-35B-A3B",
|
||||
"name": "Qwen3.5 35B-A3B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-397B-A17B",
|
||||
"name": "Qwen3.5-397B-A17B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3.6,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-9B",
|
||||
"name": "Qwen3.5 9B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.17,
|
||||
"output": 0.25,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.6-27B",
|
||||
"name": "Qwen3.6 27B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.47,
|
||||
"output": 3.19,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.6-35B-A3B",
|
||||
"name": "Qwen3.6 35B-A3B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.95,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "XiaomiMiMo/MiMo-V2-Flash",
|
||||
"name": "MiMo-V2-Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "XiaomiMiMo/MiMo-V2.5-Pro",
|
||||
"name": "MiMo-V2.5-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-R1",
|
||||
"name": "DeepSeek-R1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 64000,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.7,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-R1-0528",
|
||||
"name": "DeepSeek-R1-0528",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 163840,
|
||||
"maxTokens": 163840,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-V3.2",
|
||||
"name": "DeepSeek-V3.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 163840,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.28,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-V4-Flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-V4-Pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 393216,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.003625,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "google/gemma-4-26B-A4B-it",
|
||||
"name": "Gemma 4 26B A4B IT",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.13,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "google/gemma-4-31B-it",
|
||||
"name": "Gemma 4 31B IT",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta-llama/Llama-3.3-70B-Instruct",
|
||||
"name": "Llama-3.3-70B-Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0.59,
|
||||
"output": 0.79,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2-Instruct",
|
||||
"name": "Kimi-K2-Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2-Instruct-0905",
|
||||
"name": "Kimi-K2-Instruct-0905",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2-Thinking",
|
||||
"name": "Kimi-K2-Thinking",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2.5",
|
||||
"name": "Kimi-K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2.6",
|
||||
"name": "Kimi-K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2.7-Code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 0.69,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "stepfun-ai/Step-3.5-Flash",
|
||||
"name": "Step 3.5 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "stepfun-ai/Step-3.7-Flash",
|
||||
"name": "Step 3.7 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 1.15,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.5",
|
||||
"name": "GLM-4.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 98304,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.5-Air",
|
||||
"name": "GLM-4.5-Air",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 98304,
|
||||
"cost": {
|
||||
"input": 0.13,
|
||||
"output": 0.85,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.5V",
|
||||
"name": "GLM-4.5V",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 65536,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 1.8,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.6",
|
||||
"name": "GLM-4.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.55,
|
||||
"output": 2.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.7",
|
||||
"name": "GLM-4.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.2,
|
||||
"cacheRead": 0.11,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-4.7-Flash",
|
||||
"name": "GLM-4.7-Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-5",
|
||||
"name": "GLM-5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 3.2,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 3.2,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,74 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "kimi-coding"
|
||||
export const providerConfig = {
|
||||
"name": "kimi-coding",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://api.kimi.com/coding",
|
||||
"apiKey": "KIMI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "k3",
|
||||
"name": "Kimi K3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-for-coding",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-for-coding-highspeed",
|
||||
"name": "Kimi For Coding HighSpeed",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 1.9,
|
||||
"output": 8,
|
||||
"cacheRead": 0.38,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "minimax-cn"
|
||||
export const providerConfig = {
|
||||
"name": "minimax-cn",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://api.minimaxi.com/anthropic",
|
||||
"apiKey": "MINIMAX_CN_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMax-M2.7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0.375
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMax-M2.7-highspeed",
|
||||
"name": "MiniMax-M2.7-highspeed",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.4,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0.375
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMax-M3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "minimax"
|
||||
export const providerConfig = {
|
||||
"name": "minimax",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"baseUrl": "https://api.minimax.io/anthropic",
|
||||
"apiKey": "MINIMAX_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMax-M2.7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0.375
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMax-M2.7-highspeed",
|
||||
"name": "MiniMax-M2.7-highspeed",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.4,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0.375
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMax-M3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,597 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "mistral"
|
||||
export const providerConfig = {
|
||||
"name": "mistral",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"baseUrl": "https://api.mistral.ai",
|
||||
"apiKey": "MISTRAL_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "codestral-latest",
|
||||
"name": "Codestral (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 0.9,
|
||||
"cacheRead": 0.03,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-2512",
|
||||
"name": "Devstral 2",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-latest",
|
||||
"name": "Devstral 2",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-medium-2507",
|
||||
"name": "Devstral Medium",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-medium-latest",
|
||||
"name": "Devstral 2 (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-small-2505",
|
||||
"name": "Devstral Small 2505",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "devstral-small-2507",
|
||||
"name": "Devstral Small",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "labs-devstral-small-2512",
|
||||
"name": "Devstral Small 2",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "magistral-medium-latest",
|
||||
"name": "Magistral Medium (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 5,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "magistral-small",
|
||||
"name": "Magistral Small",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "ministral-3b-latest",
|
||||
"name": "Ministral 3B (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.04,
|
||||
"output": 0.04,
|
||||
"cacheRead": 0.004,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "ministral-8b-latest",
|
||||
"name": "Ministral 8B (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.1,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-large-2411",
|
||||
"name": "Mistral Large 2.1",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 6,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-large-2512",
|
||||
"name": "Mistral Large 3",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-large-latest",
|
||||
"name": "Mistral Large (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 1.5,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-medium-2505",
|
||||
"name": "Mistral Medium 3",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-medium-2508",
|
||||
"name": "Mistral Medium 3.1",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 2,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-medium-2604",
|
||||
"name": "Mistral Medium 3.5",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 7.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-medium-3.5",
|
||||
"name": "Mistral Medium 3.5",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 7.5,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-medium-latest",
|
||||
"name": "Mistral Medium (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.5,
|
||||
"output": 7.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-nemo",
|
||||
"name": "Mistral Nemo",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.15,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-small-2506",
|
||||
"name": "Mistral Small 3.2",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0.01,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-small-2603",
|
||||
"name": "Mistral Small 4",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistral-small-latest",
|
||||
"name": "Mistral Small (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "open-mistral-7b",
|
||||
"name": "Mistral 7B",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 8000,
|
||||
"maxTokens": 8000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 0.25,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "open-mistral-nemo",
|
||||
"name": "Open Mistral Nemo",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.15,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "open-mixtral-8x22b",
|
||||
"name": "Mixtral 8x22B",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 64000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 6,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "open-mixtral-8x7b",
|
||||
"name": "Mixtral 8x7B",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 32000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 0.7,
|
||||
"output": 0.7,
|
||||
"cacheRead": 0.07,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "pixtral-12b",
|
||||
"name": "Pixtral 12B",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.15,
|
||||
"cacheRead": 0.015,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "pixtral-large-latest",
|
||||
"name": "Pixtral Large (latest)",
|
||||
"config": {
|
||||
"api": "mistral-conversations",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 6,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,209 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "moonshotai-cn"
|
||||
export const providerConfig = {
|
||||
"name": "moonshotai-cn",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.moonshot.cn/v1",
|
||||
"apiKey": "MOONSHOT_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "kimi-k2-0711-preview",
|
||||
"name": "Kimi K2 0711",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-0905-preview",
|
||||
"name": "Kimi K2 0905",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-thinking",
|
||||
"name": "Kimi K2 Thinking",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-thinking-turbo",
|
||||
"name": "Kimi K2 Thinking Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.15,
|
||||
"output": 8,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-turbo-preview",
|
||||
"name": "Kimi K2 Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 2.4,
|
||||
"output": 10,
|
||||
"cacheRead": 0.6,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.5",
|
||||
"name": "Kimi K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code-highspeed",
|
||||
"name": "Kimi K2.7 Code HighSpeed",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.9,
|
||||
"output": 8,
|
||||
"cacheRead": 0.38,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k3",
|
||||
"name": "Kimi K3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,209 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "moonshotai"
|
||||
export const providerConfig = {
|
||||
"name": "moonshotai",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.moonshot.ai/v1",
|
||||
"apiKey": "MOONSHOT_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "kimi-k2-0711-preview",
|
||||
"name": "Kimi K2 0711",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-0905-preview",
|
||||
"name": "Kimi K2 0905",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-thinking",
|
||||
"name": "Kimi K2 Thinking",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-thinking-turbo",
|
||||
"name": "Kimi K2 Thinking Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.15,
|
||||
"output": 8,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2-turbo-preview",
|
||||
"name": "Kimi K2 Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 2.4,
|
||||
"output": 10,
|
||||
"cacheRead": 0.6,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.5",
|
||||
"name": "Kimi K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code-highspeed",
|
||||
"name": "Kimi K2.7 Code HighSpeed",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 1.9,
|
||||
"output": 8,
|
||||
"cacheRead": 0.38,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k3",
|
||||
"name": "Kimi K3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,383 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "nvidia"
|
||||
export const providerConfig = {
|
||||
"name": "nvidia",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://integrate.api.nvidia.com/v1",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "meta/llama-3.1-70b-instruct",
|
||||
"name": "Llama 3.1 70b Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta/llama-3.1-8b-instruct",
|
||||
"name": "Llama 3.1 8B Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 16000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta/llama-3.2-11b-vision-instruct",
|
||||
"name": "Llama 3.2 11b Vision Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta/llama-3.2-90b-vision-instruct",
|
||||
"name": "Llama-3.2-90B-Vision-Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta/llama-3.3-70b-instruct",
|
||||
"name": "Llama 3.3 70b Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "minimaxai/minimax-m3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistralai/mistral-large-3-675b-instruct-2512",
|
||||
"name": "Mistral Large 3 675B Instruct 2512",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mistralai/mistral-small-4-119b-2603",
|
||||
"name": "mistral-small-4-119b-2603",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nemotron-3-nano-30b-a3b",
|
||||
"name": "nemotron-3-nano-30b-a3b",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",
|
||||
"name": "Nemotron 3 Nano Omni",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nemotron-3-super-120b-a12b",
|
||||
"name": "Nemotron 3 Super",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 0.8,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nemotron-3-ultra-550b-a55b",
|
||||
"name": "Nemotron 3 Ultra 550B A55B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.15,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nvidia-nemotron-nano-9b-v2",
|
||||
"name": "nvidia-nemotron-nano-9b-v2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-120b",
|
||||
"name": "GPT-OSS-120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "stepfun-ai/step-3.5-flash",
|
||||
"name": "Step 3.5 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "stepfun-ai/step-3.7-flash",
|
||||
"name": "Step 3.7 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "z-ai/glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,198 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "openai-codex"
|
||||
export const providerConfig = {
|
||||
"name": "openai-codex",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"baseUrl": "https://chatgpt.com/backend-api",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gpt-5.3-codex-spark",
|
||||
"name": "GPT-5.3 Codex Spark",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4",
|
||||
"name": "GPT-5.4",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-mini",
|
||||
"name": "GPT-5.4 mini",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.75,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5",
|
||||
"name": "GPT-5.5",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-luna",
|
||||
"name": "GPT-5.6 Luna",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 2,
|
||||
"output": 9,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-sol",
|
||||
"name": "GPT-5.6 Sol",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-terra",
|
||||
"name": "GPT-5.6 Terra",
|
||||
"config": {
|
||||
"api": "openai-codex-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 3.125,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,995 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "openai"
|
||||
export const providerConfig = {
|
||||
"name": "openai",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"baseUrl": "https://api.openai.com/v1",
|
||||
"apiKey": "OPENAI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "gpt-4",
|
||||
"name": "GPT-4",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 8192,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 60,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4-turbo",
|
||||
"name": "GPT-4 Turbo",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 30,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1",
|
||||
"name": "GPT-4.1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1-mini",
|
||||
"name": "GPT-4.1 mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 1.6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4.1-nano",
|
||||
"name": "GPT-4.1 nano",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1047576,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.1,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o",
|
||||
"name": "GPT-4o",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-05-13",
|
||||
"name": "GPT-4o (2024-05-13)",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 15,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-08-06",
|
||||
"name": "GPT-4o (2024-08-06)",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-2024-11-20",
|
||||
"name": "GPT-4o (2024-11-20)",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 10,
|
||||
"cacheRead": 1.25,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-4o-mini",
|
||||
"name": "GPT-4o mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5",
|
||||
"name": "GPT-5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-chat-latest",
|
||||
"name": "GPT-5 Chat Latest",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-codex",
|
||||
"name": "GPT-5-Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-mini",
|
||||
"name": "GPT-5 Mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-nano",
|
||||
"name": "GPT-5 Nano",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.05,
|
||||
"output": 0.4,
|
||||
"cacheRead": 0.005,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5-pro",
|
||||
"name": "GPT-5 Pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 120,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1",
|
||||
"name": "GPT-5.1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-chat-latest",
|
||||
"name": "GPT-5.1 Chat",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex",
|
||||
"name": "GPT-5.1 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex-max",
|
||||
"name": "GPT-5.1 Codex Max",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 10,
|
||||
"cacheRead": 0.125,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.1-codex-mini",
|
||||
"name": "GPT-5.1 Codex mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.25,
|
||||
"output": 2,
|
||||
"cacheRead": 0.025,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2",
|
||||
"name": "GPT-5.2",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-chat-latest",
|
||||
"name": "GPT-5.2 Chat",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-codex",
|
||||
"name": "GPT-5.2 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.2-pro",
|
||||
"name": "GPT-5.2 Pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 21,
|
||||
"output": 168,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-chat-latest",
|
||||
"name": "GPT-5.3 Chat (latest)",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex",
|
||||
"name": "GPT-5.3 Codex",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.3-codex-spark",
|
||||
"name": "GPT-5.3 Codex Spark",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 1.75,
|
||||
"output": 14,
|
||||
"cacheRead": 0.175,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4",
|
||||
"name": "GPT-5.4",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-mini",
|
||||
"name": "GPT-5.4 mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.75,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.075,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-nano",
|
||||
"name": "GPT-5.4 nano",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 400000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.2,
|
||||
"output": 1.25,
|
||||
"cacheRead": 0.02,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.4-pro",
|
||||
"name": "GPT-5.4 Pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 180,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 60,
|
||||
"output": 270,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5",
|
||||
"name": "GPT-5.5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.5-pro",
|
||||
"name": "GPT-5.5 Pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1050000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 30,
|
||||
"output": 180,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 60,
|
||||
"output": 270,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-luna",
|
||||
"name": "GPT-5.6 Luna",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 6,
|
||||
"cacheRead": 0.1,
|
||||
"cacheWrite": 1.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 2,
|
||||
"output": 9,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 2.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-sol",
|
||||
"name": "GPT-5.6 Sol",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 5,
|
||||
"output": 30,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 10,
|
||||
"output": 45,
|
||||
"cacheRead": 1,
|
||||
"cacheWrite": 12.5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-5.6-terra",
|
||||
"name": "GPT-5.6 Terra",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 272000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 15,
|
||||
"cacheRead": 0.25,
|
||||
"cacheWrite": 3.125,
|
||||
"tiers": [
|
||||
{
|
||||
"inputTokensAbove": 272000,
|
||||
"input": 5,
|
||||
"output": 22.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 6.25
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "gpt-realtime-2.1",
|
||||
"name": "GPT-Realtime-2.1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 128000,
|
||||
"maxTokens": 32000,
|
||||
"cost": {
|
||||
"input": 4,
|
||||
"output": 24,
|
||||
"cacheRead": 0.4,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o1",
|
||||
"name": "o1",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 15,
|
||||
"output": 60,
|
||||
"cacheRead": 7.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o1-pro",
|
||||
"name": "o1-pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 150,
|
||||
"output": 600,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3",
|
||||
"name": "o3",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-deep-research",
|
||||
"name": "o3-deep-research",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 10,
|
||||
"output": 40,
|
||||
"cacheRead": 2.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-mini",
|
||||
"name": "o3-mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.55,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o3-pro",
|
||||
"name": "o3-pro",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 20,
|
||||
"output": 80,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o4-mini",
|
||||
"name": "o4-mini",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 1.1,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.275,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "o4-mini-deep-research",
|
||||
"name": "o4-mini-deep-research",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 100000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 8,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,307 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "opencode-go"
|
||||
export const providerConfig = {
|
||||
"name": "opencode-go",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://opencode.ai/zen/go/v1",
|
||||
"apiKey": "OPENCODE_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "deepseek-v4-flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.003625,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "grok-4.5",
|
||||
"name": "Grok 4.5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 500000,
|
||||
"maxTokens": 500000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 6,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.16,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k3",
|
||||
"name": "Kimi K3 (2x usage)",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 3,
|
||||
"output": 15,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5",
|
||||
"name": "MiMo V2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro",
|
||||
"name": "MiMo V2.5 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.003625,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "minimax-m2.7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "minimax-m3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.6-plus",
|
||||
"name": "Qwen3.6 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 3,
|
||||
"cacheRead": 0.05,
|
||||
"cacheWrite": 0.625
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-max",
|
||||
"name": "Qwen3.7 Max",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 2.5,
|
||||
"output": 7.5,
|
||||
"cacheRead": 0.5,
|
||||
"cacheWrite": 3.125
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-plus",
|
||||
"name": "Qwen3.7 Plus",
|
||||
"config": {
|
||||
"api": "anthropic-messages",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.4,
|
||||
"output": 1.6,
|
||||
"cacheRead": 0.04,
|
||||
"cacheWrite": 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,306 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "qwen-token-plan-cn"
|
||||
export const providerConfig = {
|
||||
"name": "qwen-token-plan-cn",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMax-M2.5",
|
||||
"name": "MiniMax-M2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 196608,
|
||||
"maxTokens": 24576,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v3.2",
|
||||
"name": "DeepSeek V3.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5",
|
||||
"name": "GLM-5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.5",
|
||||
"name": "Kimi K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.6-flash",
|
||||
"name": "Qwen3.6 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.6-plus",
|
||||
"name": "Qwen3.6 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-max",
|
||||
"name": "Qwen3.7 Max",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-plus",
|
||||
"name": "Qwen3.7 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.8-max-preview",
|
||||
"name": "Qwen3.8 Max Preview",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,306 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "qwen-token-plan"
|
||||
export const providerConfig = {
|
||||
"name": "qwen-token-plan",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMax-M2.5",
|
||||
"name": "MiniMax-M2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 196608,
|
||||
"maxTokens": 24576,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v3.2",
|
||||
"name": "DeepSeek V3.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-flash",
|
||||
"name": "DeepSeek V4 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-v4-pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5",
|
||||
"name": "GLM-5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 128000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.5",
|
||||
"name": "Kimi K2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 16384,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "kimi-k2.7-code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.6-flash",
|
||||
"name": "Qwen3.6 Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.6-plus",
|
||||
"name": "Qwen3.6 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-max",
|
||||
"name": "Qwen3.7 Max",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.7-plus",
|
||||
"name": "Qwen3.7 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 64000,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "qwen3.8-max-preview",
|
||||
"name": "Qwen3.8 Max Preview",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,323 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "together"
|
||||
export const providerConfig = {
|
||||
"name": "together",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.together.ai/v1",
|
||||
"apiKey": "TOGETHER_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M2.7",
|
||||
"name": "MiniMax-M2.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 202752,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "MiniMaxAI/MiniMax-M3",
|
||||
"name": "MiniMax-M3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 524288,
|
||||
"maxTokens": 250000,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 1.2,
|
||||
"cacheRead": 0.06,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen2.5-7B-Instruct-Turbo",
|
||||
"name": "Qwen 2.5 7B Instruct Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 32768,
|
||||
"maxTokens": 32768,
|
||||
"cost": {
|
||||
"input": 0.3,
|
||||
"output": 0.3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.5-9B",
|
||||
"name": "Qwen3.5 9B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.17,
|
||||
"output": 0.25,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.6-Plus",
|
||||
"name": "Qwen3.6 Plus",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 500000,
|
||||
"cost": {
|
||||
"input": 0.5,
|
||||
"output": 3,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "Qwen/Qwen3.7-Max",
|
||||
"name": "Qwen3.7 Max",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 500000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 3.75,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "deepseek-ai/DeepSeek-V4-Pro",
|
||||
"name": "DeepSeek V4 Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 512000,
|
||||
"maxTokens": 384000,
|
||||
"cost": {
|
||||
"input": 1.74,
|
||||
"output": 3.48,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "google/gemma-4-31B-it",
|
||||
"name": "Gemma 4 31B Instruct",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.39,
|
||||
"output": 0.97,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
||||
"name": "Llama 3.3 70B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": false,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.04,
|
||||
"output": 1.04,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2.6",
|
||||
"name": "Kimi K2.6",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131000,
|
||||
"cost": {
|
||||
"input": 1.2,
|
||||
"output": 4.5,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "moonshotai/Kimi-K2.7-Code",
|
||||
"name": "Kimi K2.7 Code",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.95,
|
||||
"output": 4,
|
||||
"cacheRead": 0.19,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "nvidia/nemotron-3-ultra-550b-a55b",
|
||||
"name": "Nemotron 3 Ultra 550B A55B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 512300,
|
||||
"maxTokens": 512300,
|
||||
"cost": {
|
||||
"input": 0.6,
|
||||
"output": 3.6,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-120b",
|
||||
"name": "GPT OSS 120B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.15,
|
||||
"output": 0.6,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "openai/gpt-oss-20b",
|
||||
"name": "GPT OSS 20B",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.05,
|
||||
"output": 0.2,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "thinkingmachines/Inkling",
|
||||
"name": "Inkling",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 524288,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 4.05,
|
||||
"cacheRead": 0.17,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "zai-org/GLM-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 164000,
|
||||
"cost": {
|
||||
"input": 1.4,
|
||||
"output": 4.4,
|
||||
"cacheRead": 0.26,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,74 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "xai"
|
||||
export const providerConfig = {
|
||||
"name": "xai",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.x.ai/v1",
|
||||
"apiKey": "XAI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "grok-4.3",
|
||||
"name": "Grok 4.3",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 30000,
|
||||
"cost": {
|
||||
"input": 1.25,
|
||||
"output": 2.5,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "grok-4.5",
|
||||
"name": "Grok 4.5",
|
||||
"config": {
|
||||
"api": "openai-responses",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 500000,
|
||||
"maxTokens": 500000,
|
||||
"cost": {
|
||||
"input": 2,
|
||||
"output": 6,
|
||||
"cacheRead": 0.3,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "grok-build-0.1",
|
||||
"name": "Grok Build 0.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 256000,
|
||||
"maxTokens": 256000,
|
||||
"cost": {
|
||||
"input": 1,
|
||||
"output": 2,
|
||||
"cacheRead": 0.2,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "xiaomi-token-plan-ams"
|
||||
export const providerConfig = {
|
||||
"name": "xiaomi-token-plan-ams",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://token-plan-ams.xiaomimimo.com/v1",
|
||||
"apiKey": "XIAOMI_TOKEN_PLAN_AMS_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "mimo-v2-pro",
|
||||
"name": "MiMo-V2-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5",
|
||||
"name": "MiMo-V2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro",
|
||||
"name": "MiMo-V2.5-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "xiaomi-token-plan-cn"
|
||||
export const providerConfig = {
|
||||
"name": "xiaomi-token-plan-cn",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://token-plan-cn.xiaomimimo.com/v1",
|
||||
"apiKey": "XIAOMI_TOKEN_PLAN_CN_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "mimo-v2-pro",
|
||||
"name": "MiMo-V2-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5",
|
||||
"name": "MiMo-V2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro",
|
||||
"name": "MiMo-V2.5-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,72 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "xiaomi-token-plan-sgp"
|
||||
export const providerConfig = {
|
||||
"name": "xiaomi-token-plan-sgp",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://token-plan-sgp.xiaomimimo.com/v1",
|
||||
"apiKey": "XIAOMI_TOKEN_PLAN_SGP_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "mimo-v2-pro",
|
||||
"name": "MiMo-V2-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5",
|
||||
"name": "MiMo-V2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro",
|
||||
"name": "MiMo-V2.5-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,130 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "xiaomi"
|
||||
export const providerConfig = {
|
||||
"name": "xiaomi",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.xiaomimimo.com/v1",
|
||||
"apiKey": "XIAOMI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "mimo-v2-flash",
|
||||
"name": "MiMo-V2-Flash",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 65536,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2-omni",
|
||||
"name": "MiMo-V2-Omni",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2-pro",
|
||||
"name": "MiMo-V2-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.0036,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5",
|
||||
"name": "MiMo-V2.5",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.14,
|
||||
"output": 0.28,
|
||||
"cacheRead": 0.0028,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro",
|
||||
"name": "MiMo-V2.5-Pro",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0.435,
|
||||
"output": 0.87,
|
||||
"cacheRead": 0.0036,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "mimo-v2.5-pro-ultraspeed",
|
||||
"name": "MiMo-V2.5-Pro-UltraSpeed",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1048576,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 1.305,
|
||||
"output": 2.61,
|
||||
"cacheRead": 0.0108,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,129 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "zai-coding-cn"
|
||||
export const providerConfig = {
|
||||
"name": "zai-coding-cn",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
|
||||
"apiKey": ""
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "glm-4.5-air",
|
||||
"name": "GLM-4.5-Air",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 98304,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-4.7",
|
||||
"name": "GLM-4.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5-turbo",
|
||||
"name": "GLM-5-Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5v-turbo",
|
||||
"name": "GLM-5V-Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -1,129 +0,0 @@
|
||||
// This file is auto-generated by scripts/generate-builtin-providers.ts
|
||||
// Do not edit manually - run 'bun run generate-providers' to update
|
||||
|
||||
export const providerName = "zai"
|
||||
export const providerConfig = {
|
||||
"name": "zai",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "https://api.z.ai/api/coding/paas/v4",
|
||||
"apiKey": "ZAI_API_KEY"
|
||||
},
|
||||
"models": [
|
||||
{
|
||||
"modelId": "glm-4.5-air",
|
||||
"name": "GLM-4.5-Air",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 131072,
|
||||
"maxTokens": 98304,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-4.7",
|
||||
"name": "GLM-4.7",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5-turbo",
|
||||
"name": "GLM-5-Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.1",
|
||||
"name": "GLM-5.1",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5.2",
|
||||
"name": "GLM-5.2",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 1000000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"modelId": "glm-5v-turbo",
|
||||
"name": "GLM-5V-Turbo",
|
||||
"config": {
|
||||
"api": "openai-completions",
|
||||
"reasoning": true,
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"contextWindow": 200000,
|
||||
"maxTokens": 131072,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
} as const
|
||||
@@ -0,0 +1,27 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { getBuiltinProvidersMap, PRIORITY_PROVIDERS, ENV_MAP } from './builtin'
|
||||
|
||||
describe('Builtin Providers', () => {
|
||||
it('should return a non-empty record of providers', () => {
|
||||
const providers = getBuiltinProvidersMap()
|
||||
expect(Object.keys(providers).length).toBeGreaterThan(0)
|
||||
})
|
||||
|
||||
it('should place priority providers first in the map', () => {
|
||||
const providers = getBuiltinProvidersMap()
|
||||
const keys = Object.keys(providers)
|
||||
|
||||
expect(keys[0]).toBe(PRIORITY_PROVIDERS[0])
|
||||
expect(keys[1]).toBe(PRIORITY_PROVIDERS[1])
|
||||
})
|
||||
|
||||
it('should format openai provider correctly with env key', () => {
|
||||
const providers = getBuiltinProvidersMap()
|
||||
const openai = providers.openai
|
||||
|
||||
expect(openai).toBeDefined()
|
||||
expect(openai.name).toBe('openai')
|
||||
expect(openai.config.apiKey).toBe(ENV_MAP.openai)
|
||||
expect(openai.models.length).toBeGreaterThan(0)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,100 @@
|
||||
import { getBuiltinProviders, getBuiltinModels } from '@earendil-works/pi-ai/providers/all'
|
||||
import type { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos'
|
||||
import type { z } from 'zod'
|
||||
|
||||
type ProviderModel = z.infer<typeof providerModelSchema>
|
||||
|
||||
export const PRIORITY_PROVIDERS = [
|
||||
'openai',
|
||||
'anthropic',
|
||||
'google',
|
||||
'deepseek',
|
||||
'groq',
|
||||
'openrouter',
|
||||
'mistral',
|
||||
'amazon-bedrock',
|
||||
]
|
||||
|
||||
export const ENV_MAP: Record<string, string> = {
|
||||
openai: 'OPENAI_API_KEY',
|
||||
anthropic: 'ANTHROPIC_API_KEY',
|
||||
'github-copilot': 'COPILOT_GITHUB_TOKEN',
|
||||
'azure-openai-responses': 'AZURE_OPENAI_API_KEY',
|
||||
deepseek: 'DEEPSEEK_API_KEY',
|
||||
google: 'GEMINI_API_KEY',
|
||||
'google-vertex': 'GOOGLE_CLOUD_API_KEY',
|
||||
groq: 'GROQ_API_KEY',
|
||||
cerebras: 'CEREBRAS_API_KEY',
|
||||
xai: 'XAI_API_KEY',
|
||||
openrouter: 'OPENROUTER_API_KEY',
|
||||
'vercel-ai-gateway': 'AI_GATEWAY_API_KEY',
|
||||
zai: 'ZAI_API_KEY',
|
||||
mistral: 'MISTRAL_API_KEY',
|
||||
minimax: 'MINIMAX_API_KEY',
|
||||
'minimax-cn': 'MINIMAX_CN_API_KEY',
|
||||
moonshotai: 'MOONSHOT_API_KEY',
|
||||
'moonshotai-cn': 'MOONSHOT_API_KEY',
|
||||
huggingface: 'HF_TOKEN',
|
||||
fireworks: 'FIREWORKS_API_KEY',
|
||||
together: 'TOGETHER_API_KEY',
|
||||
opencode: 'OPENCODE_API_KEY',
|
||||
'opencode-go': 'OPENCODE_API_KEY',
|
||||
'kimi-coding': 'KIMI_API_KEY',
|
||||
'cloudflare-workers-ai': 'CLOUDFLARE_API_KEY',
|
||||
'cloudflare-ai-gateway': 'CLOUDFLARE_API_KEY',
|
||||
xiaomi: 'XIAOMI_API_KEY',
|
||||
'xiaomi-token-plan-cn': 'XIAOMI_TOKEN_PLAN_CN_API_KEY',
|
||||
'xiaomi-token-plan-ams': 'XIAOMI_TOKEN_PLAN_AMS_API_KEY',
|
||||
'xiaomi-token-plan-sgp': 'XIAOMI_TOKEN_PLAN_SGP_API_KEY',
|
||||
}
|
||||
|
||||
export interface BuiltinProviderData {
|
||||
name: string
|
||||
config: ProviderConfigSerializable
|
||||
models: ProviderModel[]
|
||||
}
|
||||
|
||||
export function getBuiltinProvidersMap(): Record<string, BuiltinProviderData> {
|
||||
const providerNames = getBuiltinProviders()
|
||||
|
||||
providerNames.sort((a, b) => {
|
||||
const indexA = PRIORITY_PROVIDERS.indexOf(a)
|
||||
const indexB = PRIORITY_PROVIDERS.indexOf(b)
|
||||
|
||||
if (indexA !== -1 && indexB !== -1) return indexA - indexB
|
||||
if (indexA !== -1) return -1
|
||||
if (indexB !== -1) return 1
|
||||
return a.localeCompare(b)
|
||||
})
|
||||
|
||||
const providers: Record<string, BuiltinProviderData> = {}
|
||||
|
||||
for (const providerName of providerNames) {
|
||||
const modelList = getBuiltinModels(providerName)
|
||||
if (!modelList || modelList.length === 0) continue
|
||||
|
||||
const firstModel = modelList[0]
|
||||
providers[providerName] = {
|
||||
name: providerName,
|
||||
config: {
|
||||
api: firstModel.api as ProviderConfigSerializable['api'],
|
||||
baseUrl: firstModel.baseUrl,
|
||||
apiKey: ENV_MAP[providerName] || '',
|
||||
},
|
||||
models: modelList.map((m) => ({
|
||||
modelId: m.id,
|
||||
name: m.name,
|
||||
config: {
|
||||
api: m.api as ProviderConfigSerializable['api'],
|
||||
reasoning: m.reasoning,
|
||||
input: m.input,
|
||||
contextWindow: m.contextWindow,
|
||||
maxTokens: m.maxTokens,
|
||||
cost: m.cost,
|
||||
},
|
||||
})),
|
||||
}
|
||||
}
|
||||
|
||||
return providers
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import { agentService } from '@shumai/core/src/agent/agent'
|
||||
import { providerService } from './provider'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos'
|
||||
import { builtinProviders } from '@shumai/core/src/generated/providers.generated'
|
||||
import { getBuiltinProvidersMap } from '@shumai/core/src/provider/builtin'
|
||||
import { z } from 'zod'
|
||||
|
||||
type ProviderModel = z.infer<typeof providerModelSchema>
|
||||
@@ -35,6 +35,7 @@ describe('ProviderService', () => {
|
||||
|
||||
// The first provider in generated file is 'openai'
|
||||
// Since we use id: 'desc', 'openai' should be first in the list
|
||||
const builtinProviders = getBuiltinProvidersMap()
|
||||
const firstInGenerated = Object.keys(builtinProviders)[0]
|
||||
expect(providers[0].name).toBe(firstInGenerated)
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { prisma } from '@shumai/db'
|
||||
import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos'
|
||||
import { builtinProviders } from '@shumai/core/src/generated/providers.generated'
|
||||
import { getBuiltinProvidersMap } from '@shumai/core/src/provider/builtin'
|
||||
import { z } from 'zod'
|
||||
|
||||
type ProviderModel = z.infer<typeof providerModelSchema>
|
||||
@@ -19,23 +19,20 @@ export class ProviderService {
|
||||
})
|
||||
|
||||
if (team && team._count.providers === 0) {
|
||||
const builtinProviders = getBuiltinProvidersMap()
|
||||
// We insert them one by one in reverse order to ensure that the
|
||||
// popular providers (first in builtinProviders) get the highest ULIDs
|
||||
// and appear first when sorted by id DESC.
|
||||
const entries = Object.entries(builtinProviders).reverse()
|
||||
for (const [name, data] of entries) {
|
||||
const typedData = data as unknown as {
|
||||
config: ProviderConfigSerializable
|
||||
models: ProviderModel[]
|
||||
}
|
||||
await this.prismaClient.provider.create({
|
||||
data: {
|
||||
teamId: team.id,
|
||||
name,
|
||||
config: typedData.config,
|
||||
config: data.config,
|
||||
isBuiltin: true,
|
||||
models: {
|
||||
create: typedData.models.map((m) => ({
|
||||
create: data.models.map((m) => ({
|
||||
modelId: m.modelId,
|
||||
name: m.name,
|
||||
config: m.config,
|
||||
|
||||
Reference in New Issue
Block a user