Function: responseToChatCompletion()
responseToChatCompletion(
response,model):Record<string,unknown>
Lift a native Responses response object into a chat-completions body.
Inverse of chatToResponse: used after a Responses-only upstream call
when the client spoke Chat Completions.
Parameters
Section titled “Parameters”response
Section titled “response”Record<string, unknown>
string
Returns
Section titled “Returns”Record<string, unknown>