fix: replace as any with targeted type cast for codebaseIndexMaxBatchRetries

This commit is contained in:
Roo Code 2025-12-30 05:18:48 +00:00
parent 14a9ccfa87
commit f44e9b63fd

View file

@ -66,8 +66,10 @@ export class CodeIndexConfigManager {
codebaseIndexEmbedderModelId,
codebaseIndexSearchMinScore,
codebaseIndexSearchMaxResults,
codebaseIndexMaxBatchRetries,
} = codebaseIndexConfig as any
} = codebaseIndexConfig
const codebaseIndexMaxBatchRetries = (codebaseIndexConfig as { codebaseIndexMaxBatchRetries?: number })
.codebaseIndexMaxBatchRetries
const openAiKey = this.contextProxy?.getSecret("codeIndexOpenAiKey") ?? ""
const qdrantApiKey = this.contextProxy?.getSecret("codeIndexQdrantApiKey") ?? ""