Skip to content

Commit f3a1ba1

Browse files
Revert "Move open ai key from env variables" (#2724)
1 parent 9936376 commit f3a1ba1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ x-sentry-defaults: &sentry_defaults
7272
SENTRY_EVENT_RETENTION_DAYS:
7373
SENTRY_MAIL_HOST:
7474
SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:
75-
# Set this value if you plan on using the Suggested Fix Feature
7675
OPENAI_API_KEY:
7776
volumes:
7877
- "sentry-data:/data"

sentry/sentry.conf.example.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,12 @@ def get_internal_network():
313313
# for more information about the feature. Make sure the OpenAI's privacy policy is
314314
# aligned with your company.
315315

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

320323
##############################################
321324
# Content Security Policy settings

0 commit comments

Comments
 (0)