-
Notifications
You must be signed in to change notification settings - Fork 59.1k
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]: 基于模型服务商+模型名选择请求格式,而不是简单地依靠模型名 #4804
Labels
Comments
可以one-api里设置别名,next-web里再设置回显示名。 |
You can set the alias in one-api, and then set the display name back in next-web. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Problem Description
有如下情景:
经过 one-api 得到 openai 请求格式的 gemini-pro 模型,即请求格式类似:
如果填入one_base作为 openai 的自定义端点,填入one_key、自定义模型gemini-pro,仍然提示需要配置 Google 作为模型服务商。
类似的情景我相信还有很多。其实如果通过one_api来中转api,这边以 openai API 的客户端,完全可以轻松地实现多端点、多key的轮询。只需要让发起请求的api格式不简单地通过模型名称来分别。
Solution Description
对于这个问题,我的解决思路是:
模型服务商+模型名
,唯一描述一个模型允许的请求格式模型名(服务商)
确定模型名和请求格式(OpenAI/Google/Azure等)Alternatives Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: