Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 67bc4c0

Browse files
committed
FEATURE: bring back hidden settings
The hidden settings have general use and may be already set. Helper one is particularly important cause it sets a default for a large number of settings Additionally hiding access means people can not remove LLMs without console access
1 parent 625442a commit 67bc4c0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

config/locales/server.en.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ en:
6565
ai_helper_enabled: "Enable the AI helper."
6666
composer_ai_helper_allowed_groups: "Users on these groups will see the AI helper button in the composer."
6767
ai_helper_allowed_in_pm: "Enable the composer's AI helper in PMs."
68-
ai_helper_model: "Model to use for the AI helper."
68+
ai_helper_model: "Default model for the AI helper. (specific personas can override this setting using default llm)"
6969
ai_helper_custom_prompts_allowed_groups: "Users on these groups will see the custom prompt option in the AI helper."
7070
ai_helper_automatic_chat_thread_title_delay: "Delay in minutes before the AI helper automatically sets the chat thread title."
7171
ai_helper_automatic_chat_thread_title: "Automatically set the chat thread titles based on thread contents."
@@ -87,7 +87,7 @@ en:
8787
ai_embeddings_per_post_enabled: Generate embeddings for each post
8888

8989
ai_summarization_enabled: "Enable the summarize feature"
90-
ai_summarization_model: "Model to use for summarization"
90+
ai_summarization_model: "Default model to use for summarization features. (can be overridden by personas)"
9191
ai_summarization_persona: "Persona to use for summarize feature"
9292
ai_custom_summarization_allowed_groups: "Groups allowed to use create new summaries."
9393
ai_pm_summarization_allowed_groups: "Groups allowed to create and view summaries in PMs."
@@ -577,6 +577,7 @@ en:
577577
neutral: "Neutral"
578578

579579
llm:
580+
not_configured: "(not configured)"
580581
configuration:
581582
create_llm: "You need to setup an LLM before enabling this feature"
582583
disable_module_first: "You have to disable %{setting} first."

config/settings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ discourse_ai:
108108
allow_any: false
109109
type: enum
110110
enum: "DiscourseAi::Configuration::LlmEnumerator"
111-
hidden: true
111+
area: "ai-features/ai_helper"
112112
ai_helper_custom_prompts_allowed_groups: # Deprecated. TODO(roman): Remove 2025-09-01
113113
type: group_list
114114
list_type: compact
@@ -322,7 +322,7 @@ discourse_ai:
322322
type: enum
323323
enum: "DiscourseAi::Configuration::LlmEnumerator"
324324
validator: "DiscourseAi::Configuration::LlmValidator"
325-
hidden: true
325+
area: "ai-features/summarization"
326326
ai_summarization_persona:
327327
default: "-11"
328328
type: enum

lib/configuration/llm_enumerator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def self.values(allowed_seeded_llms: nil)
108108
end
109109

110110
values.each { |value_h| value_h[:value] = "custom:#{value_h[:value]}" }
111+
values.unshift({ value: "", name: I18n.t("discourse_ai.llm.not_configured") })
111112
values
112113
end
113114
end

0 commit comments

Comments
 (0)