Dango233 commited on
Commit
b1ee992
·
1 Parent(s): 5b9c64d

Temporary Patch for SiliconFlow API

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ class ConvoState:
196
 
197
  if chunk_content:
198
  dynamic_state.waiting_api = False
199
- full_response += chunk_content
200
  self.current["raw"] = full_response
201
  # Update Convo State
202
  think_complete = "</think>" in full_response
 
196
 
197
  if chunk_content:
198
  dynamic_state.waiting_api = False
199
+ full_response += chunk_content.replace("<think>","")
200
  self.current["raw"] = full_response
201
  # Update Convo State
202
  think_complete = "</think>" in full_response