mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-05 17:21:02 +00:00
feat: Add stream information to generate SDKs (#1569)
This commit is contained in:
@@ -42,6 +42,13 @@ class CompletionsBody(BaseModel):
|
||||
summary="Completion",
|
||||
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 prompt_completion(
|
||||
request: Request, body: CompletionsBody
|
||||
|
Reference in New Issue
Block a user