Daniel00611 commited on
Commit
de866c0
·
verified ·
1 Parent(s): b246767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -171,7 +171,14 @@ async def chat(request: ChatRequest):
171
  messages.append({
172
  "role": "assistant",
173
  "content": None,
174
- "tool_calls": [tool_call]
 
 
 
 
 
 
 
175
  })
176
  messages.append({
177
  "role": "tool",
 
171
  messages.append({
172
  "role": "assistant",
173
  "content": None,
174
+ "tool_calls": [{
175
+ "id": tool_call.id,
176
+ "type": "function",
177
+ "function": {
178
+ "name": tool_call.function.name,
179
+ "arguments": tool_call.function.arguments
180
+ }
181
+ }]
182
  })
183
  messages.append({
184
  "role": "tool",