Skip to content

Commit

Permalink
fix: customize model credentials were invalid despite the provider cr…
Browse files Browse the repository at this point in the history
…edentials being active (langgenius#8864)
  • Loading branch information
takatost authored and lau-td committed Oct 23, 2024
1 parent f8de604 commit 434f6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/entities/provider_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_current_credentials(self, model_type: ModelType, model: str) -> Optional
credentials = model_configuration.credentials
break

if self.custom_configuration.provider:
if not credentials and self.custom_configuration.provider:
credentials = self.custom_configuration.provider.credentials

return credentials
Expand Down

0 comments on commit 434f6c3

Please sign in to comment.