Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def respond(message, history):
|
|
| 11 |
messages.append({"role":"user", "content": message})
|
| 12 |
response = client.chat_completion(
|
| 13 |
messages,
|
| 14 |
-
max_tokens =
|
| 15 |
)
|
| 16 |
print(response["choices"][0]["message"]["content"].strip())
|
| 17 |
return response["choices"][0]["message"]["content"].strip()
|
|
|
|
| 11 |
messages.append({"role":"user", "content": message})
|
| 12 |
response = client.chat_completion(
|
| 13 |
messages,
|
| 14 |
+
max_tokens = 1000 #change the length
|
| 15 |
)
|
| 16 |
print(response["choices"][0]["message"]["content"].strip())
|
| 17 |
return response["choices"][0]["message"]["content"].strip()
|