From 9ad281a4ee3a4eb182246571bf76caa9c2cc57d0 Mon Sep 17 00:00:00 2001 From: unconstructive Date: Mon, 2 Sep 2024 00:18:01 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(ollama.ts):=20update=20client?= =?UTF-8?q?=20post=20request=20to=20use=20getUri=20method=20for=20endpoint?= =?UTF-8?q?=20URL=20construction=20(#404)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/engine/ollama.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/ollama.ts b/src/engine/ollama.ts index 885eca8..0347fc6 100644 --- a/src/engine/ollama.ts +++ b/src/engine/ollama.ts @@ -28,7 +28,10 @@ export class OllamaAi implements AiEngine { stream: false }; try { - const response = await this.client.post('', params); + const response = await this.client.post( + this.client.getUri(this.config), + params + ); const message = response.data.message;