Skip to content

Function: chatToResponsesRequest()

chatToResponsesRequest(body): object

Raise a chat-completions request into a Responses request body. Inverse of responsesToChat: used when a chat client hits a Responses-only Databricks model (e.g. Codex) so the proxy can POST to /serving-endpoints/responses without the client knowing.

Record<string, unknown>

object

responses: Record<string, unknown>

stream: boolean