labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://fastgpt.in
Other
15.58k stars 4.09k forks source link

使用ollama模型进行对话时,提示对话接口报错或返回为空 #1972

Closed rainless01 closed 1 week ago

rainless01 commented 1 week ago

例行检查

你的版本

问题描述, 日志截图 在接入ollama本地模型进行对话时,出现了<对话接口报错或返回为空>的错误,查找了许多文档但是找不到解决办法

在oneapi中,模型通过了测试,也将模型加入到了令牌当中 image 在最初启动容器的时候oneapi的日志 image fastgpt的日志 image 以下是我的config的配置内容 image 在进行对话以后,出现了报错,oneapi的日志如下 image fastgpt日志如下 image 但在ollama上可以正确运行本地模型 现在不知道哪个环节出现了问题,请大佬给出解决方法

zhiwei22 commented 1 week ago

oneapi日志显示,failed to initialize database. 端口号3306 提示mysql数据库没法连接 可能是因为这个原因吗?

我遇到了相同的问题

c121914yu commented 1 week ago

https://github.com/labring/FastGPT/issues/1952 重复 issue

rainless01 commented 1 week ago

oneapi日志显示,failed to initialize database. 端口号3306 提示mysql数据库没法连接 可能是因为这个原因吗?

我遇到了相同的问题

换一下oneapi的版本就好了,在docker-compose.yml文件里改一下oneapi的镜像版本,然后docker-compose pull就好了

zhiwei22 commented 1 week ago

oneapi日志显示,failed to initialize database. 端口号3306 提示mysql数据库没法连接 可能是因为这个原因吗? 我遇到了相同的问题

换一下oneapi的版本就好了,在docker-compose.yml文件里改一下oneapi的镜像版本,然后docker-compose pull就好了

1952 重复 issue

感谢,已解决