Skip to content

Commit

Permalink
fixes for settings error
Browse files Browse the repository at this point in the history
  • Loading branch information
rounak610 committed Jun 3, 2024
1 parent eb94dcb commit aefdd8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superagi/models/models_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def fetch_api_keys(cls, session, organisation_id):
logging.error("No API key found for the provided model provider")
return []

api_keys = [{"provider": provider, "api_key": decrypt_data(api_key)} for provider, api_key in
api_key_info]
api_keys = [{"provider": provider, "api_key": decrypt_data(api_key)} for provider, api_key in api_key_info if api_key != 'EMPTY']

return api_keys

Expand Down

0 comments on commit aefdd8c

Please sign in to comment.