feat(llm): add disableThinking option for faster LLM analysis and update config

This commit is contained in:
asepharyana
2026-08-15 20:52:53 +07:00
parent 66c33a2657
commit 7ebee7559d
3 changed files with 129 additions and 27 deletions
@@ -151,6 +151,13 @@ export const configSchema = z
// the shared AI_LLM_BASE_URL with AI_LLM_VISION_MODEL.
AI_LLM_VISION_BASE_URL: z.string().url().optional(),
AI_LLM_VISION_API_KEY: z.string().optional(),
AI_LLM_DISABLE_THINKING: z
.string()
.default("true")
.transform((v) => v === "true")
.describe(
"Disable LLM chain-of-thought (reasoning/thinking) to speed up AI analysis. Set false to restore thinking.",
),
AI_LLM_EMBEDDING_MODEL: z.string().optional(),
AI_LLM_EMBEDDING_MIN_SIMILARITY: z.coerce
.number()