-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/lukas-holzner/codefusion-ha…
…ckathon * 'main' of https://github.com/lukas-holzner/codefusion-hackathon: Fixed Bugs
- Loading branch information
Showing
5 changed files
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ def get_db(): | |
try: | ||
yield db | ||
finally: | ||
db.close() | ||
db.close() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from openai import OpenAI | ||
from app.schemas import ChatMessage, Conversation | ||
|
||
def init_conversation(system_prompt: str) -> ChatMessage: | ||
from datetime import datetime, timezone | ||
def init_conversation(conversation: Conversation) -> Conversation: | ||
#TODO: Implement this function | ||
return ChatMessage(message="", author="", timestamp=datetime.now()) | ||
conversation.chat_messages = [] | ||
return conversation | ||
|
||
# Evaluates if it's part of the conversation or should be added as a meeting agenda | ||
def generate_response(conversation: Conversation, system_prompt: str) -> Conversation: | ||
def generate_response(conversation: Conversation, meeting_type: str) -> Conversation: | ||
#TODO: Implement this function | ||
return conversation |