mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 21:15:52 +08:00
fix: fetch configured model providers (#13924)
This commit is contained in:
parent
ed7851a4b3
commit
653f6c2d46
@ -100,6 +100,13 @@ class ProviderManager:
|
|||||||
tenant_id, provider_name_to_provider_records_dict
|
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
|
# Get all provider model records of the workspace
|
||||||
provider_name_to_provider_model_records_dict = self._get_all_provider_models(tenant_id)
|
provider_name_to_provider_model_records_dict = self._get_all_provider_models(tenant_id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user