SergeyO7 commited on
Commit
b838851
·
verified ·
1 Parent(s): 96187c5

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -1
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 self.model.acreate(
 
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": [