Skip to content

Commit 8ea8005

Browse files
Move open ai key from env variables (#2274)
move open ai key from env variables
1 parent 5e1e74b commit 8ea8005

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ x-sentry-defaults: &sentry_defaults
7474
SENTRY_EVENT_RETENTION_DAYS:
7575
SENTRY_MAIL_HOST:
7676
SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:
77+
# Set this value if you plan on using the Suggested Fix Feature
7778
OPENAI_API_KEY:
7879
volumes:
7980
- "sentry-data:/data"

sentry/sentry.conf.example.py

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

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

311308
##############################################
312309
# Content Security Policy settings

0 commit comments

Comments
 (0)