Skip to content

Commit

Permalink
jksjdk
Browse files Browse the repository at this point in the history
  • Loading branch information
GuidoGrogger committed Sep 30, 2024
1 parent b9c6b44 commit 64a06b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/app/routers/meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, [])

Expand Down

0 comments on commit 64a06b0

Please sign in to comment.