fix(pricing): 补齐 GPT-6 Astra 内置价格支持 - #34
Merged
Merged
Conversation
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.
此前内置价格表缺少
gpt-6-astra,离线且没有该模型的在线价格缓存时,API 等价成本会将其视为未知模型;始终使用内置价格的最近会话也无法显示 Astra 费用。本次补齐内置价格,使这些路径能够按现有公式计算费用。openai-builtin-2026-09-11,使旧内置价格版本的费用缓存失效。价格来源:OpenAI GPT-6 Astra 官方文档。
计价范围沿用现有的普通输入、缓存读取、输出三项公式。缓存写入和长上下文价格保存在价格表中,尚未接入费用计算;仅匹配官方模型 ID
gpt-6-astra及其日期快照,不将未知的gpt-6系列名称自动映射到 Astra。验证
bash Scripts/test.sh通过:全量 705 项测试、97 个测试套件通过,swift run CodexRunway --self-check执行成功。git diff --check通过。