DEV: rename ai_helper_add_ai_pm_to_header -> ai_bot_add_to_header (#177)

Old name was very unclear, this setting is only used for the bot
so now it follows the same convention others do
This commit is contained in:
Sam 2023-08-31 14:42:28 +10:00 committed by GitHub
parent db19e37748
commit 8e4347acba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 28 additions and 17 deletions

View File

@ -14,7 +14,7 @@ function isGPTBot(user) {
function attachHeaderIcon(api) {
const settings = api.container.lookup("service:site-settings");
const enabledBots = settings.ai_helper_add_ai_pm_to_header
const enabledBots = settings.ai_bot_add_to_header
? settings.ai_bot_enabled_chat_bots.split("|").filter(Boolean)
: [];
if (enabledBots.length > 0) {

View File

@ -58,7 +58,7 @@ ar:
ai_bot_enabled: "تفعيل وحدة روبوت الذكاء الاصطناعي"
ai_bot_allowed_groups: "عندما يتمكن GPT Bot من الوصول إلى الرسالة الخاصة، فإنه سيرد على أعضاء هذه المجموعات."
ai_bot_enabled_chat_bots: "النماذج المتاحة للقيام بدور روبوت الذكاء الاصطناعي"
ai_helper_add_ai_pm_to_header: "عرض زر في الرأس لبدء رسالة خاصة مع روبوت ذكاء اصطناعي"
ai_bot_add_to_header: "عرض زر في الرأس لبدء رسالة خاصة مع روبوت ذكاء اصطناعي"
ai_stability_api_key: "مفتاح API لواجهة API المسماة stability.ai"
ai_stability_api_url: "عنوان URL لواجهة API المسماة stability.ai"
ai_google_custom_search_api_key: "مفتاح API لواجهة API الخاصة ببحث Google المخصَّص، راجع: https://developers.google.com/custom-search"

View File

@ -62,7 +62,7 @@ de:
ai_bot_enable_chat_warning: "Display a warnen wehen PM Chat IS initiale. Man der verrieten, bot Styling the Translation String: Diskurs_ai.ai_bot.pm_warnen"
ai_bot_allowed_groups: "Wenn der GPT-Bot Zugriff auf die PN hat, wird er den Mitgliedern dieser Gruppen antworten."
ai_bot_enabled_chat_bots: "Verfügbare Modelle, die als KI-Bot agieren können"
ai_helper_add_ai_pm_to_header: "Eine Schaltfläche in der Kopfzeile anzeigen, um eine PN mit einem KI-Bot zu starten"
ai_bot_add_to_header: "Eine Schaltfläche in der Kopfzeile anzeigen, um eine PN mit einem KI-Bot zu starten"
ai_stability_api_key: "API-Schlüssel für die stability.ai-API"
ai_stability_engine: "Bildgenerierungsengine für die stability.ai-API"
ai_stability_api_url: "URL für die stability.ai-API"

View File

@ -64,7 +64,7 @@ en:
ai_bot_allowed_groups: "When the GPT Bot has access to the PM, it will reply to members of these groups."
ai_bot_enabled_chat_bots: "Available models to act as an AI Bot"
ai_bot_enabled_chat_commands: "Available GPT integrations used to provide external functionality to the model."
ai_helper_add_ai_pm_to_header: "Display a button in the header to start a PM with a AI Bot"
ai_bot_add_to_header: "Display a button in the header to start a PM with a AI Bot"
ai_stability_api_key: "API key for the stability.ai API"
ai_stability_engine: "Image generation engine to use for the stability.ai API"

View File

@ -58,7 +58,7 @@ es:
ai_bot_enabled: "Habilitar el módulo AI Bot."
ai_bot_allowed_groups: "Cuando el Bot GPT tenga acceso al MP, responderá a los miembros de estos grupos."
ai_bot_enabled_chat_bots: "Modelos disponibles para actuar como Bot AI"
ai_helper_add_ai_pm_to_header: "Mostrar un botón en el encabezado para iniciar un MP con un bot de IA"
ai_bot_add_to_header: "Mostrar un botón en el encabezado para iniciar un MP con un bot de IA"
ai_stability_api_key: "Clave API para la API de stability.ai"
ai_stability_api_url: "URL para la API de stability.ai"
ai_google_custom_search_api_key: "Clave API para la API de búsqueda personalizada de Google, consulta: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ fi:
ai_bot_enabled: "Ota tekoälybottimoduuli käyttöön."
ai_bot_allowed_groups: "Kun GPT-botilla on yksityisviestin käyttöoikeus, se vastaa näiden ryhmien jäsenille."
ai_bot_enabled_chat_bots: "Käytettävissä olevat mallit tekoälybottina toimimiseen"
ai_helper_add_ai_pm_to_header: "Näytä painike yläpalkissa yksityiskeskustelun aloittamiseksi tekoälybotin kanssa"
ai_bot_add_to_header: "Näytä painike yläpalkissa yksityiskeskustelun aloittamiseksi tekoälybotin kanssa"
ai_stability_api_key: "stability.ai-APIn API-avain"
ai_stability_api_url: "stability.ai-APIn URL"
ai_google_custom_search_api_key: "Google Custom Search APIn API-avain, katso: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ fr:
ai_bot_enabled: "Activez le module du robot IA."
ai_bot_allowed_groups: "Lorsque le robot GPT aura accès aux messages privés, il répondra aux membres de ces groupes."
ai_bot_enabled_chat_bots: "Modèles disponibles pour agir en tant que robot IA"
ai_helper_add_ai_pm_to_header: "Afficher un bouton dans l'en-tête pour démarrer une conversation avec un robot IA"
ai_bot_add_to_header: "Afficher un bouton dans l'en-tête pour démarrer une conversation avec un robot IA"
ai_stability_api_key: "Clé API pour l'API stable.ai"
ai_stability_api_url: "Adresse URL de l'API stability.ai"
ai_google_custom_search_api_key: "Clé API pour l'API Google Custom Search, voir : https://developers.google.com/custom-search"

View File

@ -62,7 +62,7 @@ he:
ai_bot_enable_chat_warning: "הצגת אזהרה עם פתיחת שיח הודעות פרטיות. אפשר לדרוס את זה על ידי עריכת מחרוזת התרגום: discourse_ai.ai_bot.pm_warning"
ai_bot_allowed_groups: "כאשר לבוט של GPT יש גישה להודעות הפרטיות, הוא יגיב לחברים בקבוצות האלה."
ai_bot_enabled_chat_bots: "מודלים זמינים שיכהנו כבוט בינה מלאכותית"
ai_helper_add_ai_pm_to_header: "הצגת כפתור בכותרת כדי לפתוח הודעה פרטית עם בוט בינה מלאכותית"
ai_bot_add_to_header: "הצגת כפתור בכותרת כדי לפתוח הודעה פרטית עם בוט בינה מלאכותית"
ai_stability_api_key: "מפתח API ל־API של stability.ai"
ai_stability_engine: "מנוע לחילול תמונות לשימוש עבור ה־API של stability.ai"
ai_stability_api_url: "כתובת ל־API של stability.ai"

View File

@ -58,7 +58,7 @@ it:
ai_bot_enabled: "Abilita il modulo Bot IA."
ai_bot_allowed_groups: "Quando il bot GPT ha accesso a un MP, risponderà ai membri di questi gruppi."
ai_bot_enabled_chat_bots: "Modelli disponibili per agire come robot IA"
ai_helper_add_ai_pm_to_header: "Mostra un pulsante nell'intestazione per avviare un MP con un Bot IA"
ai_bot_add_to_header: "Mostra un pulsante nell'intestazione per avviare un MP con un Bot IA"
ai_stability_api_key: "Chiave API per l'API stability.ai"
ai_stability_api_url: "URL per l'API stability.ai"
ai_google_custom_search_api_key: "Chiave API per l'API della ricerca personalizzata di Google: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ ja:
ai_bot_enabled: "AI ボットモジュールを有効にします。"
ai_bot_allowed_groups: "GPT ボットが PM にアクセスできる場合、これらのグループのメンバーに返信します。"
ai_bot_enabled_chat_bots: "AI ボットとして機能する利用可能なモデル"
ai_helper_add_ai_pm_to_header: "AI ボットとの PM を開始するためのボタンをヘッダーに表示する"
ai_bot_add_to_header: "AI ボットとの PM を開始するためのボタンをヘッダーに表示する"
ai_stability_api_key: "stability.ai API の API キー"
ai_stability_api_url: "stability.ai API の URL"
ai_google_custom_search_api_key: "Google カスタム検索 API の API キーは https://developers.google.com/custom-search を参照してください"

View File

@ -58,7 +58,7 @@ nl:
ai_bot_enabled: "Schakel de AI-botmodule in."
ai_bot_allowed_groups: "Wanneer de GPT-bot toegang heeft tot het privébericht, zal deze reageren op leden van deze groepen."
ai_bot_enabled_chat_bots: "Beschikbare modellen om op te treden als AI-bot"
ai_helper_add_ai_pm_to_header: "Geef een knop weer in de kop om een privéchat te starten met een AI-bot"
ai_bot_add_to_header: "Geef een knop weer in de kop om een privéchat te starten met een AI-bot"
ai_stability_api_key: "API-sleutel voor de stability.ai-API"
ai_stability_api_url: "URL voor de stability.ai-API"
ai_google_custom_search_api_key: "API-sleutel voor de Google Custom Search-API zie: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ pl_PL:
ai_bot_enabled: "Włącz moduł bota AI."
ai_bot_allowed_groups: "Gdy bot GPT uzyska dostęp do PW, odpowie członkom tych grup."
ai_bot_enabled_chat_bots: "Dostępne modele do działania jako bot AI"
ai_helper_add_ai_pm_to_header: "Wyświetl przycisk w nagłówku, aby rozpocząć PW z botem AI"
ai_bot_add_to_header: "Wyświetl przycisk w nagłówku, aby rozpocząć PW z botem AI"
ai_stability_api_key: "Klucz dla API stability.ai"
ai_stability_api_url: "Adres URL interfejsu API stability.ai"
ai_google_custom_search_api_key: "Klucz dla Google Custom Search API, zobacz: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ pt_BR:
ai_bot_enabled: "Ative o módulo de Bot com IA."
ai_bot_allowed_groups: "Quando o Bot com GPT tiver acesso às MPs, ele responderá aos membros destes grupos."
ai_bot_enabled_chat_bots: "Modelos disponíveis para agora como Bot com IA"
ai_helper_add_ai_pm_to_header: "Mostrar botão no cabeçalho para começar uma MP com um Bot com IA"
ai_bot_add_to_header: "Mostrar botão no cabeçalho para começar uma MP com um Bot com IA"
ai_stability_api_key: "Chave de API para a API stability.ai"
ai_stability_api_url: "URL para a API stability.ai"
ai_google_custom_search_api_key: "Chave de API para a API de pesquisa personalizada do Google. Veja: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ ru:
ai_bot_enabled: "Включить модуль AI-бота."
ai_bot_allowed_groups: "Если у GPT-бота есть доступ к личным сообщениям, он будет отвечать участникам указанных групп."
ai_bot_enabled_chat_bots: "Доступные модели для использования в качестве AI-бота"
ai_helper_add_ai_pm_to_header: "Кнопка в заголовке для начала личного разговора с AI-ботом"
ai_bot_add_to_header: "Кнопка в заголовке для начала личного разговора с AI-ботом"
ai_stability_api_key: "API-ключ для API stability.ai"
ai_stability_api_url: "URL-адрес для API stability.ai"
ai_google_custom_search_api_key: "API-ключ для API программируемого поиска Google — см. https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ tr_TR:
ai_bot_enabled: "YZ Botu modülünü etkinleştirin."
ai_bot_allowed_groups: "GPT Botunun Kişisel Mesaja erişimi olduğunda, bu grupların üyelerine yanıt verir."
ai_bot_enabled_chat_bots: "YZ Botu görevi görecek mevcut modeller"
ai_helper_add_ai_pm_to_header: "Bir YZ Botu ile bir kişisel mesaj başlatmak için başlıkta bir düğme gösterin"
ai_bot_add_to_header: "Bir YZ Botu ile bir kişisel mesaj başlatmak için başlıkta bir düğme gösterin"
ai_stability_api_key: "stability.ai API'si için API anahtarı"
ai_stability_api_url: "stability.ai API'si için URL"
ai_google_custom_search_api_key: "Google Özel Arama API'sı için API anahtarı bkz.: https://developers.google.com/custom-search"

View File

@ -58,7 +58,7 @@ zh_CN:
ai_bot_enabled: "启用 AI 机器人模块。"
ai_bot_allowed_groups: "当 GPT 机器人可以访问私信时,它将回复这些群组的成员。"
ai_bot_enabled_chat_bots: "充当 AI 机器人的可用模型"
ai_helper_add_ai_pm_to_header: "在标题中显示按钮以使用 AI 机器人启动私信"
ai_bot_add_to_header: "在标题中显示按钮以使用 AI 机器人启动私信"
ai_stability_api_key: "stability.ai API 的 API 密钥"
ai_stability_api_url: "stability.ai API 的 URL"
ai_google_custom_search_api_key: "Google 自定义搜索 API 的 API 密钥请参阅https://developers.google.com/custom-search"

View File

@ -217,6 +217,6 @@ discourse_ai:
- tags
- time
- setting_context
ai_helper_add_ai_pm_to_header:
ai_bot_add_to_header:
default: true
client: true

View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
class RenameAiHelperAddAiPmToHeaderSetting < ActiveRecord::Migration[7.0]
def up
execute "UPDATE site_settings SET name = 'ai_bot_add_to_header' WHERE name = 'ai_helper_add_ai_pm_to_header'"
end
def down
execute "UPDATE site_settings SET name = 'ai_helper_add_ai_pm_to_header' WHERE name = 'ai_bot_add_to_header'"
end
end