MartialBE / one-api

OpenAI 接口管理 & 分发系统,改自songquanpeng/one-api。支持更多模型,加入统计页面,完善非openai模型的函数调用。
https://one-api-martialbe.vercel.app/
Apache License 2.0
815 stars 166 forks source link

渠道支持多个密钥 #203

Open 80imike opened 1 month ago

80imike commented 1 month ago

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

image

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

希望大佬支持下,感谢

MartialBE commented 1 month ago
image

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

80imike commented 1 month ago

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

修改能支持下 就更好了

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

image

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

MartialBE commented 1 month ago

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

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

80imike commented 1 month ago

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

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

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

MartialBE commented 2 weeks ago

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