Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: handles bug (#765)
cthomas44a0ae583aab
diff --git a/letta/schemas/llm_config_overrides.py b/letta/schemas/llm_config_overrides.pyindex 02ae4d48a..f8f286ae2 100644--- a/letta/schemas/llm_config_overrides.py+++ b/letta/schemas/llm_config_overrides.py@@ -19,7 +19,7 @@ LLM_HANDLE_OVERRIDES: Dict[str, Dict[str, str]] = {"gpt-4-turbo-2024-04-09": "gpt-4-turbo-apr","gpt-4o-2024-05-13": "gpt-4o-may","gpt-4o-2024-08-06": "gpt-4o-aug",- "gpt-4o-mini-2024-07-18": "gpt-4o-mini",+ "gpt-4o-mini-2024-07-18": "gpt-4o-mini-jul",},"together": {"Qwen/Qwen2.5-72B-Instruct-Turbo": "qwen-2.5-72b-instruct",diff --git a/tests/test_server.py b/tests/test_server.pyindex e39013592..fe3dc1af5 100644--- a/tests/test_server.py+++ b/tests/test_server.py@@ -1238,3 +1238,12 @@ def test_messages_with_provider_override(server: SyncServer, user_id: str):assert completion_tokens == usage.completion_tokensassert prompt_tokens == usage.prompt_tokensassert total_tokens == usage.total_tokens+++def test_unique_handles_for_provider_configs(server: SyncServer):+ models = server.list_llm_models()+ model_handles = [model.handle for model in models]+ assert sorted(model_handles) == sorted(list(set(model_handles))), "All models should have unique handles"+ embeddings = server.list_embedding_models()+ embedding_handles = [embedding.handle for embedding in embeddings]+ assert sorted(embedding_handles) == sorted(list(set(embedding_handles))), "All embeddings should have unique handles"