fix: patch typo in azure provider that broke it (#705)

This commit is contained in:
Charles Packer
2025-01-20 10:41:37 -08:00
committed by GitHub
parent 8ed332e137
commit eda6020712
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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