Skip to content

Commit a70badf

Browse files
docs: add commet to warn disabled timeout
Co-authored-by: Copilot <[email protected]>
1 parent 8c2d395 commit a70badf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/code-index/embedders/ollama.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export class CodeIndexOllamaEmbedder implements IEmbedder {
7878
// Add timeout to prevent indefinite hanging
7979
const controller = new AbortController()
8080
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).
8183
if (this.embeddingTimeoutMs > 0) {
8284
embeddingTimeoutId = setTimeout(() => controller.abort(), this.embeddingTimeoutMs)
8385
}

0 commit comments

Comments
 (0)