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
a70badff6b
commit
408559ad16
2 changed files with 3 additions and 0 deletions
|
|
@ -266,6 +266,7 @@ const ollamaSchema = baseProviderSettingsSchema.extend({
|
|||
ollamaBaseUrl: z.string().optional(),
|
||||
ollamaApiKey: z.string().optional(),
|
||||
ollamaEmbeddingTimeoutMs: z.number().int().optional(),
|
||||
// Negative values disable the validation timeout. If set to a positive integer, it specifies the timeout in milliseconds.
|
||||
ollamaValidationTimeoutMs: z.number().int().optional(),
|
||||
ollamaNumCtx: z.number().int().min(128).optional(),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -222,6 +222,8 @@ export class CodeIndexOllamaEmbedder implements IEmbedder {
|
|||
// Add timeout for test request too
|
||||
const testController = new AbortController()
|
||||
let testTimeoutId = undefined
|
||||
// If validationTimeoutMs is <= 0, the timeout is disabled (no abort will be triggered).
|
||||
// Set validationTimeoutMs to a positive integer (milliseconds) to enable the timeout.
|
||||
if (this.validationTimeoutMs > 0) {
|
||||
testTimeoutId = setTimeout(() => testController.abort(), this.validationTimeoutMs)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue