File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments