Skip to content

bug:ollama not found #253

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

Open
lishuoqwq opened this issue Mar 13, 2025 · 23 comments
Open

bug:ollama not found #253

lishuoqwq opened this issue Mar 13, 2025 · 23 comments
Assignees

Comments

@lishuoqwq
Copy link

Current Behavior

我使用的是Ubuntu24.04的系统,一键脚本本地部署报错ollama not found

Expected Behavior

No response

Error Logs

ℹ Info: Updating apipark node cluster...
ℹ Info: curl -s -i -H "Content-Type: application/json" -d "{"name":"admin","password":"aezieY2a"}" http://10.135.40.8:18288/api/v1/account/login/username
✔ Passed: login success
ℹ Info: curl -s -X PUT -H "Cookie: session=26a1b775-9e2f-4d20-9f49-823c6cd1d7f4" -d "{"manager_address":"10.135.40.8:9400"}" http://10.135.40.8:18288/api/v1/cluster/reset
✘ Error: Update apipark node cluster failed: {"code":-1,"success":"fail","msg":"ollama address not found"}

Steps to Reproduce

No response

Environment

  • APINTO Dashboard version:
  • Operating system (run uname -a):
@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 13, 2025

是的,我们也发现了这个问题,这个报错不影响实际使用,我们将结合最新的发版修复该问题

@lishuoqwq
Copy link
Author

是的,我们也发现了这个问题,这个报错不影响实际使用,我们将结合最新的发版修复该问题

感谢你的回答,目前只搭建APIPark Dashboard是没什么问题的,搭建Node (API Gateway)会报错这个ollama问题

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 13, 2025

您如果有ollama,可以进行配置,该问题就会没有
或者您直接发布即可,网关实际上是可以正常工作的
本周内我们将发布1.6版本,该问题连同该版本一起修复,感谢您的反馈

@Dot-Liu Dot-Liu self-assigned this Mar 17, 2025
@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

您好,这个问题已经得到了修复,请更新apipark修复该问题

@lishuoqwq
Copy link
Author

您好,这个问题已经得到了修复,请更新apipark修复该问题

好的感谢 我试试

@lishuoqwq
Copy link
Author

您好,这个问题已经得到了修复,请更新apipark修复该问题

按照文档部署了个翻译机
Image
请问怎么调用才能翻译

Image

@lishuoqwq
Copy link
Author

好像使用post 只能做大预言模型的对话 但是无法去根据我的提示词进行内容翻译

Image

@lishuoqwq
Copy link
Author

请问,有没有任何API文档说明variables的使用方式?

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

您这个调用看起来是没错的,我们先排查一下

@lishuoqwq
Copy link
Author

您这个调用看起来是没错的,我们先排查一下

variables这个怎么调用呢? 我是使用的Gemini中转openai 的格式?postman应该如何调用我variables的内容进行翻译?

@jeak01
Copy link
Collaborator

jeak01 commented Mar 17, 2025

variables这个怎么调用呢? 我是使用的Gemini中转openai 的格式?postman应该如何调用我variables的内容进行翻译?

例如这样子

Image

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

Image

Image

请问你Apinto的版本号是多少?

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

Image

可以通过docker ps -a | grep apipark-apinto输出

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

Image

您可以按照这个提示更新到最新的版本

@lishuoqwq
Copy link
Author

Image

您可以按照这个提示更新到最新的版本

我今天才使用一键脚本安装的最新版本的 我指的是

Image

我按照示例填写 但是怎么让这个body里面的text的variables内容使用大模型给翻译输出出来

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 17, 2025

还请麻烦你重新更新一下apipark-apinto,刚刚修复了prompt被删除了的问题
更新完成后,按照你现在这么填写就可以了

@lishuoqwq
Copy link
Author

lishuoqwq commented Mar 18, 2025

还请麻烦你重新更新一下apipark-apinto,刚刚修复了prompt被删除了的问题 更新完成后,按照你现在这么填写就可以了

感谢 已经可以了 感觉官方文档并没有提及调用rest服务的时候,填写 API 上游应该如何去写?

Image

Image

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 18, 2025

这个原因是你没有修改转发路径,请求路径是客户端请求网关的路径,转发路径是匹配中路由后,网关请求上游的路径

@lishuoqwq
Copy link
Author

这个原因是你没有修改转发路径,请求路径是客户端请求网关的路径,转发路径是匹配中路由后,网关请求上游的路径

Image

Image

这个转发路径和请求路径,请问具体怎么配置?

@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 18, 2025

转发上游路径就填你上游的接口路径就好了啊,比如你上游的接口路径路径是/web/user/info

@lishuoqwq
Copy link
Author

这是我们自己API接口进行测试的结果

Image

但是使用你们这个接口就接入不进来

Image

转发上游路径我已经改成了/api/了 请问还有其他的地方需要注意的吗?

@lishuoqwq lishuoqwq reopened this Mar 18, 2025
@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Mar 18, 2025

鉴权没有共用的问题,你可以自己创建一个和你后端服务一样的鉴权

@lishuoqwq lishuoqwq changed the title bug: 一键脚本本地部署报错ollama not found bug:ollama not found Mar 29, 2025
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

4 participants
@jeak01 @Dot-Liu @lishuoqwq and others