Skip to content

The call speed is super slow, but calling the GPT model directly without OpenCodex is very fast #338

Closed

Description

@chessmiller

Client or integration

Codex App

Area

Proxy and routing

Summary

Image 响应速度极慢,即使调用成功 tok/s也不超过5.

Reproduction

正常启动ocx,配置了chatgpt账号和grok账号,gemini账号,账号均有额度使用状态正常。 但就是响应时长非常非常慢!

Version

v2.7.36

Operating system

mac

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. changed the title [-]调用速度超级慢,但不用opencodex,直接调用gpt自身模型就很快[/-] [+]The call speed is super slow, but calling the GPT model directly without OpenCodex is very fast[/+] on Jul 23, 2026
  2. github-actions commented on Jul 23, 2026

    @github-actions
    Contributor

    English translation (original: zh)

    Client or integration

    Codex App

    Area

    Proxy and routing

    Summary

    Image The response speed is extremely slow, even with successful calls, the tokens per second do not exceed 5.

    Reproduction

    Normal startup of ocx, configured with ChatGPT account, Grok account, and Gemini account, all accounts have normal usage limits. But the response time is very, very slow!

    Version

    v2.7.36

    Operating system

    mac

    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.
  3. chessmiller commented on Jul 23, 2026

    @chessmiller
    Author

    Image这是我使用ocx restore命令后,在codex调用5.6 的速度

  4. lidge-jun commented on Jul 23, 2026

    @lidge-jun
    Owner

    Status update after a full source-level diagnosis of the v2.7.35 → v2.7.36 delta:

    What we verified

    Current state

    • npm latest has been reverted to v2.7.35 while the fixes bake, so npm i -g installs a known-good build today.
    • The state-loss and token-inflation fixes are merged on dev and will ship in the next release.

    Please retest after the next release (or on dev if convenient). If slow token cadence persists after first output with the fixes applied, that would point to a separate cause and we will reopen the trace with TTFT/chunk-timestamp instrumentation. Keeping this issue open until the fixed release is confirmed.

  5. lidge-jun commented on Jul 24, 2026

    @lidge-jun
    Owner

    Thanks for the report. As filed this isn't reproducible on our side — there are no logs, provider/model, or config attached, and tok/s < 5 can come from many places (the routed provider itself, a slow web-search/vision sidecar turn, or network), not necessarily the proxy.

    Since v2.7.36 (your version), dev landed substantial streaming/throughput work that directly affects perceived speed: pull-driven backpressure for routed SSE streams, bounded runTurn event backlog with a fixed fetch-to-reader abort race, and treating upstream keepalives as adapter activity. Separately, we just bounded the web-search sidecar deadline (200s → 60s) in #416, which was a common cause of a whole turn stalling.

    Closing as not-reproducible for now — please update to the latest release, retry, and if it's still slow, reopen with: the OpenCodex dashboard per-request timing for a slow turn, the provider + model, tok/s vs calling that provider directly, and whether web-search or the vision sidecar was active on that turn. That'll let us attribute the latency precisely.

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 working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions