From 64a06b0800d6831a2844a1d6a3b96e2a0488c81e Mon Sep 17 00:00:00 2001 From: GuidoGrogger Date: Mon, 30 Sep 2024 22:00:12 +0200 Subject: [PATCH] jksjdk --- backend/app/routers/meetings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app/routers/meetings.py b/backend/app/routers/meetings.py index 363b677..6945f7e 100644 --- a/backend/app/routers/meetings.py +++ b/backend/app/routers/meetings.py @@ -24,8 +24,12 @@ def get_conversation(db: Session, meeting_id: int, user_id: int) -> Conversation def create_new_conversation(db: Session, meeting_id: int, user_id: int): db_conversation = Conversation(meeting_id=meeting_id, user_id=user_id, system_prompt="") + db.add(db_conversation) + db.commit() - prompt = generate_initial_prompt("test", "Guido") + db_conversation = get_conversation(db, meeting_id=meeting_id, user_id=user_id) + + prompt = generate_initial_prompt(db_conversation.meeting.description, db_conversation.user.username) db_conversation.system_prompt = prompt initial_message = process_user_message(prompt, [])