This function processes completion requests by using the chat completions endpoint.
Returns a Response containing either:
Returns an error status code if:
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Chat completions
The response is of type object
.