feat: 新增对话临时API并接入页面增强开关#512
Open
GinirohikoCha wants to merge 4 commits into
Open
Conversation
Owner
|
截个图看看 |
Author
Owner
|
测试无法生效 |
Author
我这边是中转新建apikey然后看到是正常切过来从$0开始正常计费的,您指的测试无法生效是指的哪个部分我排查一下 |
Author
|
修复对于新建对话无Thread ID的情况下,无法设置临时API的问题。 |
Owner
|
我测试是写了,但是还是走原来的 |
Author
我这边是能成功计费的,我让我朋友帮忙测试也可以通过,请求大伙帮忙测试下 per-thread-temporary-api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






概要
新增“对话临时API”能力:可按对话临时设置 baseUrl/apiKey 覆盖请求。
在页面增强中接入“对话临时API”开关。
管理工具“页面增强”中新增对应开关项。
变更点
注入层:支持对 thread/start、thread/resume、turn/start 请求注入临时 provider 配置与鉴权。
后端设置:新增 codexAppThreadEndpointAuth 配置项。
管理工具:新增“对话临时API”开关展示与保存。
默认行为:对话临时API默认关闭。
验证
cargo build --release 通过。
功能已本地验证:配置临时 key 后请求可命中对应提供商计费。