mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
feat: Add stream information to generate SDKs (#1569)
This commit is contained in:
parent
3e67e21d38
commit
24fae660e6
3 changed files with 32 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue