Skip to content

buildOpenAIResponsesProviderOptions

function buildOpenAIResponsesProviderOptions(opts, sessionId): Record<string, unknown> | null;

Build the provider-options bag for an OpenAI Responses model call. Returns null when the options compile to nothing (caller can skip merging entirely). The session id is required for the cache-key branch but ignored otherwise.

Parameter Type

opts

OpenAIResponsesCompactOptions

sessionId

string

Record<string, unknown> | null