We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用 OpenAI 自定义域名会出现这个问题
easydict://writeKeyValue?EZOpenAIDomainKey=api.openai-sb.com/v1/chat/completions easydict://writeKeyValue?EZOpenAIAPIKey=sb-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
无
No response
MacBook Pro Intel Core i7, 13.4 (22F66)
The text was updated successfully, but these errors were encountered:
Hello huzhongyang, Thank you for your first issue contribution 🎉
Sorry, something went wrong.
从报错信息来看,可能是你自定义域名的服务端部署出了问题,客户端 Easydict 这边的 request Content-Type 是 application/json,responese Content-Type 是 text/event-stream,我对服务端不太了解,你可以对照检查一下。
application/json
text/event-stream
如果有疑问,可以看看这里 #28 (comment)
关于部署自定义域名,可以参考这个 vercel 反代项目 vercel-reverse-proxy
另外,EZOpenAIDomainKey 只需要自定义域名 host,如默认 api.openai.com,因此你这个似乎应该是 api.openai-sb.com, 不要带后面的 path,path 我这边会自动拼接的。
api.openai.com
api.openai-sb.com
easydict://writeKeyValue?EZOpenAIDomainKey=api.openai-sb.com/v1/chat/completions
嗯, 就是这个问题. 感谢作者解答 🙏
No branches or pull requests
请先确认以下事项:
问题描述
使用 OpenAI 自定义域名会出现这个问题
重现步骤
easydict://writeKeyValue?EZOpenAIDomainKey=api.openai-sb.com/v1/chat/completions
easydict://writeKeyValue?EZOpenAIAPIKey=sb-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
期望结果
无
解决方案(可选)
No response
设备信息 && 操作系统版本(可选)
MacBook Pro Intel Core i7, 13.4 (22F66)
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: