From aa37f8cbde68ffe0905dca3a530c03940784472f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 3 Jul 2024 14:31:02 -0700 Subject: [PATCH] add content-type header to ollama /api/show req --- core/llm/llms/Ollama.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index c6d6acdb6..e24a489f0 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -26,6 +26,7 @@ class Ollama extends BaseLLM { method: "POST", headers: { Authorization: `Bearer ${this.apiKey}`, + "Content-Type": "application/json", }, body: JSON.stringify({ name: this._getModel() }), })