fix: patch typo in azure provider that broke it (#705)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user