From dabef0291973296feedb080a2ecb5ea096fcd7f5 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Thu, 28 Nov 2024 07:27:08 +0900 Subject: [PATCH] DEV: Prevent `detect_text_locale` from appearing in menus (#967) ### :mag: Overview With the recent changes to allow DiscourseAi in the translator plugin, `detect_text_locale` was needed as a CompletionPrompt. However, it is leaking into composer/post helper menus. This PR ensures we don't not show it in those menus. --- lib/ai_helper/assistant.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ai_helper/assistant.rb b/lib/ai_helper/assistant.rb index 86d4b70b..74656be6 100644 --- a/lib/ai_helper/assistant.rb +++ b/lib/ai_helper/assistant.rb @@ -233,6 +233,8 @@ module DiscourseAi %w[post] when "illustrate_post" %w[composer] + when "detect_text_locale" + %w[] else %w[composer post] end