Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 78 additions & 42 deletions packages/proxy/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,19 @@ export const DefaultEndpointTypes: {
};

export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"gpt-5.6-sol": ["openai", "azure"],
"gpt-5.6-terra": ["openai", "azure"],
"gpt-5.6-sol": ["openai", "azure", "openrouter"],
"gpt-5.6-terra": ["openai", "azure", "openrouter"],
"gpt-5.6": ["openai", "azure"],
"gpt-5.6-luna": ["openai", "azure"],
"gpt-5.6-luna": ["openai", "azure", "openrouter"],
"gpt-5.5-2026-04-23": ["openai", "azure"],
"gpt-5.5-pro-2026-04-23": ["openai", "azure"],
"gpt-5.5": ["openai", "azure"],
"gpt-5.5-pro": ["openai", "azure"],
"gpt-5.5": ["openai", "azure", "openrouter"],
"gpt-5.5-pro": ["openai", "azure", "openrouter"],
"gpt-5.4-nano-2026-03-17": ["openai", "azure"],
"gpt-5.4-pro-2026-03-05": ["openai", "azure"],
"gpt-5.2-pro-2025-12-11": ["openai", "azure"],
"gpt-5.2-pro": ["openai", "azure"],
"gpt-5.1-codex-max": ["openai", "azure"],
"gpt-5.2-pro": ["openai", "azure", "openrouter"],
"gpt-5.1-codex-max": ["openai", "azure", "openrouter"],
"gpt-5-search-api-2025-10-14": ["openai", "azure"],
"gpt-5-search-api": ["openai", "azure"],
"gpt-4o-audio-preview-2024-12-17": ["openai", "azure"],
Expand All @@ -231,9 +231,9 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"gpt-4o-realtime-preview": ["openai", "azure"],
"gpt-4o-transcribe": ["openai", "azure"],
"gpt-4o-transcribe-diarize": ["openai", "azure"],
sonar: ["perplexity"],
"sonar-pro": ["perplexity"],
"sonar-reasoning-pro": ["perplexity"],
sonar: ["perplexity", "openrouter"],
"sonar-pro": ["perplexity", "openrouter"],
"sonar-reasoning-pro": ["perplexity", "openrouter"],
"meta/llama-2-70b-chat": ["replicate"],
"accounts/fireworks/models/mistral-7b-instruct-4k": ["fireworks"],
"accounts/fireworks/models/mistral-7b-instruct-v3": ["fireworks"],
Expand Down Expand Up @@ -399,7 +399,7 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"accounts/fireworks/models/phi-3-mini-128k-instruct": ["fireworks"],
"mixtral-8x7b": ["lepton"],
"wizardlm-2-7b": ["lepton"],
"wizardlm-2-8x22b": ["lepton"],
"wizardlm-2-8x22b": ["lepton", "openrouter"],
"nous-hermes-llama2-13b": ["lepton"],
"accounts/fireworks/models/nous-hermes-2-mixtral-8x7b-dpo": ["fireworks"],
"dolphin-mixtral-8x7b": ["lepton"],
Expand Down Expand Up @@ -536,19 +536,19 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"gemini-3.1-flash-image": ["google", "vertex"],
"publishers/google/models/gemini-3.1-flash-image": ["vertex"],
"grok-4.20-multi-agent-0309": ["xAI"],
"gpt-5-pro": ["openai", "azure"],
"gpt-5-pro": ["openai", "azure", "openrouter"],
"gpt-5-pro-2025-10-06": ["openai", "azure"],
"gpt-5": ["openai", "azure"],
"gpt-5": ["openai", "azure", "openrouter"],
"gpt-5-2025-08-07": ["openai", "azure"],
"o3-2025-04-16": ["openai", "azure"],
"gpt-5-mini-2025-08-07": ["openai", "azure"],
"gpt-4o-2024-05-13": ["openai", "azure"],
"gpt-4o-2024-05-13": ["openai", "azure", "openrouter"],
"o1-2024-12-17": ["openai", "azure"],
"o4-mini-2025-04-16": ["openai", "azure"],
"gpt-5.4-pro": ["openai", "azure"],
"gpt-5.3-codex": ["openai", "azure"],
"gpt-5.4-mini": ["openai", "azure"],
"gpt-5.4-nano": ["openai", "azure"],
"gpt-5.4-pro": ["openai", "azure", "openrouter"],
"gpt-5.3-codex": ["openai", "azure", "openrouter"],
"gpt-5.4-mini": ["openai", "azure", "openrouter"],
"gpt-5.4-nano": ["openai", "azure", "openrouter"],
"Qwen/Qwen3.7-Plus": ["together"],
"qwen/qwen3.6-27b": ["groq"],
"gemini-3-pro-image": ["google"],
Expand All @@ -572,12 +572,12 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"eu.mistral.pixtral-large-2502-v1:0": ["bedrock"],
"gpt-5.2-chat-latest": ["openai", "azure"],
"gpt-5.3-chat-latest": ["openai", "azure"],
"gpt-5.2-codex": ["openai", "azure"],
"gpt-5.2-codex": ["openai", "azure", "openrouter"],
"gpt-5-chat-latest": ["openai", "azure"],
"gpt-5-codex": ["openai", "azure"],
"gpt-5-codex": ["openai", "azure", "openrouter"],
"gpt-5.1-chat-latest": ["openai", "azure"],
"gpt-5.1-codex": ["openai", "azure"],
"gpt-5.1-codex-mini": ["openai", "azure"],
"gpt-5.1-codex": ["openai", "azure", "openrouter"],
"gpt-5.1-codex-mini": ["openai", "azure", "openrouter"],
"devstral-medium-latest": ["mistral"],
"devstral-latest": ["mistral"],
"zai.glm-4.7": ["bedrock"],
Expand All @@ -591,7 +591,7 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"us.meta.llama4-scout-17b-instruct-v1:0": ["bedrock"],
"us.meta.llama4-maverick-17b-instruct-v1:0": ["bedrock"],
"zai-glm-4.7": ["cerebras"],
"sonar-deep-research": ["perplexity"],
"sonar-deep-research": ["perplexity", "openrouter"],
"publishers/anthropic/models/claude-opus-4-8": ["vertex"],
"anthropic.claude-opus-4-8": ["bedrock"],
"global.anthropic.claude-opus-4-8": ["bedrock"],
Expand All @@ -601,7 +601,7 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"anthropic.claude-fable-5": ["bedrock"],
"global.anthropic.claude-fable-5": ["bedrock"],
"Qwen/Qwen3.7-Max": ["together"],
"grok-build-0.1": ["xAI"],
"grok-build-0.1": ["xAI", "openrouter"],
"deepseek.v3-v1:0": ["bedrock"],
"deepseek.r1-v1:0": ["bedrock"],
"us.deepseek.r1-v1:0": ["bedrock"],
Expand Down Expand Up @@ -665,7 +665,7 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"zai.glm-5": ["bedrock"],
"nvidia.nemotron-super-3-120b": ["bedrock"],
"mistral-medium-3.5": ["mistral"],
"mistral-medium-3": ["mistral"],
"mistral-medium-3": ["mistral", "openrouter"],
"deepseek.v3.2": ["bedrock"],
"amazon.nova-premier-v1:0": ["bedrock"],
"amazon.nova-2-lite-v1:0": ["bedrock"],
Expand All @@ -689,15 +689,15 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"Qwen/Qwen3.5-397B-A17B": ["together"],
"accounts/fireworks/models/deepseek-v4-pro": ["fireworks"],
"accounts/fireworks/models/minimax-m2p7": ["fireworks"],
"grok-4.3": ["xAI"],
"grok-4.3": ["xAI", "openrouter"],
"grok-4.3-latest": ["xAI"],
"mistral-large-2512": ["mistral"],
"mistral-small-2603": ["mistral"],
"codestral-2508": ["mistral"],
"devstral-2512": ["mistral"],
"ministral-14b-2512": ["mistral"],
"ministral-8b-2512": ["mistral"],
"ministral-3b-2512": ["mistral"],
"mistral-large-2512": ["mistral", "openrouter"],
"mistral-small-2603": ["mistral", "openrouter"],
"codestral-2508": ["mistral", "openrouter"],
"devstral-2512": ["mistral", "openrouter"],
"ministral-14b-2512": ["mistral", "openrouter"],
"ministral-8b-2512": ["mistral", "openrouter"],
"ministral-3b-2512": ["mistral", "openrouter"],
"us.anthropic.claude-opus-4-7": ["bedrock"],
"global.anthropic.claude-opus-4-7": ["bedrock"],
"fireworks-ai-4.1b-to-16b": ["fireworks"],
Expand Down Expand Up @@ -885,8 +885,8 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"gpt-audio-1.5": ["openai", "azure"],
"gpt-audio-mini-2025-12-15": ["openai", "azure"],
"gpt-audio-mini-2025-10-06": ["openai", "azure"],
"gpt-audio": ["openai", "azure"],
"gpt-audio-mini": ["openai", "azure"],
"gpt-audio": ["openai", "azure", "openrouter"],
"gpt-audio-mini": ["openai", "azure", "openrouter"],
"gpt-realtime-2025-08-28": ["openai", "azure"],
"gpt-realtime-2": ["openai", "azure"],
"gpt-realtime-1.5": ["openai", "azure"],
Expand Down Expand Up @@ -1036,32 +1036,32 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"openai/gpt-oss-120b": ["groq", "together", "baseten"],
"openai/gpt-oss-20b": ["groq"], // NOTE: We use groq pricing for this and Together pricing for the 120B model
"o4-mini-deep-research-2025-06-26": ["openai", "azure"],
"o4-mini-deep-research": ["openai", "azure"],
"o4-mini-deep-research": ["openai", "azure", "openrouter"],
"o3-deep-research-2025-06-26": ["openai", "azure"],
"o3-deep-research": ["openai", "azure"],
"o3-deep-research": ["openai", "azure", "openrouter"],
"accounts/fireworks/models/gpt-oss-120b": ["fireworks"],
"accounts/fireworks/models/gpt-oss-safeguard-120b": ["fireworks"],
"accounts/fireworks/models/gpt-oss-20b": ["fireworks"],
"accounts/fireworks/models/gpt-oss-safeguard-20b": ["fireworks"],
"gpt-oss-120b": ["cerebras"],
"gpt-oss-120b": ["cerebras", "openrouter"],
"accounts/fireworks/models/qwen3-coder-480b-instruct-bf16": ["fireworks"],
"accounts/fireworks/models/kimi-k2-instruct-0905": ["fireworks"],
"accounts/fireworks/models/deepseek-v2p5": ["fireworks"],
"accounts/fireworks/models/deepseek-v2-lite-chat": ["fireworks"],
"accounts/fireworks/models/kimi-k2-instruct": ["fireworks"],
"grok-latest": ["xAI"],
"grok-latest": ["xAI", "openrouter"],
"gemma-4-31b": ["cerebras"],
"gpt-5.4-mini-2026-03-17": ["openai", "azure"],
"pearl-ai/gemma-4-31b-it": ["together"],
"gpt-5-mini": ["openai", "azure"],
"gpt-5-nano": ["openai", "azure"],
"gpt-5-mini": ["openai", "azure", "openrouter"],
"gpt-5-nano": ["openai", "azure", "openrouter"],
"global.anthropic.claude-opus-4-6-v1": ["bedrock"],
"gemini-3.1-flash-lite-image": ["google", "vertex"],
"publishers/google/models/gemini-3.1-flash-lite-image": ["vertex"],
"groq/compound": ["groq"],
"groq/compound-mini": ["groq"],
"mistral-medium-2604": ["mistral"],
"grok-4.5": ["xAI"],
"grok-4.5": ["xAI", "openrouter"],
"grok-4.5-latest": ["xAI"],
"grok-build-latest": ["xAI"],
"labs-leanstral-1-5": ["mistral"],
Expand All @@ -1075,6 +1075,34 @@ export const AvailableEndpointTypes: { [name: string]: ModelEndpointType[] } = {
"google.gemma-4-26b-a4b": ["bedrock"],
"google.gemma-4-e2b": ["bedrock"],
"accounts/fireworks/models/nemotron-3-ultra-nvfp4": ["fireworks"],
"gpt-5.4": ["openai", "azure", "openrouter"],
"gpt-5.2": ["openai", "azure", "openrouter"],
"gpt-5.1": ["openai", "azure", "openrouter"],
"o3-pro": ["openai", "azure", "openrouter"],
o3: ["openai", "azure", "openrouter"],
"o4-mini": ["openai", "azure", "openrouter"],
"gpt-4.1": ["openai", "azure", "openrouter"],
"gpt-4.1-mini": ["openai", "azure", "openrouter"],
"gpt-4.1-nano": ["openai", "azure", "openrouter"],
"o1-pro": ["openai", "azure", "openrouter"],
"gpt-4o-mini-search-preview": ["openai", "azure", "openrouter"],
"gpt-4o-search-preview": ["openai", "azure", "openrouter"],
"o3-mini": ["openai", "azure", "openrouter"],
o1: ["openai", "azure", "openrouter"],
"gpt-4o-2024-11-20": ["openai", "azure", "openrouter"],
"gpt-4o-2024-08-06": ["openai", "azure", "openrouter"],
"gpt-4o-mini": ["openai", "azure", "openrouter"],
"gpt-4o-mini-2024-07-18": ["openai", "azure", "openrouter"],
"gpt-4o": ["openai", "azure", "openrouter"],
"gpt-4-turbo": ["openai", "azure", "openrouter"],
"gpt-3.5-turbo-instruct": ["openai", "azure", "openrouter"],
"gpt-3.5-turbo-16k": ["openai", "azure", "openrouter"],
"gpt-3.5-turbo": ["openai", "azure", "openrouter"],
"gpt-4": ["openai", "azure", "openrouter"],
"command-a-03-2025": ["cohere"],
"command-r-plus-08-2024": ["cohere", "openrouter"],
"command-r-08-2024": ["cohere", "openrouter"],
"command-r7b-12-2024": ["cohere", "openrouter"],
};

const modelEndpointAvailableModels = getAvailableModels();
Expand Down Expand Up @@ -1141,6 +1169,8 @@ export const AISecretTypes: { [keyName: string]: ModelEndpointType } = {
CEREBRAS_API_KEY: "cerebras",
REPLICATE_API_KEY: "replicate",
BASETEN_API_KEY: "baseten",
COHERE_API_KEY: "cohere",
OPENROUTER_API_KEY: "openrouter",
};

export const CloudSecretTypes: { [keyName: string]: ModelEndpointType } = {
Expand All @@ -1150,6 +1180,10 @@ export const CloudSecretTypes: { [keyName: string]: ModelEndpointType } = {
DATABRICKS_DEFAULT_CREDENTIALS: "databricks",
};

export const SelfHostedSecretTypes: { [keyName: string]: ModelEndpointType } = {
OLLAMA_DEFAULT_CREDENTIALS: "ollama",
};

export const EndpointProviderToBaseURL: {
[name in ModelEndpointType]: string | null;
} = {
Expand All @@ -1168,6 +1202,8 @@ export const EndpointProviderToBaseURL: {
baseten: "https://inference.baseten.co/v1",
cerebras: "https://api.cerebras.ai/v1",
xAI: "https://api.x.ai/v1",
cohere: "https://api.cohere.com/compatibility/v1",
Comment thread
cpinn marked this conversation as resolved.
openrouter: "https://openrouter.ai/api/v1",
bedrock: null,
vertex: null,
azure: null,
Expand Down
Loading
Loading