Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,7 @@ def respond(message,history):
|
|
| 174 |
|
| 175 |
messages.append({"role":"user","content": message})
|
| 176 |
|
| 177 |
-
response=client.chat_completion(messages, temperature=0.2
|
| 178 |
|
| 179 |
return response['choices'][0]['message']['content'].strip() #storing value of response in a readable format to display
|
| 180 |
|
|
|
|
| 174 |
|
| 175 |
messages.append({"role":"user","content": message})
|
| 176 |
|
| 177 |
+
response=client.chat_completion(messages, temperature=0.2)#capping how many words the LLM is allowed to generate as a respond (100 words)
|
| 178 |
|
| 179 |
return response['choices'][0]['message']['content'].strip() #storing value of response in a readable format to display
|
| 180 |
|