debug
Browse files
main.py
CHANGED
@@ -65,8 +65,8 @@ def index():
|
|
65 |
def send(msg:str, messages:list[str]=None):
|
66 |
if not messages: messages = []
|
67 |
messages.append(msg.rstrip())
|
68 |
-
print(messages)
|
69 |
-
r = get_completion(messages) # get response from chat model
|
70 |
return (ChatMessage(msg, True), # The user's message
|
71 |
ChatMessage(r.rstrip(), False), # The chatbot's response
|
72 |
ChatInput()) # And clear the input field via an OOB swap
|
|
|
65 |
def send(msg:str, messages:list[str]=None):
|
66 |
if not messages: messages = []
|
67 |
messages.append(msg.rstrip())
|
68 |
+
print(messages[0])
|
69 |
+
r = get_completion(messages[0]) # get response from chat model
|
70 |
return (ChatMessage(msg, True), # The user's message
|
71 |
ChatMessage(r.rstrip(), False), # The chatbot's response
|
72 |
ChatInput()) # And clear the input field via an OOB swap
|