From 47bf44eaf8840643fd40e1b9e3a2e5f5bdc66fc5 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 30 Sep 2024 17:59:33 -0700 Subject: [PATCH] ? --- core/llm/llms/Ollama.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 3b16d0456..96e01edf1 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -31,7 +31,7 @@ class Ollama extends BaseLLM { body: JSON.stringify({ name: this._getModel() }), }) .then(async (response) => { - if (response.status !== 200) { + if (response?.status !== 200) { // console.warn( // "Error calling Ollama /api/show endpoint: ", // await response.text(),