mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix: replace deprecated Pydantic .dict() with .model_dump() (#12339)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user