Skip to content

Commit

Permalink
simplify if for open-ai-suggestion (#2732)
Browse files Browse the repository at this point in the history
* simplify if for open-ai-suggestion
  • Loading branch information
LvckyAPI authored Feb 28, 2024
1 parent d5e2f82 commit 2f5e5c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ def get_internal_network():
# 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
SENTRY_FEATURES["organizations:open-ai-suggestion"] = bool(OPENAI_API_KEY)

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

0 comments on commit 2f5e5c5

Please sign in to comment.