mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 23:22:57 +01:00
Bug fix for ad login and updated async functionality on chat completion
This commit is contained in:
parent
46c4a3122b
commit
78d1f0ab52
8 changed files with 93 additions and 109 deletions
|
|
@ -100,7 +100,7 @@ class CompletionsBody(BaseModel):
|
|||
responses={200: {"model": OpenAICompletion}},
|
||||
tags=["Contextual Completions"],
|
||||
)
|
||||
def prompt_completion(
|
||||
async def prompt_completion(
|
||||
request: Request,
|
||||
body: CompletionsBody,
|
||||
db: Session = Depends(deps.get_db),
|
||||
|
|
@ -148,4 +148,4 @@ def prompt_completion(
|
|||
include_sources=body.include_sources,
|
||||
context_filter=body.context_filter,
|
||||
)
|
||||
return chat_completion(request, chat_body)
|
||||
return await chat_completion(request, chat_body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue