Spaces:
Sleeping
Sleeping
added temperature and increased token
Browse files
app.py
CHANGED
|
@@ -70,7 +70,8 @@ def chat_with_ai(user_input):
|
|
| 70 |
response = client.chat.completions.create(
|
| 71 |
model=CHAT_DEPLOYMENT,
|
| 72 |
messages=[{"role": "user", "content": user_input}],
|
| 73 |
-
|
|
|
|
| 74 |
)
|
| 75 |
output = response.choices[0].message.content.strip()
|
| 76 |
|
|
|
|
| 70 |
response = client.chat.completions.create(
|
| 71 |
model=CHAT_DEPLOYMENT,
|
| 72 |
messages=[{"role": "user", "content": user_input}],
|
| 73 |
+
temperature=0.8,
|
| 74 |
+
max_tokens=700
|
| 75 |
)
|
| 76 |
output = response.choices[0].message.content.strip()
|
| 77 |
|