Skip to content

Commit

Permalink
Merge pull request #1423 from TransformerOptimus/fixes_for_settings_e…
Browse files Browse the repository at this point in the history
…rror

fixes for settings error
  • Loading branch information
rounak610 authored Jun 3, 2024
2 parents eb94dcb + aefdd8c commit 6c816d2
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 6c816d2

Please sign in to comment.