Skip to content

模型单价都为空了? #5960

Closed
Closed

Description

@tonylaysg

Client or integration

Codex CLI

Area

CLI

Summary

加入的提供方的模型的单价都为空了,应该要默认填写官方价吧。

Reproduction

现在需要一个一个去填写,很麻烦

Version

2.67

Operating system

linux

Provider and model

No response

Logs or error output

Screenshots and supporting files

No response

Redacted configuration

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. codingbooo commented on Sep 26, 2026

    @codingbooo
    Contributor

    I have investigated this and prepared a tested fix on branch fix/issue-5960-model-pricing (in fork codingbooo/opencodex).

    Root cause & Solution

    • In src/cli/models.ts and src/cli/models-runtime.ts, model listings and models price commands previously relied solely on explicit overrides in configuration, leaving newly registered provider models unpriced.
    • The fix derives default catalog price estimates from known provider pricing metadata when explicit overrides are absent, while preserving explicit zero prices and manual override behaviors.

    Tested with 41 focused tests in tests/cli/cli-models-price.test.ts and tests/cli/cli-models.test.ts.

  2. added a commit that references this issue on Sep 27, 2026
    e1b73f2
  3. lidge-jun commented on Sep 27, 2026

    @lidge-jun
    Owner

    Fixed on dev by #6026, carried in #6059 (merge 8923ad9835).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliCLI, config inject, packaging flags

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions