Skip to content
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

[Feature Request]: 对第三方反代优化 #4985

Closed
bian-wz opened this issue Jul 12, 2024 · 2 comments
Closed

[Feature Request]: 对第三方反代优化 #4985

bian-wz opened this issue Jul 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bian-wz
Copy link

bian-wz commented Jul 12, 2024

Problem Description

新版支持阿里通义千问的请求后,模型请求会用通义的格式,但我的通义模型是通过oneapi进行使用的,而oneapi统一采用openai的格式。

Solution Description

加入一个新的变量用来判断是使用通义官方的格式,还是OpenAI的格式
或者根据是否填入通义模型的key来判断

Alternatives Considered

使用旧版本

Additional Context

No response

@bian-wz bian-wz added the enhancement New feature or request label Jul 12, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature Request]: Optimize third-party anti-generation

@lloydzhou
Copy link
Contributor

如果想要使用通义千问 提供的openai兼容api

  1. 使用通义千问的变量配置BASE_URL + OPENAI_API_KEY
  2. 配置CUSTOM_MODELS=-all,+qwen-turbo@OpenAI 会展示qwen-turbo(OpenAI)的模型菜单,表示模型名称是qwen-turbo,但是走OpenAI的模式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants