Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[问题]: 连接内网部署的ollama api的问题 #1178

Open
berwen opened this issue Feb 8, 2025 · 3 comments
Open

[问题]: 连接内网部署的ollama api的问题 #1178

berwen opened this issue Feb 8, 2025 · 3 comments

Comments

@berwen
Copy link

berwen commented Feb 8, 2025

您的问题

在使用cherry-studio连接内网部署部署的ollama api时,如果api地址填写通过ssh转发的地址,比如http://localhost:8888/v1/ 或者 http://127.0.0.1:8888/v1/ , cherry-studio是可以成功调用api的。
但是如果我把地址换成直接访问内网地址,比如: http://192.168.2.111:31932/v1/ , cherry-studio就无法连接成功。我在本地执行 curl http://192.168.2.111:8888/api/version是可以成功返回信息的,想请教一下如何解决这个问题?

相关背景

我的ollama服务是在k8s集群上的一个pod中,已经设置了export OLLAMA_HOST="0.0.0.0:8888"

补充信息

优先级

高 (阻碍工作进行)

@kangfenmao
Copy link
Collaborator

局域网权限问题,我来修

@berwen
Copy link
Author

berwen commented Feb 8, 2025

局域网权限问题,我来修

感谢~~

kangfenmao added a commit that referenced this issue Feb 11, 2025
duanyongcheng pushed a commit that referenced this issue Feb 11, 2025
@kangfenmao
Copy link
Collaborator

大家有空帮忙测试一下,找个局域网地址设置代理,看能否触发询问获取本地网络访问权限的弹窗(macOS)

Windows 用户不用测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants