fix: replace deprecated Pydantic .dict() with .model_dump() (#12339)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2026-01-09 12:37:58 -05:00
committed by GitHub
parent 849ae13118
commit 434647e4e4

View File

@@ -418,7 +418,7 @@ async def get_microagents(
return JSONResponse(
status_code=status.HTTP_200_OK,
content={'microagents': [m.dict() for m in microagents]},
content={'microagents': [m.model_dump() for m in microagents]},
)
except Exception as e:
logger.error(f'Error getting microagents: {e}')