hsuwill000 commited on
Commit
3b859db
·
verified ·
1 Parent(s): e5d5ddc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()