bstraehle commited on
Commit
049fb2a
·
verified ·
1 Parent(s): 58541f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -133,7 +133,10 @@ def get_run_steps(client, thread, run):
133
 
134
  def execute_tool_call(tool_call):
135
  name = tool_call.function.name
136
- args = json.loads(tool_call.function.arguments)
 
 
 
137
 
138
  return tools[name](**args)
139
 
 
133
 
134
  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