Add LLM system prompt override

Allow overriding the LLM system prompt via the `LLM_SYSTEM_PROMPT`
environment variable. This provides flexibility for customizing LLM
behavior without code changes. A default prompt is used if the
environment variable is unset or empty.
This commit is contained in:
2026-04-15 21:31:21 +02:00
parent 5608c8ba43
commit 70eed20909
4 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ async fn process(
let document = match llm::chat_once(
client,
&settings,
prompt::SYSTEM_PROMPT,
&config.llm_system_prompt,
&user_content,
timeout,
)