Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: make custom llm config matching more robust (#1530)

cthomas925d7f6d5ee6
diff --git a/letta/server/server.py b/letta/server/server.py
index 6ade44862..2dcc7181b 100644
--- a/letta/server/server.py
+++ b/letta/server/server.py
@@ -1056,6 +1056,8 @@ class SyncServer(Server):
raise ValueError(f"LLM model {model_name} is not supported by {provider_name}")
except ValueError as e:
llm_configs = [config for config in self.get_local_llm_configs() if config.handle == handle]
+ if not llm_configs:
+ llm_configs = [config for config in self.get_local_llm_configs() if config.model == model_name]
if not llm_configs:
raise e