Merge pull request #2107 from code-yeongyu/fix/issue-2054-hephaestus-model-opt-out

fix(no-hephaestus-non-gpt): add opt-out for model enforcement
This commit is contained in:
YeonGyu-Kim
2026-02-25 16:16:50 +09:00
committed by GitHub
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")