jdesiree commited on
Commit
31a90a8
·
verified ·
1 Parent(s): 4a2e2fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -225,7 +225,6 @@ def respond_with_enhanced_streaming(message, history):
225
  tool_call_args_str += tool_call_delta.function.arguments
226
 
227
  # Check if we have received the full tool call
228
- # This is a simple heuristic and might need refinement
229
  if tool_call_name and '}' in tool_call_args_str:
230
  try:
231
  tool_args = json.loads(tool_call_args_str)
 
225
  tool_call_args_str += tool_call_delta.function.arguments
226
 
227
  # Check if we have received the full tool call
 
228
  if tool_call_name and '}' in tool_call_args_str:
229
  try:
230
  tool_args = json.loads(tool_call_args_str)