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,配置在one-api,测试连接时报错。 #1150

Closed
5 tasks done
hnbzlb opened this issue Mar 14, 2024 · 4 comments
Closed
5 tasks done

在本地安装ollama,配置在one-api,测试连接时报错。 #1150

hnbzlb opened this issue Mar 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@hnbzlb
Copy link

hnbzlb commented Mar 14, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
one-api采用docker安装 ,ollama与one-api安装在同一个机器上。
在one-api管理渠道中配置渠道,模型为qwen:0.5b-chat,在管理渠道中点击【测试】连接时报错,如下图。

复现步骤
预期结果

相关截图
image
我验证模型是可以运行。
image

image

@hnbzlb hnbzlb added the bug Something isn't working label Mar 14, 2024
@songquanpeng
Copy link
Owner

Docker 里安装网络默认是不互通的,建议改成你的公网 ip

@hnbzlb
Copy link
Author

hnbzlb commented Mar 15, 2024

我在云服务器部署,我觉得应该是可以设置ip的,感觉这个IP写死了,我现在服务器,在容器应用内肯定无法访问宿主机的127.0.0.1,只能是IP,现在应用没有地方可以设置。我现在使用手动版本安装,是可以了

@hnbzlb
Copy link
Author

hnbzlb commented Mar 19, 2024

4f61fc1d12ea4f709c4f1e2ae9e6bdd3~noop
已解决。

@hnbzlb hnbzlb closed this as completed Mar 19, 2024
@sonny-zhang
Copy link

@hnbzlb 你用的公网IP吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants