From b389c86b76edae6e472640cd8bfb48c783e7c869 Mon Sep 17 00:00:00 2001 From: Yvonne <106619470+Yvonne-Aizawa@users.noreply.github.com> Date: Sat, 4 May 2024 17:19:37 +0200 Subject: [PATCH] Fixed hardcoded URL now it takes it from the db. --- src/ts/process/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 4206b676..7edd32f0 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -1490,7 +1490,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' } } case 'ollama-hosted':{ - const ollama = new Ollama({host: 'http://localhost:11434'}) + const ollama = new Ollama({host: db.ollamaURL}) const response = await ollama.chat({ model: db.ollamaModel,