new-api添加渠道错误


这么填写渠道的,报错:错误:do request failed: Post “http://127.0.0.1:8000/v1/chat/completions”: dial tcp 127.0.0.1:8000: connect: connection refused

使用的是这个项目:https://github.com/LLM-Red-Team/deepseek-free-api逆向deepseek的,是这个项目不允许填入newapi还是我渠道填写错误。

docker 容器之间网络默认是不互通的,给 newapi 容器加上 --add-host host.docker.internal:host-gateway,然后用 http://host.docker.internal:8000 就能访问到宿主机的网络了

谢谢大佬,我试一下

大佬成功解决了,感谢,跪拜