mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
docs: add commet to warn disabled timeout
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8c2d3952c0
commit
a70badff6b
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ export class CodeIndexOllamaEmbedder implements IEmbedder {
|
|||
// Add timeout to prevent indefinite hanging
|
||||
const controller = new AbortController()
|
||||
let embeddingTimeoutId = undefined
|
||||
// If embeddingTimeoutMs <= 0, the timeout is disabled and requests may hang indefinitely.
|
||||
// To enable the timeout, set embeddingTimeoutMs to a positive integer (milliseconds).
|
||||
if (this.embeddingTimeoutMs > 0) {
|
||||
embeddingTimeoutId = setTimeout(() => controller.abort(), this.embeddingTimeoutMs)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue