Spaces:
Sleeping
Sleeping
fruitpicker01
commited on
Commit
•
8bf8bbe
1
Parent(s):
02373fa
Update app.py
Browse files
app.py
CHANGED
@@ -178,12 +178,12 @@ def generate_message_mistral_generate(prompt, max_retries=5):
|
|
178 |
try:
|
179 |
chat_response = client_mistral_generate.chat.complete(
|
180 |
model="open-mistral-nemo",
|
|
|
|
|
181 |
messages=[
|
182 |
{
|
183 |
"role": "user",
|
184 |
-
"content": prompt
|
185 |
-
"max_tokens": 30,
|
186 |
-
"temperature": 0.8
|
187 |
},
|
188 |
]
|
189 |
)
|
@@ -205,12 +205,11 @@ def generate_message_mistral_check(prompt, max_retries=5):
|
|
205 |
try:
|
206 |
chat_response = client_mistral_check.chat.complete(
|
207 |
model="mistral-large-latest",
|
|
|
208 |
messages=[
|
209 |
{
|
210 |
"role": "user",
|
211 |
-
"content": prompt
|
212 |
-
"max_tokens": 30,
|
213 |
-
"temperature": 0.2
|
214 |
},
|
215 |
]
|
216 |
)
|
|
|
178 |
try:
|
179 |
chat_response = client_mistral_generate.chat.complete(
|
180 |
model="open-mistral-nemo",
|
181 |
+
"temperature": 0.8,
|
182 |
+
"max_tokens": 68,
|
183 |
messages=[
|
184 |
{
|
185 |
"role": "user",
|
186 |
+
"content": prompt
|
|
|
|
|
187 |
},
|
188 |
]
|
189 |
)
|
|
|
205 |
try:
|
206 |
chat_response = client_mistral_check.chat.complete(
|
207 |
model="mistral-large-latest",
|
208 |
+
"temperature": 0.2,
|
209 |
messages=[
|
210 |
{
|
211 |
"role": "user",
|
212 |
+
"content": prompt
|
|
|
|
|
213 |
},
|
214 |
]
|
215 |
)
|