Skip to content

Function: upstreamUrl()

upstreamUrl(host, route): string

Resolve the exact upstream URL for a deterministic direct route.

string

"openai-responses" | "openai-chat" | "anthropic-messages" | "openai-embeddings" = ...

{ aliases: string[]; capabilities: { aiGatewayCodex: boolean; anthropic: boolean; chat: boolean; customTools: boolean; embeddings: boolean; openResponses: boolean; parallelTools: boolean; reasoning: boolean; responses: boolean; streaming: boolean; structuredOutput: boolean; tools: boolean; webSearch: boolean; }; displayName: string; endpoint?: { class?: "chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"; description?: string; dimension?: number; displayName?: string; family?: string; modelServiceName?: string; name: string; profile?: { cost?: number; quality?: number; speed?: number; }; reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]; serviceNames?: Record<string, string>; state?: string; status?: { deprecated: boolean; }; supportsTools?: boolean; task?: string; }; family?: string; id: string; modelServiceName?: string; reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]; } = ...

string[] = ...

{ aiGatewayCodex: boolean; anthropic: boolean; chat: boolean; customTools: boolean; embeddings: boolean; openResponses: boolean; parallelTools: boolean; reasoning: boolean; responses: boolean; streaming: boolean; structuredOutput: boolean; tools: boolean; webSearch: boolean; } = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

string = ...

{ class?: "chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"; description?: string; dimension?: number; displayName?: string; family?: string; modelServiceName?: string; name: string; profile?: { cost?: number; quality?: number; speed?: number; }; reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]; serviceNames?: Record<string, string>; state?: string; status?: { deprecated: boolean; }; supportsTools?: boolean; task?: string; } = ...

"chat-thinking" | "chat-balanced" | "chat-fast" | "embedding" = ...

string = ...

number = ...

string = ...

string = ...

string = ...

string = ...

{ cost?: number; quality?: number; speed?: number; } = ...

number = ...

number = ...

number = ...

("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[] = ...

Record<string, string> = ...

string = ...

{ deprecated: boolean; } = ...

boolean = ...

boolean = ...

string = ...

string = ...

string = ...

string = ...

("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[] = ...

boolean = ...

boolean = ...

string = ...

"databricks-ai-gateway-codex" | "databricks-responses" | "databricks-open-responses" | "databricks-chat" | "databricks-anthropic" | "databricks-embeddings" | "ai-sdk" = ...

string