mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-20 05:29:48 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2dad12b898
commit
4ecdca19d6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user