Updated with docker file"

This commit is contained in:
Saurab-Shrestha 2024-05-07 13:03:43 +05:45
parent e1e940bbbd
commit 333a3f3913
7 changed files with 148 additions and 137 deletions

View file

@ -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,