From eda6020712c70728556984fcd0dd15547fa3a2ed Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 20 Jan 2025 10:41:37 -0800 Subject: [PATCH] fix: patch typo in azure provider that broke it (#705) --- letta/schemas/providers.py | 9 +++++++-- letta/server/rest_api/routers/v1/llms.py | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/letta/schemas/providers.py b/letta/schemas/providers.py index d1749448..0699af98 100644 --- a/letta/schemas/providers.py +++ b/letta/schemas/providers.py @@ -614,8 +614,13 @@ class AzureProvider(Provider): context_window_size = self.get_model_context_window(model_name) model_endpoint = get_azure_chat_completions_endpoint(self.base_url, model_name, self.api_version) configs.append( - LLMConfig(model=model_name, model_endpoint_type="azure", model_endpoint=model_endpoint, context_window=context_window_size), - handle=self.get_handle(model_name), + LLMConfig( + model=model_name, + model_endpoint_type="azure", + model_endpoint=model_endpoint, + context_window=context_window_size, + handle=self.get_handle(model_name), + ), ) return configs diff --git a/letta/server/rest_api/routers/v1/llms.py b/letta/server/rest_api/routers/v1/llms.py index 4536ae49..2c05aa48 100644 --- a/letta/server/rest_api/routers/v1/llms.py +++ b/letta/server/rest_api/routers/v1/llms.py @@ -18,7 +18,7 @@ def list_llm_backends( ): models = server.list_llm_models() - print(models) + # print(models) return models @@ -28,5 +28,5 @@ def list_embedding_backends( ): models = server.list_embedding_models() - print(models) + # print(models) return models