Skip to content

Commit

Permalink
fix: patch typo in azure provider that broke it (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker authored Jan 20, 2025
1 parent b892258 commit 5419a94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions letta/schemas/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,13 @@ def list_llm_models(self) -> List[LLMConfig]:
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

Expand Down
4 changes: 2 additions & 2 deletions letta/server/rest_api/routers/v1/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def list_llm_backends(
):

models = server.list_llm_models()
print(models)
# print(models)
return models


Expand All @@ -28,5 +28,5 @@ def list_embedding_backends(
):

models = server.list_embedding_models()
print(models)
# print(models)
return models

0 comments on commit 5419a94

Please sign in to comment.