diff --git a/packages/core/src/ollama.ts b/packages/core/src/ollama.ts index 5a3dc3ae13..b9d6c72c1c 100644 --- a/packages/core/src/ollama.ts +++ b/packages/core/src/ollama.ts @@ -81,6 +81,7 @@ async function listModels( // Fetch the list of models from the remote API const res = await fetch(cfg.base.replace("/v1", "/api/tags"), { method: "GET", + retries: 0, }) if (res.status !== 200) return [] // Parse and format the response into LanguageModelInfo objects diff --git a/packages/core/src/openai.ts b/packages/core/src/openai.ts index 3e1019247c..63f5ff4d37 100644 --- a/packages/core/src/openai.ts +++ b/packages/core/src/openai.ts @@ -427,6 +427,7 @@ async function listModels( ...getConfigHeaders(cfg), Accept: "application/json", }, + retries: 0 }) if (res.status !== 200) return [] const { data } = (await res.json()) as {