mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 12:49:11 +08:00
fix: customize model credentials were invalid despite the provider credentials being active (#8864)
This commit is contained in:
parent
6cd22f3bca
commit
49af18fbd6
@ -119,7 +119,7 @@ class ProviderConfiguration(BaseModel):
|
|||||||
credentials = model_configuration.credentials
|
credentials = model_configuration.credentials
|
||||||
break
|
break
|
||||||
|
|
||||||
if self.custom_configuration.provider:
|
if not credentials and self.custom_configuration.provider:
|
||||||
credentials = self.custom_configuration.provider.credentials
|
credentials = self.custom_configuration.provider.credentials
|
||||||
|
|
||||||
return credentials
|
return credentials
|
||||||
|
Loading…
x
Reference in New Issue
Block a user