-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Refactor ratio #2038
base: main
Are you sure you want to change the base?
Refactor ratio #2038
Conversation
还是统一使用 ctxkey 比较好,你可以让 |
请教下这个重构的意义是什么,带来了什么新功能吗或解决了什么问题吗? |
See #2023 |
看了下,感觉很不错。不过我觉得没必要在页面上保留那两个【已废弃】,能自动将历史数据转为新格式就更好了。 |
Hi @songquanpeng, would you please help review and merge the code? |
感觉是多此一举,补全倍率很少去配置,这样修改后反而每个模型都要配置补全,反向优化 |
这里稍微改几行就可以实现支持缺省的补全倍率。 one-api/relay/billing/ratio/model.go Lines 419 to 423 in f2bff58
|
close #2023
我已确认该 PR 已自测通过,相关截图如下:
默认倍率
自定义倍率配置
自定义倍率前后对比