fix(no-hephaestus-non-gpt): add allow_non_gpt_model config opt-out

Fixes #2054
This commit is contained in:
YeonGyu-Kim
2026-02-25 14:01:26 +09:00
parent 15519b9580
commit 997db0e05b
4 changed files with 58 additions and 11 deletions
+4 -1
View File
@@ -232,7 +232,10 @@ export function createSessionHooks(args: {
: null
const noHephaestusNonGpt = isHookEnabled("no-hephaestus-non-gpt")
? safeHook("no-hephaestus-non-gpt", () => createNoHephaestusNonGptHook(ctx))
? safeHook("no-hephaestus-non-gpt", () =>
createNoHephaestusNonGptHook(ctx, {
allowNonGptModel: pluginConfig.agents?.hephaestus?.allow_non_gpt_model,
}))
: null
const questionLabelTruncator = isHookEnabled("question-label-truncator")