fix: fetch configured model providers (#13924)

pull/13929/head
Yeuoly 1 year ago committed by GitHub
parent ed7851a4b3
commit 653f6c2d46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -100,6 +100,13 @@ class ProviderManager:
tenant_id, provider_name_to_provider_records_dict
)
# append providers with langgenius/openai/openai
for provider_name in list(provider_name_to_provider_records_dict.keys()):
provider_id = ModelProviderID(provider_name)
provider_name_to_provider_records_dict[str(provider_id)] = provider_name_to_provider_records_dict[
provider_name
]
# Get all provider model records of the workspace
provider_name_to_provider_model_records_dict = self._get_all_provider_models(tenant_id)

Loading…
Cancel
Save