Repository navigation
Conversation
Contributor
|
Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA). To sign, please reply with the following comment:
You only need to sign once — it will be valid for all your future contributions to this project. I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
8 of 12 tasks
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.
Summary
gpt-6-astra请求reasoning.effort=max时,API Key 透传的请求体保留max,但用量元数据被归一化成xhigh,导致使用记录误显示Max → XHigh。原因是supportsOpenAIReasoningEffortMax未识别 Astra。gpt-6-astra及以gpt-6-astra-分隔的后缀变体纳入独立max档位识别,复用现有的提供商前缀、大小写和下划线处理。普通 Astra 请求的记录由requested=max / effective=xhigh变为requested=max / effective=max。Testing
git diff --cached --check:通过。gofmt -l backend/internal/service/openai_gateway_request_body.go backend/internal/service/openai_gpt6_max_test.go:无输出,格式检查通过。Risks
max识别;其他模型既有的max → xhigh兼容行为、分组上限/映射规则保持现状。没有数据库迁移,历史记录不会回写。max识别部分重叠。本 PR 提供独立的记录修复和透传回归用例;若优先合入 feat(openai): complete GPT-6 Astra support #6572,可复用相关用例并关闭本 PR,避免重复维护。