Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,13 +60,13 @@ def respond(
|
|
60 |
if is_reasoning_start:
|
61 |
response += '> **Start thinking**\n\n'
|
62 |
is_reasoning_start = False
|
63 |
-
token = event.choices[0].delta.reasoning_content
|
64 |
response += token
|
65 |
else:
|
66 |
if is_reasoning_end:
|
67 |
response += '> **End thinking**\n\n'
|
68 |
is_reasoning_end = False
|
69 |
-
token = event.choices[0].delta.
|
70 |
response += token
|
71 |
yield response
|
72 |
except Exception as e:
|
|
|
60 |
if is_reasoning_start:
|
61 |
response += '> **Start thinking**\n\n'
|
62 |
is_reasoning_start = False
|
63 |
+
token = event.choices[0].delta.reasoning_content
|
64 |
response += token
|
65 |
else:
|
66 |
if is_reasoning_end:
|
67 |
response += '> **End thinking**\n\n'
|
68 |
is_reasoning_end = False
|
69 |
+
token = event.choices[0].delta.content
|
70 |
response += token
|
71 |
yield response
|
72 |
except Exception as e:
|