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
[Bug] ollama 可以添加,检查通过,但是chat 中报错 #2187
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
我使用了lobe 相同ip的ollama 可以访问了,其他服务器的ollama 访问会报错让检查扩域什么的, [Service] |
@miracletiger 没太看明白,能讲清楚一些吗? |
@miracletiger I don’t quite understand, can you explain it more clearly? |
我的也报错。一开始检查报错,配置了OLLAMA_ORIGINS后正常。但是聊天出错。报奇怪的 https:///api/chat/ollama 401错误。 |
Mine also reported an error. I checked the error at the beginning and it was normal after configuring OLLAMA_ORIGINS. But an error occurred in the chat. A strange https:///api/chat/ollama 401 error was reported. |
刚刚升级到了:v0.149.2,其支持了浏览器请求模式后,我的问题解决了。 |
I just upgraded to: v0.149.2, which supports browser request mode, and my problem is solved. |
是ollama跨域的问题,参考https://lobehub.com/zh/docs/self-hosting/examples/ollama#%E9%9D%9E%E6%9C%AC%E5%9C%B0%E8%AE%BF%E9%97%AE-ollama |
It is a cross-domain problem with ollama. Please refer to https://lobehub.com/zh/docs/self-hosting/examples/ollama#%E9%9D%9E%E6%9C%AC%E5%9C%B0%E8%AE %BF%E9%97%AE-ollama |
👋 @{{ author }} |
This issue is closed, If you have any questions, you can comment and reply. |
💻 Operating System
Ubuntu
📦 Environment
Official Preview
🌐 Browser
Chrome
🐛 Bug Description
可以添加ollama 模型,检查通过 选择ollama模型 chat 后报错, 使用的最新版本LobeChat v0.149.2 , ollama version is 0.1.32
{
"error": {
"message": "fetch failed",
"name": "TypeError"
},
"provider": "ollama"
}
🚦 Expected Behavior
No response
📷 Recurrence Steps
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: