From 83a4815fa8363dc0dbcdff28d4d949ae9ec817b5 Mon Sep 17 00:00:00 2001 From: Shubham Naik Date: Thu, 4 Sep 2025 14:10:32 -0700 Subject: [PATCH] chore: fix backend error fix (#4428) Co-authored-by: Shubham Naik --- letta/server/rest_api/routers/v1/internal_templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/letta/server/rest_api/routers/v1/internal_templates.py b/letta/server/rest_api/routers/v1/internal_templates.py index 99e8ed86..4a16162c 100644 --- a/letta/server/rest_api/routers/v1/internal_templates.py +++ b/letta/server/rest_api/routers/v1/internal_templates.py @@ -55,7 +55,8 @@ async def create_block( """ try: actor = await server.user_manager.get_actor_or_default_async(actor_id=actor_id) - return await server.block_manager.create_or_update_block_async(block, actor=actor) + block_obj = Block(**block.model_dump()) + return await server.block_manager.create_or_update_block_async(block_obj, actor=actor) except Exception as e: raise HTTPException(status_code=500, detail=str(e))