Fixed hardcoded URL
now it takes it from the db.
This commit is contained in:
@@ -1490,7 +1490,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 'ollama-hosted':{
|
case 'ollama-hosted':{
|
||||||
const ollama = new Ollama({host: 'http://localhost:11434'})
|
const ollama = new Ollama({host: db.ollamaURL})
|
||||||
|
|
||||||
const response = await ollama.chat({
|
const response = await ollama.chat({
|
||||||
model: db.ollamaModel,
|
model: db.ollamaModel,
|
||||||
|
|||||||
Reference in New Issue
Block a user