Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,9 +49,9 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
49 |
if delta.content:
|
50 |
output += delta.content
|
51 |
# 安全取得 reasoning_content,如果不存在就跳過
|
52 |
-
reasoning = getattr(delta, "reasoning_content", None)
|
53 |
-
if reasoning:
|
54 |
-
|
55 |
# 每個 chunk 都 yield 最新內容
|
56 |
yield {"role": "assistant", "content": output}
|
57 |
|
|
|
49 |
if delta.content:
|
50 |
output += delta.content
|
51 |
# 安全取得 reasoning_content,如果不存在就跳過
|
52 |
+
#reasoning = getattr(delta, "reasoning_content", None)
|
53 |
+
#if reasoning:
|
54 |
+
# output += reasoning
|
55 |
# 每個 chunk 都 yield 最新內容
|
56 |
yield {"role": "assistant", "content": output}
|
57 |
|