fix: make model validation token budget configurable

This commit is contained in:
chaochaoweb3
2026-07-02 15:48:44 +08:00
parent 5bfd7b2468
commit c1e4b1c9bf
9 changed files with 106 additions and 2 deletions
+11
View File
@@ -88,6 +88,17 @@ export const SETTINGS_REGISTRY: SettingDef[] = [
label: "Max Output Tokens",
min: 1,
},
{
key: "MODEL_VALIDATION_MAX_TOKENS",
group: "generation",
type: "number",
label: "Model Validation Max Tokens",
description:
"Token budget for model test requests. Increase for reasoning models that may emit thinking tokens first.",
min: 1,
max: 64000,
default: "1000",
},
// ── Access Control ───────────────────────────────────────────────
{