deepseek-ai/deepseek-harness · error · Error
llm-deepseek: fileQuotaCleanupBatch must be an integer from
Error message
llm-deepseek: fileQuotaCleanupBatch must be an integer from 1 through 1000
What it means
Error "llm-deepseek: fileQuotaCleanupBatch must be an integer from 1 through 1000" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/llm/llm-deepseek/src/index.ts:355
)
}
const fileExpiresAfterSeconds = config.fileExpiresAfterSeconds ?? DEFAULT_FILE_EXPIRY_SECONDS
if (!Number.isSafeInteger(fileExpiresAfterSeconds)
|| fileExpiresAfterSeconds < 3_600
|| fileExpiresAfterSeconds > 2_592_000) {
throw new Error('llm-deepseek: fileExpiresAfterSeconds must be an integer from 3600 through 2592000')
}
const fileRefreshMarginSeconds = config.fileRefreshMarginSeconds ?? DEFAULT_FILE_REFRESH_MARGIN_SECONDS
if (!Number.isSafeInteger(fileRefreshMarginSeconds)
|| fileRefreshMarginSeconds < 0
|| fileRefreshMarginSeconds >= fileExpiresAfterSeconds) {
throw new Error('llm-deepseek: fileRefreshMarginSeconds must be a non-negative integer below fileExpiresAfterSeconds')
}
const fileQuotaCleanupBatch = config.fileQuotaCleanupBatch ?? DEFAULT_FILE_QUOTA_CLEANUP_BATCH
if (!Number.isSafeInteger(fileQuotaCleanupBatch)
|| fileQuotaCleanupBatch < 1
|| fileQuotaCleanupBatch > 1_000) {
throw new Error('llm-deepseek: fileQuotaCleanupBatch must be an integer from 1 through 1000')
}
return {
apiKeyEnv: credentialRef(config.apiKeyEnv ?? DEFAULT_API_KEY_ENV),
baseURL: config.baseURL
?? environment?.get(BASE_URL_ENV)?.value
?? PUBLIC_BASE_URL,
defaults: {
thinking: config.thinking,
reasoningEffort: config.reasoningEffort,
},
maxTokens: config.maxTokens ?? DEFAULT_MAX_TOKENS,
defaultContextWindow: config.defaultContextWindow ?? DEFAULT_CONTEXT_WINDOW,
models: resolveModels(config.models),
streamIdleTimeoutMs,
maxRequestFilesBytes,
maxInlineRequestImageBytes,
maxImagesPerRequest,
imageOffloadByteQuantum,View on GitHub (pinned to b150a551b8)
Solutions
- Set fileQuotaCleanupBatch to an integer from 1 through 1000.
When it happens
Trigger: Thrown at packages/llm/llm-deepseek/src/index.ts:355 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/0d696f83daa90aa4.
Report an issue: GitHub.