KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [Module Name] 添加本地Ollama模型Web界面问题

Open zhangy2025 opened this issue 5 months ago • 6 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

添加本地Ollama模型的时,界面中的Model怎么是下拉选择的呢(看官网手册上是直接填写的)? 选择的话是自动拉取服务器上的模型列表?

Image

How to reproduce

Ollama模型选择问题

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

zhangy2025 avatar Jul 02 '25 04:07 zhangy2025

填写base_url地址后,Model下拉选项中一直是无数据的,也无法输入,怎么解决呢?

zhangy2025 avatar Jul 02 '25 06:07 zhangy2025

系统设置环境变量set ollama_host=0.0.0.0:11434可访问 docker访问本地ollama资源需要使用http://host.docker.internal:11434

koukouchen avatar Jul 03 '25 01:07 koukouchen

系统设置环境变量set ollama_host=0.0.0.0:11434可访问 docker访问本地ollama资源需要使用http://host.docker.internal:11434

都设置了的,ollama资源的访问地址填写的是 http://192.168.3.161:11434/,代码测试过接口是可以访问模型也能正常调用,但是Model下拉选项中一直是空的,也没办法手工填写

zhangy2025 avatar Jul 03 '25 03:07 zhangy2025

系统设置环境变量set ollama_host=0.0.0.0:11434可访问 docker访问本地ollama资源需要使用http://host.docker.internal:11434

都设置了的,ollama资源的访问地址填写的是 http://192.168.3.161:11434/,代码测试过接口是可以访问模型也能正常调用,但是Model下拉选项中一直是空的,也没办法手工填写

What is the openspg image version you are using, could you delete the local images and pull the latest 0.8 version? The normal user interface should be like this:

Image

caszkgui avatar Jul 03 '25 06:07 caszkgui

服了你们Image

koukouchen avatar Jul 03 '25 13:07 koukouchen

系统设置环境变量set ollama_host=0.0.0.0:11434可访问 docker访问本地ollama资源需要使用http://host.docker.internal:11434

都设置了的,ollama资源的访问地址填写的是 http://192.168.3.161:11434/,代码测试过接口是可以访问模型也能正常调用,但是Model下拉选项中一直是空的,也没办法手工填写

What is the openspg image version you are using, could you delete the local images and pull the latest 0.8 version? The normal user interface should be like this:

Image

是不是中间更新过镜像修复过?6.30刚发布的0.8版本的时候拉取的镜像

zhangy2025 avatar Jul 04 '25 01:07 zhangy2025