fruitbars / simple-one-api

OpenAI 接口接入适配,支持千帆大模型平台、讯飞星火大模型、腾讯混元以及MiniMax、Deep-Seek,等兼容OpenAI接口,仅单可执行文件,配置超级简单,一键部署,开箱即用. Seamlessly integrate with OpenAI and compatible APIs using a single executable for quick setup and deployment.
MIT License
1.25k stars 111 forks source link

ollama Error reading response body #52

Closed ZanebonoAlter closed 3 weeks ago

ZanebonoAlter commented 1 month ago

image

注释掉openai_ollama_handler.go中handleResponse的
defer resp.Body.Close()
就可以了

fruitbars commented 1 month ago

是有点问题,我来修复下,下个版本更新

fruitbars commented 1 month ago

v0.9.4修复了,https://github.com/fruitbars/simple-one-api/releases/tag/v0.9.4