Skip to content

Function: gatewayModelSelection()

gatewayModelSelection(body, headers, defaults?, protocol?): object

Resolve request, header, configured, and protocol model-selection inputs.

Readonly<Record<string, unknown>>

Headers

string

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

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

object

readonly optional model?: string

readonly optional modelClass?: "chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"