mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 23:22:57 +01:00
Updated with docker file"
This commit is contained in:
parent
e1e940bbbd
commit
333a3f3913
7 changed files with 148 additions and 137 deletions
|
|
@ -118,9 +118,10 @@ def create_chat_item(db, sender, content, conversation_id):
|
|||
content=content,
|
||||
conversation_id=conversation_id
|
||||
)
|
||||
chat_history = crud.chat.get_conversation(db, conversation_id=conversation_id)
|
||||
chat_history.generate_title()
|
||||
return crud.chat_item.create(db, obj_in=chat_item_create)
|
||||
|
||||
|
||||
@completions_router.post(
|
||||
"/chat",
|
||||
response_model=None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue