tangning 4 月之前
父节点
当前提交
7a8d1f5e6b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/util/ollama.js

+ 2 - 1
src/util/ollama.js

@@ -1,5 +1,6 @@
 import { Ollama } from "ollama/browser";
 import { Ollama } from "ollama/browser";
-const ollama = new Ollama({ host: 'http://192.168.9.61:11434' })
+// const ollama = new Ollama({ host: 'http://192.168.9.61:11434' })
+const ollama = new Ollama({ host: '192.168.0.25/answers/' })
 export function chatWithHistory(model, userMsg, history, systemMsg) {
 export function chatWithHistory(model, userMsg, history, systemMsg) {
   return ollama.chat({
   return ollama.chat({
     model,
     model,