[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-19 04:49:54 +00:00
parent 2dad12b898
commit 4ecdca19d6
3 changed files with 5 additions and 5 deletions

View File

@ -30,10 +30,10 @@ This project is a simple chatbot application built using Python, integrating a d
```
# Together API key
TOGETHER_API_KEY="YOUR_API_KEY"
# Groq API key
GROQ_API_KEY = "YOUR_API_KEY"
# MySQL connectionDB (if you're running locally)
DB_USER = "<DB_USER_NAME>"
DB_PASSWORD = "<DB_USER_NAME>"

View File

@ -87,7 +87,7 @@ class Chatbot:
return "conversation-terminated"
else:
bot_response = self.llm_service.generate_response(self.conversation_history)
print(f"Bot : ",bot_response)
print(f"Bot : ", bot_response)
self.conversation_history.append(
{"role": "assistant", "content": bot_response}
)
@ -120,7 +120,7 @@ class Chatbot:
try:
user_input = "/stop"
bot_response = "conversation-terminated"
print(f"Bot : ",bot_response)
print(f"Bot : ", bot_response)
self.db.insert_chat_data(self.chat_id_pk, user_input, bot_response)
self.db.insert_chat_history(current_time, is_stream)
except Exception as e:

View File

@ -156,7 +156,7 @@ class ChatDatabase:
cursor = conn.cursor()
cursor.execute(
"""
SELECT chat_id FROM ChatDB.Chat_history WHERE
SELECT chat_id FROM ChatDB.Chat_history WHERE
chat_id=(SELECT MAX(chat_id) FROM ChatDB.Chat_history)
"""
)