Skip to content

Function: responsesToChat()

responsesToChat(body): object

Lower a Responses request body to a chat-completions body. Returns the chat body plus whether the caller asked for streaming (the server needs it to pick the upstream accept header and the translation path).

Record<string, unknown>

object

chat: Record<string, unknown>

stream: boolean