Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -249,7 +249,7 @@ Provide a brief, focused analysis:"""
|
|
249 |
messages=messages,
|
250 |
max_tokens=500,
|
251 |
temperature=0.3,
|
252 |
-
chat_template_kwargs = {"enable_thinking":
|
253 |
)
|
254 |
|
255 |
return response.choices[0].message.content.strip()
|
@@ -366,7 +366,7 @@ class IntelligentAgent:
|
|
366 |
messages=messages,
|
367 |
max_tokens=max_tokens,
|
368 |
temperature=temperature,
|
369 |
-
chat_template_kwargs = {"enable_thinking":
|
370 |
)
|
371 |
return response.choices[0].message.content.strip()
|
372 |
except Exception as chat_error:
|
@@ -378,7 +378,7 @@ class IntelligentAgent:
|
|
378 |
prompt,
|
379 |
max_new_tokens=max_tokens,
|
380 |
temperature=temperature,
|
381 |
-
chat_template_kwargs = {"enable_thinking":
|
382 |
do_sample=temperature > 0
|
383 |
)
|
384 |
return response.strip()
|
@@ -648,7 +648,7 @@ Question: {question}
|
|
648 |
Answer:"""
|
649 |
|
650 |
try:
|
651 |
-
response = self._chat_completion(answer_prompt, max_tokens=500, temperature=0.3, chat_template_kwargs = {"enable_thinking":
|
652 |
return response
|
653 |
|
654 |
except Exception as e:
|
|
|
249 |
messages=messages,
|
250 |
max_tokens=500,
|
251 |
temperature=0.3,
|
252 |
+
chat_template_kwargs = {"enable_thinking": False}
|
253 |
)
|
254 |
|
255 |
return response.choices[0].message.content.strip()
|
|
|
366 |
messages=messages,
|
367 |
max_tokens=max_tokens,
|
368 |
temperature=temperature,
|
369 |
+
chat_template_kwargs = {"enable_thinking": False}
|
370 |
)
|
371 |
return response.choices[0].message.content.strip()
|
372 |
except Exception as chat_error:
|
|
|
378 |
prompt,
|
379 |
max_new_tokens=max_tokens,
|
380 |
temperature=temperature,
|
381 |
+
chat_template_kwargs = {"enable_thinking": False},
|
382 |
do_sample=temperature > 0
|
383 |
)
|
384 |
return response.strip()
|
|
|
648 |
Answer:"""
|
649 |
|
650 |
try:
|
651 |
+
response = self._chat_completion(answer_prompt, max_tokens=500, temperature=0.3, chat_template_kwargs = {"enable_thinking": False} )
|
652 |
return response
|
653 |
|
654 |
except Exception as e:
|