feat: make embedding_config optional on agent creation (#7553)
* feat: make embedding_config optional on agent creation - Remove requirement for embedding_config in agent creation - Add EmbeddingConfigRequiredError for operations that need embeddings - Add null checks in sleeptime agent creation, passage insert, archive creation - Register new error in app.py exception handlers 🐾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta <noreply@letta.com> * chore: update API schemas for optional embedding_config 🐾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta <noreply@letta.com> --------- Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
committed by
Caren Thomas
parent
a1fb295e69
commit
acd8dd7bcf
@@ -32,6 +32,7 @@ from letta.errors import (
|
||||
AgentFileImportError,
|
||||
AgentNotFoundForExportError,
|
||||
BedrockPermissionError,
|
||||
EmbeddingConfigRequiredError,
|
||||
HandleNotFoundError,
|
||||
LettaAgentNotFoundError,
|
||||
LettaExpiredError,
|
||||
@@ -470,6 +471,7 @@ def create_application() -> "FastAPI":
|
||||
app.add_exception_handler(LettaToolCreateError, _error_handler_400)
|
||||
app.add_exception_handler(LettaToolNameConflictError, _error_handler_400)
|
||||
app.add_exception_handler(AgentFileImportError, _error_handler_400)
|
||||
app.add_exception_handler(EmbeddingConfigRequiredError, _error_handler_400)
|
||||
app.add_exception_handler(ValueError, _error_handler_400)
|
||||
|
||||
# 404 Not Found errors
|
||||
|
||||
Reference in New Issue
Block a user