mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:40:43 +00:00
fix: narrow claude output limit config values
This commit is contained in:
@@ -454,7 +454,7 @@ function normalizePositiveInt(
|
||||
min: number,
|
||||
max: number,
|
||||
): number {
|
||||
if (!Number.isInteger(value)) {
|
||||
if (typeof value !== "number" || !Number.isInteger(value)) {
|
||||
return fallback;
|
||||
}
|
||||
return Math.min(Math.max(value, min), max);
|
||||
|
||||
Reference in New Issue
Block a user