Skip to content

Commit

Permalink
Revert "Move open ai key from env variables" (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdeng123 committed Jan 18, 2024
1 parent 9936376 commit f3a1ba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ x-sentry-defaults: &sentry_defaults
SENTRY_EVENT_RETENTION_DAYS:
SENTRY_MAIL_HOST:
SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:
# Set this value if you plan on using the Suggested Fix Feature
OPENAI_API_KEY:
volumes:
- "sentry-data:/data"
Expand Down
9 changes: 6 additions & 3 deletions sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,12 @@ def get_internal_network():
# for more information about the feature. Make sure the OpenAI's privacy policy is
# aligned with your company.

# Set the feature to be True if you'd like to enable Suggested Fix. You'll also need to
# add your OPENAI_API_KEY to the docker-compose.yml file.
SENTRY_FEATURES["organizations:open-ai-suggestion"] = False
# Set the OPENAI_API_KEY on the .env or .env.custom file with a valid
# OpenAI API key to turn on the feature.
OPENAI_API_KEY = env("OPENAI_API_KEY", "")

if OPENAI_API_KEY:
SENTRY_FEATURES["organizations:open-ai-suggestion"] = True

##############################################
# Content Security Policy settings
Expand Down

0 comments on commit f3a1ba1

Please sign in to comment.