Closed bian-wz closed 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request]: Optimize third-party anti-generation
如果想要使用通义千问 提供的openai兼容api
CUSTOM_MODELS=-all,+qwen-turbo@OpenAI
会展示qwen-turbo(OpenAI)
的模型菜单,表示模型名称是qwen-turbo
,但是走OpenAI
的模式
Problem Description
新版支持阿里通义千问的请求后,模型请求会用通义的格式,但我的通义模型是通过oneapi进行使用的,而oneapi统一采用openai的格式。
Solution Description
加入一个新的变量用来判断是使用通义官方的格式,还是OpenAI的格式 或者根据是否填入通义模型的key来判断
Alternatives Considered
使用旧版本
Additional Context
No response