From b49d454ad9241825bead71581444e4c3add7d7ec Mon Sep 17 00:00:00 2001 From: Kelv Date: Wed, 5 Mar 2025 16:49:19 +0800 Subject: [PATCH] DEV: update display name field in AiLlmEditorForm to show more relevant tooltip (#1166) --- assets/javascripts/discourse/components/ai-llm-editor-form.gjs | 2 +- config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/ai-llm-editor-form.gjs b/assets/javascripts/discourse/components/ai-llm-editor-form.gjs index d3c02df3..f78ec8e3 100644 --- a/assets/javascripts/discourse/components/ai-llm-editor-form.gjs +++ b/assets/javascripts/discourse/components/ai-llm-editor-form.gjs @@ -275,7 +275,7 @@ export default class AiLlmEditorForm extends Component { @validation="required|length:1,100" @disabled={{this.seeded}} @format="large" - @tooltip={{i18n "discourse_ai.llms.hints.max_prompt_tokens"}} + @tooltip={{i18n "discourse_ai.llms.hints.display_name"}} as |field| > diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index f18bb0f0..5970dd4b 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -432,6 +432,7 @@ en: hints: max_prompt_tokens: "Max numbers of tokens for the prompt. As a rule of thumb, this should be 50% of the model's context window." + display_name: "The name used to reference this model across your site's interface." name: "We include this in the API call to specify which model we'll use" vision_enabled: "If enabled, the AI will attempt to understand images. It depends on the model being used supporting vision. Supported by latest models from Anthropic, Google, and OpenAI." enabled_chat_bot: "If enabled, users can select this model when creating PMs with the AI bot"