Skip to content

补齐 Astra 元数据与 Max/Ultra 支持 / Add Astra metadata and reasoning efforts - #2112

Merged
BigPizzaV3 merged 3 commits into
BigPizzaV3:mainfrom
Yuimi-chaya:codex/astra-metadata
Sep 9, 2026
Merged

补齐 Astra 元数据与 Max/Ultra 支持 / Add Astra metadata and reasoning efforts#2112
BigPizzaV3 merged 3 commits into
BigPizzaV3:mainfrom
Yuimi-chaya:codex/astra-metadata

Conversation

@Yuimi-chaya

@Yuimi-chaya Yuimi-chaya commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

中文

问题与范围

gpt-6-astra 尚未进入内置兼容元数据查询,使用自定义供应商时会回落到通用模型信息,缺少原生 max / ultra 推理档位。用户已通过本地 catalog 配置验证这两个档位可用;此 PR 将对应元数据单独补齐。

  • 新增 Astra 元数据:low / medium / high / xhigh / max / ultra,默认 medium,默认上下文窗口 272K
  • 补齐 Fast 能力:additional_speed_tiers: ["fast"],沿用现有 priority service tier,使 catalog 与 UI 元数据一致。
  • 复用现有 catalog 生成与 UI descriptor 元数据通路,无窗口后缀、无 model list 时也能为当前 Astra 模型生成 catalog。
  • 保留显式窗口覆盖及其他模型行为;仅精确匹配 gpt-6-astra,不猜测别名。
  • 不新增推理控件、代理或请求重写,不改安装流程,不包含其他功能。

推理能力字段依据本地工作的兼容配置;272K 为本补丁的默认值。未将这些兼容值宣称为独立核验的官方模型规格。Responses Lite 保持关闭。

Fast 能力依据 OpenAI Fast mode 文档:请求接受 service_tier: "fast" 或兼容值 "priority"。本补丁沿用 Codex++ 现有 priority 通路,不修改请求逻辑。官方注明 Astra 的 Fast 不包含延迟 SLA,且不支持 EU 数据驻留;第三方供应商仍需自行支持此能力。

验证

cargo test --offline -q -p codex-plus-core --test model_suffix --test relay_config -j 2 -- --test-threads=1

  • model_suffix: 16 passed
  • relay_config: 146 passed
  • git diff --check: passed

覆盖 catalog/UI 六档及 Fast 能力一致性、272K 默认值、显式窗口覆盖、未知别名隔离及 PureApi 自动生成 catalog。未安装此分支产物,也未重新验证真实 API 请求;真人验证来自已有本地配置。

English

Add an exact-match Astra compatibility metadata entry through the existing catalog and UI metadata lookup. Expose native max and ultra alongside low/medium/high/xhigh, with a medium default and a 272K default context window.

This is a metadata-only fix: no new reasoning controls, request rewriting, proxy behavior or installation changes. Explicit window overrides and existing model behavior remain intact. Capability values follow a locally working catalog configuration, not independently verified official model specifications; the user's personal 300K override is deliberately excluded.

Fast support is separately verified against the official Fast mode guide, which accepts both fast and priority. Declare additional_speed_tiers: ["fast"] and reuse the existing priority service tier. Astra Fast has no latency SLA and is unavailable with EU data residency; third-party provider support is still required.

Validation: 16 model-suffix tests and 146 relay-config tests pass, including catalog/UI effort and Fast parity and no-suffix PureApi catalog generation. git diff --check passes. No build from this branch was installed and no fresh real API request was tested.

@940842546 940842546 mentioned this pull request Sep 6, 2026
2 tasks
@BigPizzaV3
BigPizzaV3 merged commit 2d66757 into BigPizzaV3:main Sep 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants