tab
Browse files
main.py
CHANGED
@@ -32,7 +32,7 @@ def get_completion_from_messages(messages, model="solar-1-mini-chat", temperatur
|
|
32 |
messages=messages,
|
33 |
temperature=temperature, # this is the degree of randomness of the model's output
|
34 |
)
|
35 |
-
|
36 |
|
37 |
# Chat message component (renders a chat bubble)
|
38 |
def ChatMessage(msg, user):
|
|
|
32 |
messages=messages,
|
33 |
temperature=temperature, # this is the degree of randomness of the model's output
|
34 |
)
|
35 |
+
return response.choices[0].message.content
|
36 |
|
37 |
# Chat message component (renders a chat bubble)
|
38 |
def ChatMessage(msg, user):
|