Skip to content

Commit

Permalink
fixing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TransformerOptimus committed Jun 7, 2023
1 parent 9d48155 commit f9dff96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/controllers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_config_by_organisation_id_and_key(organisation_id: int, key: str,
Configuration.key == key).first()
if config is None and key == "model_api_key":
api_key = get_config("OPENAI_API_KEY")
if api_key is not None:
if api_key is not None and api_key != "YOUR_OPEN_API_KEY":
encrypted_data = encrypt_data(api_key)
new_config = Configuration(organisation_id=organisation_id, key="model_api_key",value=encrypted_data)
db.session.add(new_config)
Expand Down

0 comments on commit f9dff96

Please sign in to comment.