• Lee_Crush

    图片

    但CLI可以用

    图片

    主楼
  • Foresee

    佬 你看看你的sub2api同步到了astra这个模型没有 目前官方还没有更新 需要佬上去拉取一下新模型

    #1
  • Lee_Crush

    有的有的 拉了才在Codex显示的 但就是用不了

    图片

    #2
  • Foresee

    诶 那好奇怪我去 不太了解了 重启一下codex之类的也不行吗? ^-^

    #3
  • 廿四

    我是可以选Astra,但是思考强度改不了,ccs+sub2自建账号api同时登录

    #4
  • 霸王茶几

    好像是sub2api 生成的codex-model.json有bug

    #5
  • 小宇宙

    要等sub2api合并个pr

    #6
  • Lee_Crush

    试了下 cli可以用 但我cli和app都是最新版 有的奇怪

    #7
  • Lee_Crush

    应该是要等sub2API

    #8
  • ionase

    sub2api自动生成的models_cache.json/codex-models.json有问题,astra的部分没思考强度

    自己复制一份codex-model.json然后把sol的思考强度部分复制过来就行了

    然后config.toml里加一行指向codex-models.json的位置

    比如 model_catalog_json = "~/.codex/codex-models.json"

    #9
  • lyy0709

    我提了适配的pr,你可以让5.6先合并一下然后自行打包,作者还没合并发版

    github.com/Wei-Shaw/sub2api

    feat(openai): add GPT-6 Astra support (#6572)

    main ← lyy0709:codex/gpt-6-astra

    已打开 02:27AM - 04 Sep 26 UTC

    图片

    lyy0709

    +258
    -13

    Summary

    • register gpt-6-astra across the OpenAI model catalog, Codex/OAut…h normalization, reasoning metadata, vision support, Fast tier, and OpenCode configuration
    • expose gpt-6 as the public GPT-6 (Astra) alias, matching the existing gpt-5.6 to Sol alias behavior
    • add official standard, cached-input, cache-write, output, Fast/Flex, and >272K long-context billing coverage

    OpenAI model reference: https://developers.openai.com/api/docs/models/gpt-6-astra

    The remote model-price repositories already contain gpt-6-astra, so this PR deliberately does not modify the bundled model pricing JSON or any pricing URL.

    Verification

    - go test ./internal/pkg/openai ./internal/service -run 'GPT6|GPT6Astra|MaxCapable|NewConfiguredCodexModelDescriptorUsesProviderMetadataAndSafeFallback|CompleteAPIKeyCodexModelsManifestForClientMarksOnlyOfficialVisionGPTImageInput|AdjustAPIKeyCodexModelsManifest|NormalizeCodexModel_Gpt53'\n- pnpm exec vitest run src/composables/__tests__/useModelWhitelist.spec.ts src/components/keys/__tests__/UseKeyModal.spec.ts\n- make test\n- make build

    #10
  • 刘博摸鱼之路

    图片

    可以用吧

    #11
  • 木南城

    佬 你这个缓存命中对吗 看着不高啊

    #12
  • Lee_Crush

    我cli可以用 sub2api是有记录 目前是app有问题

    图片

    图片

    #13
  • lyy0709

    图片

    这是我自用的版本,已经处理过了是没问题的

    #14
  • MrHear

    让 codex 给你改下,在配置里指向本地改好的 model cache json 就好了。现在是上游 sub2api 没更新

    #15

发表回复

登录后回复