feat: Add more options for AI reply suggestions (#7493)

This commit is contained in:
Muhsin Keloth
2023-07-13 10:26:25 +05:30
committed by GitHub
parent 7c080fa9fa
commit 19ff738211
4 changed files with 210 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ class Integrations::OpenaiBaseService
API_URL = 'https://api.openai.com/v1/chat/completions'.freeze
GPT_MODEL = 'gpt-3.5-turbo'.freeze
ALLOWED_EVENT_NAMES = %w[rephrase summarize reply_suggestion].freeze
ALLOWED_EVENT_NAMES = %w[rephrase summarize reply_suggestion fix_spelling_grammar shorten expand make_friendly make_formal simplify].freeze
CACHEABLE_EVENTS = %w[].freeze
pattr_initialize [:hook!, :event!]