sriting commited on
Commit
3dfdb50
·
1 Parent(s): 3243112

fix: bool type error

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -187,8 +187,8 @@ def submit(sender_value, chatbot_value):
187
 
188
  # Reasoning content (tool type)
189
  message_content.append({
190
- "copyable": False,
191
- "editable": False,
192
  "type": "tool",
193
  "content": "",
194
  "options": {
@@ -237,7 +237,6 @@ def submit(sender_value, chatbot_value):
237
  else:
238
  reasoning_duration = 0.0
239
  thought_cost_time = "0.00"
240
- # Simplify options structure
241
  message_content[-2]["options"] = {
242
  "title": f"End of Thought ({thought_cost_time}s)"
243
  }
 
187
 
188
  # Reasoning content (tool type)
189
  message_content.append({
190
+ "copyable": "false",
191
+ "editable": "false",
192
  "type": "tool",
193
  "content": "",
194
  "options": {
 
237
  else:
238
  reasoning_duration = 0.0
239
  thought_cost_time = "0.00"
 
240
  message_content[-2]["options"] = {
241
  "title": f"End of Thought ({thought_cost_time}s)"
242
  }