希望可以支持deepseek
Deepseek模型可以国内访问,比gpt-3.5效果好,而且成本更低。当前问题是model设置成deepseek-chat时,调用的不是chat接口,导致返回异常。
或许一种可能的修复方式是修改如下代码,把默认情况改成使用chat?
https://github.com/anc95/writely/blob/3faed52cec9b5f52d8504bfef2f970585233eb3c/src/common/api/openai.ts#L70-L73
To be compatible with OpenAI, you can also use https://api.deepseek.com/v1 as the base_url. But note that the v1 here has NO relationship with the model's version.
试试改成 https://api.deepseek.com/v1
To be compatible with OpenAI, you can also use https://api.deepseek.com/v1 as the base_url. But note that the v1 here has NO relationship with the model's version.
试试改成 https://api.deepseek.com/v1
这个v1接口可能下线了。
https://api.deepseek.com/v1/chat/completions
我看你的截图里请求中少了一个 chat
v1/chat和chat的返回是一样的,似乎都是因为请求传的不是chat接口需要的messages,而是prompt。
我看这个逻辑,似乎是只有gpt-4,名字里带turbo的,还有是writely service的,是走chat接口。
@wptoux 哦对,谢谢,我处理一下
@wptoux 商店已经更新了,你那边再试一试