Important
增加了普通渠道和任务插件一起选择渠道的功能。同一个模型名,插件和普通渠道都有的时候,以前请求都发给插件,现在按优先级和权重选择渠道。
这个模型的定价如果还是按任务插件写的,普通渠道会报价格错误,不会扣额度。可以单独给普通渠道设置价格。
增加了 OpenAI 12 小时提示缓存单独计价的功能,按输入价格的 2.5 倍收费。
修复了视频任务超过 24 小时就被退款的问题。默认等到 72 小时才退款。
Added selecting a channel from both a regular channel and a task plugin. On image, video, and Responses endpoints, a model both can serve used to send every request to the plugin. The channel is now selected by priority and weight.
If that model's price is still written for the task plugin, a regular channel returns a price error and does not charge. Set a regular price for it in pricing.
Added a separate price for OpenAI's 12-hour prompt cache, at 2.5 times the input price. It was charged at the 30-minute rate.
Fixed the problem of video tasks being refunded after 24 hours. They now wait 72 hours. If you set TASK_TIMEOUT_MINUTES yourself, that time stays.
中文
- 渠道:增加了图片、视频和 Responses 上,普通渠道和任务插件按优先级和权重一起选择渠道的功能。原生插件地址继续走对应的插件。普通渠道和插件各用各的价格。
- 计费:增加了 OpenAI 12 小时提示缓存单独计价的功能,按输入价格的 2.5 倍收费。gpt-6-astra 的 12 小时写入是每百万 token 25 美元,超过 272K token 是 50 美元。修复了 Claude 缓存写入没拆成 5 分钟和 1 小时时不计费的问题,没拆开的按 5 分钟计费。
- 价格同步:增加了按站点汇率调整上游价格的功能。可以保持来源价格,也可以乘以或除以汇率。价格相同的模型也能选出来一起改。
- 任务:修复了视频任务超过 24 小时就被退款的问题,默认等到 72 小时。自己设过 TASK_TIMEOUT_MINUTES 的,还是用你设的数。修复了可灵按 metadata 里的时长生成、计费却按外面的时长算的问题。增加了任务插件原生接口接收文件上传的功能。任务插件可以读到客户端请求头,Authorization 和 Cookie 不会给插件。
- 流式:修复了大段内容传得慢就被当成断开的问题。修复了 Responses 已经回复完、日志里却记成断开的问题,用量照常记。
- 其他:修复了结构化输出和工具参数字段顺序被打乱的问题,按客户端原来的顺序发给上游。修复了 Chat 转 Gemini 时丢掉 imageConfig 的问题,图片尺寸和比例会带过去。修复了高级自定义保存后「透传请求体」丢失的问题。修复了编辑令牌或模型时,切到另一条还留着上一条内容的问题。修复了访问日志记下网址里的密钥的问题。增加了使用日志详情里复制模型名的功能。
English
- Channels: Added selecting a channel by priority and weight between a regular channel and a task plugin, on image, video, and Responses endpoints. A plugin's own address still goes to that plugin. Regular channels and plugins keep separate prices.
- Billing: Added a separate price for OpenAI's 12-hour prompt cache, at 2.5 times the input price. gpt-6-astra bills 12-hour writes at $25 per million tokens, and $50 above 272K tokens. Fixed the problem of Claude cache writes going unbilled when they were not split into 5-minute and 1-hour amounts. The unsplit part is billed as 5-minute writes.
- Price sync: Added adjusting synced upstream prices by the site exchange rate. You can keep the source price, or multiply or divide by the rate. Models that already match can be selected and adjusted too.
- Tasks: Fixed the problem of video tasks being refunded after 24 hours. The default wait is now 72 hours. A TASK_TIMEOUT_MINUTES you already set is left as it is. Fixed the problem of Kling billing the outer duration while generating the duration in metadata. Added file uploads on a plugin's own routes. Task plugins can read the client's request headers. Authorization and Cookie are not given to the plugin.
- Streaming: Fixed the problem of a slow transfer of a large event being recorded as a disconnect. Fixed the problem of a finished Responses reply being logged as a disconnect. The usage is still recorded.
- Also: Fixed the problem of structured output and tool parameters having their field order rearranged. They are sent in the client's order. Fixed the problem of Chat requests losing imageConfig on the way to Gemini, so image size and aspect ratio are kept. Fixed the problem of Advanced Custom dropping Pass Through Body on save. Fixed the problem of an edit drawer keeping the previous token or model when you switch records. Fixed the problem of access logs storing keys from the URL. Added copying model names from a usage log's details.
What's Changed
- fix(relay): 正确结束已完成的 Responses 流 by @Calcium-Ion in #7956
- feat(billing): bill OpenAI 12-hour prompt cache writes at their own price by @Calcium-Ion in #7965
- fix(channels): preserve advanced custom body passthrough settings by @seefs001 in #7971
- fix(logging): 隐藏访问日志中的查询凭据 by @ceezyyy in #7972
- fix: prevent stale values when switching edit drawer records by @seefs001 in #7989
- chore(deps): bump react-resizable-panels from 4.12.2 to 4.14.6 in /web by @dependabot[bot] in #7982
- chore(deps): bump input-otp from 1.4.2 to 1.5.0 in /web by @dependabot[bot] in #7980
- chore(deps): bump i18next from 26.3.6 to 26.5.3 in /web by @dependabot[bot] in #7979
- chore(deps): bump react-i18next from 17.0.10 to 17.1.0 in /web by @dependabot[bot] in #7981
- chore(deps): bump axios from 1.18.1 to 1.20.0 in /web by @dependabot[bot] in #7835
New Contributors
Full Changelog: v1.0.0-rc.46...v1.0.0-rc.47