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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user