Merge pull request #3316 from ahuangsnail/fix/max-output-tokens-zero-fallback

fix: treat zero limit.output as unknown to enable fallback to bundled…
This commit is contained in:
YeonGyu-Kim
2026-05-21 00:59:05 +09:00
committed by GitHub
@@ -197,5 +197,7 @@ export function readRuntimeModelLimitOutput(
return undefined
}
return readNumber(limit.output)
const output = readNumber(limit.output)
// Treat 0 or negative as unknown so ?? fallback to bundled snapshot works
return output && output > 0 ? output : undefined
}