mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: prevents passing 0 as a valid timeout value
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
This commit is contained in:
parent
ebb28f5f14
commit
8c2d3952c0
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ export class CodeIndexOllamaEmbedder implements IEmbedder {
|
|||
this.baseUrl = baseUrl
|
||||
this.modelId = options.ollamaModelId || OLLAMA_DEFAULT_MODEL_ID
|
||||
|
||||
this.embeddingTimeoutMs = options.ollamaEmbeddingTimeoutMs || OLLAMA_EMBEDDING_TIMEOUT_MS
|
||||
this.validationTimeoutMs = options.ollamaValidationTimeoutMs || OLLAMA_VALIDATION_TIMEOUT_MS
|
||||
this.embeddingTimeoutMs = options.ollamaEmbeddingTimeoutMs ?? OLLAMA_EMBEDDING_TIMEOUT_MS
|
||||
this.validationTimeoutMs = options.ollamaValidationTimeoutMs ?? OLLAMA_VALIDATION_TIMEOUT_MS
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue