Skip to content

Function: resolveRoute()

resolveRoute(input): object

Select the lowest-overhead upstream that preserves the client contract.

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

{ background: boolean; customTools: boolean; parallelTools: boolean; previousResponse: boolean; reasoning: boolean; storage: boolean; structuredOutput: boolean; tools: boolean; unsupportedOpenResponsesTools: boolean; webSearch: boolean; } = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

string = ...

string = ...

{ 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")[] = ...

object

clientProtocol: "openai-responses" | "openai-chat" | "anthropic-messages" | "openai-embeddings"

target: object

aliases: string[]

capabilities: object

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

optional endpoint?: object

optional class?: "chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"

optional description?: string

optional dimension?: number

optional displayName?: string

optional family?: string

optional modelServiceName?: string

name: string

optional profile?: object

optional cost?: number

optional quality?: number

optional speed?: number

optional reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]

optional serviceNames?: Record<string, string>

optional state?: string

optional status?: object

deprecated: boolean

optional supportsTools?: boolean

optional task?: string

optional family?: string

id: string

optional modelServiceName?: string

reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]

translateRequest: boolean

translateResponse: boolean

upstreamModel: string

upstreamProtocol: "databricks-ai-gateway-codex" | "databricks-responses" | "databricks-open-responses" | "databricks-chat" | "databricks-anthropic" | "databricks-embeddings" | "ai-sdk"