Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
45 |
skipped = {token: False for token in skip_tokens} # 追蹤每個 token 是否已忽略過
|
46 |
|
47 |
for chunk in stream:
|
|
|
48 |
delta = chunk.choices[0].delta
|
49 |
if delta and delta.content:
|
50 |
content = delta.content.strip()
|
|
|
45 |
skipped = {token: False for token in skip_tokens} # 追蹤每個 token 是否已忽略過
|
46 |
|
47 |
for chunk in stream:
|
48 |
+
print("[DEBUG] chunk:", chunk)
|
49 |
delta = chunk.choices[0].delta
|
50 |
if delta and delta.content:
|
51 |
content = delta.content.strip()
|