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

Commit 2592be6

Browse files
committed
FEATURE: configure a default LLM model for all features
This update adds a setting to the configure a default LLM model to be used for all features (unless overridden).
1 parent d54cd1f commit 2592be6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

config/locales/server.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ en:
2525
description: "Periodic report based on a large language model"
2626
site_settings:
2727
discourse_ai_enabled: "Enable the discourse AI plugin."
28+
ai_default_llm_model: "The default LLM model to use for all AI features"
2829
ai_artifact_security: "The AI artifact system generates IFRAMEs with runnable code. Strict mode forces an extra click to run code. Lax mode runs code immediately. Hybrid mode allows user to supply data-ai-artifact-autorun to show right away. Disabled mode disables the artifact system."
2930
ai_toxicity_enabled: "Enable the toxicity module."
3031
ai_toxicity_inference_service_api_endpoint: "URL where the API is running for the toxicity module"

config/settings.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ discourse_ai:
1111
- "lax"
1212
- "hybrid"
1313
- "strict"
14+
ai_default_llm_model:
15+
default: ""
16+
type: enum
17+
allow_any: false
18+
enum: "DiscourseAi::Configuration::LlmEnumerator"
19+
validator: "DiscourseAi::Configuration::LlmValidator"
1420

1521
ai_sentiment_enabled:
1622
default: false

0 commit comments

Comments
 (0)