dify1.0.0版本以上添加通过ollama添加模型时无反应或者 internal server error

dify近日已升级至1.0.1,尝试升级至1.0.1时,发现通过ollama添加模型时无反应,换成谷歌浏览器后又报 internal server error。模型URL填写的是http://host.docker.internal:11434

dify1.0.0版本以上添加通过ollama添加模型时无反应或者 internal server error_第1张图片

查看后台日志发现有报错,

dify1.0.0版本以上添加通过ollama添加模型时无反应或者 internal server error_第2张图片

于是去github报了一个issue,后在.env文件下添加ollama相关配置才解决问题

PROVIDER_OLLAMA_API_BASE_URL=http://host.docker.internal:11434
PLUGIN_WORKING_PATH=/app/cwd

解决方案参考:

When I tried to add the Deepseek model after adding Olama, clicking the save button did not respond · Issue #15538 · langgenius/dify · GitHub

Error when adding ollama model · langgenius/dify · Discussion #14104 · GitHub

你可能感兴趣的:(dify,AIGC,AI编程,agi)