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

渠道支持多个密钥 #203

Open
80imike opened this issue May 21, 2024 · 5 comments
Open

渠道支持多个密钥 #203

80imike opened this issue May 21, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@80imike
Copy link

80imike commented May 21, 2024

现在一个渠道只支持一个密钥

image

我看有些版本可以批量使用多个密钥, 比如 : songquanpeng/one-api
image

希望大佬支持下,感谢

@80imike 80imike added the enhancement New feature or request label May 21, 2024
@MartialBE
Copy link
Owner

image 有这个开关,但是只限于 新增,修改没有

@80imike
Copy link
Author

80imike commented May 22, 2024

image 有这个开关,但是只限于 新增,修改没有

修改能支持下 就更好了

现在的逻辑是新增的时候有多个密钥就会自动增加多个渠道

image

这种设计和单独加多个渠道是一样的,还是要维护多个渠道,要是能一个渠道下能支持多个密钥就更加方便了

@MartialBE
Copy link
Owner

暂时 不会在同一个渠道中 配置 多个key, 因为 这里面有负载均衡,可以配置 优先级和权重,如果不拆分,这些不好配置。

后续会优化前端操作逻辑。 见 #140

@80imike
Copy link
Author

80imike commented May 22, 2024

暂时 不会在同一个渠道中 配置 多个key, 因为 这里面有负载均衡,可以配置 优先级和权重,如果不拆分,这些不好配置。

后续会优化前端操作逻辑。 见 #140

感谢大佬回复,期待后续优化

@MartialBE
Copy link
Owner

dev版本已支持。
docker pull ghcr.io/martialbe/one-api:dev

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

2 participants