From bcd7b26e0fa502f2da169fac335cf864996eb1dc Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Fri, 6 Dec 2024 13:05:30 -0800 Subject: [PATCH] fix: fix runtime warnings with the server (#2178) --- letta/server/rest_api/routers/v1/agents.py | 2 +- letta/server/rest_api/routers/v1/blocks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.py index 6a583c3a..20661ef9 100644 --- a/letta/server/rest_api/routers/v1/agents.py +++ b/letta/server/rest_api/routers/v1/agents.py @@ -465,7 +465,7 @@ async def send_message( @router.post( "/{agent_id}/messages/stream", response_model=None, - operation_id="create_agent_message", + operation_id="create_agent_message_stream", responses={ 200: { "description": "Successful response", diff --git a/letta/server/rest_api/routers/v1/blocks.py b/letta/server/rest_api/routers/v1/blocks.py index 798e7aa4..f58172d6 100644 --- a/letta/server/rest_api/routers/v1/blocks.py +++ b/letta/server/rest_api/routers/v1/blocks.py @@ -76,7 +76,7 @@ def get_block( raise HTTPException(status_code=404, detail="Block not found") -@router.patch("/{block_id}/attach", response_model=Block, operation_id="update_agent_memory_block") +@router.patch("/{block_id}/attach", response_model=Block, operation_id="link_agent_memory_block") def link_agent_memory_block( block_id: str, agent_id: str = Query(..., description="The unique identifier of the agent to attach the source to."), @@ -96,7 +96,7 @@ def link_agent_memory_block( return block -@router.patch("/{block_id}/detach", response_model=Memory, operation_id="update_agent_memory_block") +@router.patch("/{block_id}/detach", response_model=Memory, operation_id="unlink_agent_memory_block") def unlink_agent_memory_block( block_id: str, agent_id: str = Query(..., description="The unique identifier of the agent to attach the source to."),