Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -378,7 +378,8 @@ class MagAgent:
|
|
378 |
# Unified processing flow
|
379 |
img_path = self.download_tool(task_id)
|
380 |
|
381 |
-
response = await
|
|
|
382 |
messages=[{
|
383 |
"role": "user",
|
384 |
"content": [
|
|
|
378 |
# Unified processing flow
|
379 |
img_path = self.download_tool(task_id)
|
380 |
|
381 |
+
response = await asyncio.to_thread(
|
382 |
+
self.model.create,
|
383 |
messages=[{
|
384 |
"role": "user",
|
385 |
"content": [
|