bstraehle commited on
Commit
47417a1
1 Parent(s): 7404b80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -135,8 +135,8 @@ def execute_tool_call(tool_call):
135
  name = tool_call.function.name
136
  args = {}
137
 
138
- #if tool_call.function.arguments:
139
- # args = json.loads(tool_call.function.arguments)
140
 
141
  return tools[name](**args)
142
 
 
135
  name = tool_call.function.name
136
  args = {}
137
 
138
+ if len(tool_call.function.arguments) > 10:
139
+ args = json.loads(tool_call.function.arguments)
140
 
141
  return tools[name](**args)
142