This commit is contained in:
Nate 2024-09-30 17:59:33 -07:00
parent 1eafa16bcd
commit 47bf44eaf8

View file

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