Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|