We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2d395 commit a70badfCopy full SHA for a70badf
src/services/code-index/embedders/ollama.ts
@@ -78,6 +78,8 @@ export class CodeIndexOllamaEmbedder implements IEmbedder {
78
// Add timeout to prevent indefinite hanging
79
const controller = new AbortController()
80
let embeddingTimeoutId = undefined
81
+ // If embeddingTimeoutMs <= 0, the timeout is disabled and requests may hang indefinitely.
82
+ // To enable the timeout, set embeddingTimeoutMs to a positive integer (milliseconds).
83
if (this.embeddingTimeoutMs > 0) {
84
embeddingTimeoutId = setTimeout(() => controller.abort(), this.embeddingTimeoutMs)
85
}
0 commit comments