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).
Parameters
Section titled “Parameters”Record<string, unknown>
Returns
Section titled “Returns”object
chat:
Record<string,unknown>
stream
Section titled “stream”stream:
boolean