You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the createChatCompletion operation there is only json as response type. However the same endpoint returns event stream when the request is created with stream = true
Because of this openapi-based code generators do not handle SSE response.
Adding text/event-stream to the response types, will help using the schema without additional effort.
Current file:
/chat/completions:
post:
operationId: createChatCompletiontags:
- Chatsummary: Creates a model response for the given chat conversation.requestBody:
required: truecontent:
application/json:
schema:
$ref: "#/components/schemas/CreateChatCompletionRequest"responses:
"200":
description: OKcontent:
application/json:
schema:
$ref: "#/components/schemas/CreateChatCompletionResponse"
The text was updated successfully, but these errors were encountered:
In the
createChatCompletion
operation there is onlyjson
as response type. However the same endpoint returns event stream when the request is created withstream = true
Because of this openapi-based code generators do not handle SSE response.
Adding
text/event-stream
to the response types, will help using the schema without additional effort.Current file:
The text was updated successfully, but these errors were encountered: