本地ollama + cherry studio 连接失败问题

49 阅读1分钟

ollama版本:0.13.5
cherry studio版本:1.7.4

cherry studio中ollama默认地址为:http://localhost:11434 ,接口为:预览:http://localhost:11434/v1/chat/completions
但实际ollama的接口为"/api/chat":
[GIN] 2025/12/30 - 12:19:53 | 200 | 10.9024206s | 127.0.0.1 | POST "/api/chat" 。
如果按照cherry studio的默认设置,ollama后端是有反应的:
[GIN] 2025/12/30 - 12:15:34 | 404 | 0s | 127.0.0.1 | POST "/v1/chat"
但是无法连接。

解决方法很简单,在api地址后添加:/api#