Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,11 +56,7 @@ def respond(
|
|
56 |
|
57 |
|
58 |
for event in completion:
|
59 |
-
if
|
60 |
-
print(111111)
|
61 |
-
print(event.choices[0].delta.reasoning_content)
|
62 |
-
print(event.choices[0].delta.content)
|
63 |
-
if hasattr(event.choices[0].delta, 'reasoning_content'):
|
64 |
if is_reasoning_start:
|
65 |
response += '> **Start thinking**\n\n'
|
66 |
is_reasoning_start = False
|
|
|
56 |
|
57 |
|
58 |
for event in completion:
|
59 |
+
if hasattr(event.choices[0].delta, 'reasoning_content') and event.choices[0].delta.reasoning_content:
|
|
|
|
|
|
|
|
|
60 |
if is_reasoning_start:
|
61 |
response += '> **Start thinking**\n\n'
|
62 |
is_reasoning_start = False
|