-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
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
🐞 反馈问题:自定义服务添加千问模型无法翻译 #550
Comments
Hello AnaheimEX, Thank you for your first issue contribution 🎉 |
This comment was marked as resolved.
This comment was marked as resolved.
标准的 OpenAI 请求格式如下,其中 URL 和 API_KEY 替换为响应的值。 curl $URL \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "No models available",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}' |
对于一些不兼容 OpenAI 接口的服务,可通过 one-api 等第三方开源项目,将其转换为标准的 OpenAI 接口格式,这样就能在 Easydict 中使用了。 |
感谢大大回复,关于兼容的问题,我在阿里的文档上看到有提。 为支持广大开发者使用熟悉的OpenAI接口来访问DashScope上的API服务,DashScope提供了与OpenAI兼容的接口。用户只需要配置DashScope的API key以及服务endpoint,即可通过OpenAI API以及SDK来访问DashScope上托管的模型服务。 是不是直接在OpenAI服务下填写阿里的OpenAI兼容接口的API地址和阿里模型的key就可以吧? |
看了一下文档,阿里前两天也做了 OpenAI 接口兼容,这是好事。(不兼容 OpenAI 格式的 LLM 服务都是异端 🙄) 但感觉他们很仓促,明显没有经过足够测试,没有严格遵守 标准 OpenAI 接口 。 stream 接口的 finish_reason 字段返回数据格式不对,要么应该是 stop 或 length 等枚举,要么是 null,不应该是字符串 "null",这可能会导致解析错误。
![]() |
其实大部份这种第三方 LLM 服务都是用 one-api 搭建的,我自己也搭了一个, Easydict 内置 AI 翻译支持各种模型,就是这样实现的。 |
请先确认以下事项:
问题描述
自定义模型那边已经设置好了,验证也通过。
设置如下:
但是在翻译时,窗口内是空白的

该问题是否可以稳定重现?
可重现
重现步骤
翻译时窗口内是空白
截图
期望结果
期待解决
解决方案(可选)
No response
设备型号 && 系统版本
Apple M2 Pro macOS14.4.1
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: