Fixed hardcoded URL

now it takes it from the db.
This commit is contained in:
Yvonne
2024-05-04 17:19:37 +02:00
parent 5b1447c7bc
commit b389c86b76

View File

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