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(),