mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-13 05:43:44 +00:00
feat: Add stream information to generate SDKs (#1569)
This commit is contained in:
@@ -54,6 +54,13 @@ class ChatBody(BaseModel):
|
||||
response_model=None,
|
||||
responses={200: {"model": OpenAICompletion}},
|
||||
tags=["Contextual Completions"],
|
||||
openapi_extra={
|
||||
"x-fern-streaming": {
|
||||
"stream-condition": "stream",
|
||||
"response": {"$ref": "#/components/schemas/OpenAICompletion"},
|
||||
"response-stream": {"$ref": "#/components/schemas/OpenAICompletion"},
|
||||
}
|
||||
},
|
||||
)
|
||||
def chat_completion(
|
||||
request: Request, body: ChatBody
|
||||
|
Reference in New Issue
Block a user