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
  • Loading branch information
takatost committed Sep 28, 2024
1 parent 6cd22f3 commit 15fcdbe
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 15fcdbe

Please sign in to comment.