feat: patch model listing to actually match handle [LET-5888] (#5754)

This commit is contained in:
Sarah Wooders
2025-10-27 15:30:48 -07:00
committed by Caren Thomas
parent 042a32d371
commit e7fff12da0
14 changed files with 60 additions and 82 deletions

View File

@@ -26,6 +26,7 @@ from letta.errors import (
AgentFileImportError,
AgentNotFoundForExportError,
BedrockPermissionError,
HandleNotFoundError,
LettaAgentNotFoundError,
LettaExpiredError,
LettaInvalidArgumentError,
@@ -369,6 +370,7 @@ def create_application() -> "FastAPI":
app.add_exception_handler(LettaAgentNotFoundError, _error_handler_404_agent)
app.add_exception_handler(LettaUserNotFoundError, _error_handler_404_user)
app.add_exception_handler(AgentNotFoundForExportError, _error_handler_404)
app.add_exception_handler(HandleNotFoundError, _error_handler_404)
# 410 Expired errors
app.add_exception_handler(LettaExpiredError, _error_handler_410)