Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,7 +171,14 @@ async def chat(request: ChatRequest):
|
|
| 171 |
messages.append({
|
| 172 |
"role": "assistant",
|
| 173 |
"content": None,
|
| 174 |
-
"tool_calls": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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",
|