Skip to content

Commit d8b1432

Browse files
authored
feat: add suggested fix feature (#2115)
1 parent 6695b45 commit d8b1432

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ x-sentry-defaults: &sentry_defaults
7171
SENTRY_EVENT_RETENTION_DAYS:
7272
SENTRY_MAIL_HOST:
7373
SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:
74+
OPENAI_API_TOKEN:
7475
volumes:
7576
- "sentry-data:/data"
7677
- "./sentry:/etc/sentry"

sentry/sentry.conf.example.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,18 @@ def get_internal_network():
291291

292292
# BITBUCKET_CONSUMER_KEY = 'YOUR_BITBUCKET_CONSUMER_KEY'
293293
# BITBUCKET_CONSUMER_SECRET = 'YOUR_BITBUCKET_CONSUMER_SECRET'
294+
295+
##############################################
296+
# Suggested Fix Feature / OpenAI Integration #
297+
##############################################
298+
299+
# See https://docs.sentry.io/product/issues/issue-details/ai-suggested-solution/
300+
# for more information about the feature. Make sure the OpenAI's privacy policy is
301+
# aligned with your company.
302+
303+
# Set the OPENAI_API_KEY on the .env or .env.custom file with a valid
304+
# OpenAI API key to turn on the feature.
305+
OPENAI_API_KEY = env("OPENAI_API_KEY", "")
306+
307+
if OPENAI_API_KEY:
308+
SENTRY_FEATURES["organizations:open-ai-suggestion"] = True

0 commit comments

Comments
 (0)