Skip to content

创建模型时,添加 Ollama 供应商报错。 #6

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

Closed
wanghe-fit2cloud opened this issue Mar 21, 2024 · 6 comments
Closed

创建模型时,添加 Ollama 供应商报错。 #6

wanghe-fit2cloud opened this issue Mar 21, 2024 · 6 comments
Assignees
Milestone

Comments

@wanghe-fit2cloud
Copy link
Member

联系方式

No response

MaxKB 版本

v0.9.0

问题描述

添加应用 - 模型,供应商选择 Ollama,输入所有信息后点击确认按钮,提示 key 是否正确

Ollama 和 MaxKB 都是通过 1Panel 应用商店安装,key 已经确认没有问题。

image

重现步骤

添加应用 - 模型,供应商选择 Ollama,输入所有信息后点击确认按钮。

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

@wanghe-fit2cloud
Copy link
Member Author

经确认,是因为没有提前下载 llama2:13b 模型导致的报错。

1、可以优化一下提示信息,目前提示 key 错误 不太友好,不能直接定位到具体问题。
2、是否可以在没有目标模型时自动拉取,并在支持在页面实时查看下载进度(可以参考 Open WebUI)

@baixin513
Copy link
Contributor

好主意,我们尝试实现一下。

@huxiusheng1
Copy link

请问你是怎么获取的apikey?

@wanghe-fit2cloud
Copy link
Member Author

请问你是怎么获取的apikey?

http://1Panel 服务器 IP:Ollama 对外暴露端口号/v1

官方文档 也有相关描述,如图:
image

@wanghe-fit2cloud
Copy link
Member Author

v0.9.1 版本已发布。

@jingzl
Copy link

jingzl commented Apr 4, 2024

在 0.9.1 版本中,问题重新出现

honestAnt pushed a commit to honestAnt/MaxKB that referenced this issue Apr 2, 2025
…lop)

Merge Request: bugfix:调整镜像配置3

Created By: @王凤宝
Accepted By: @王凤宝
URL: https://megarobo-biolauto.coding.net/p/github/d/maxkb/git/merge/6?initial=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants