Skip to content

Crashed with rate limit #334

Closed
Closed

Description

@ashish01

What version of Codex is running?

v0.1.2504172351

Which model were you using?

gpt-4.1

What platform is your computer?

Darwin 23.2.0 arm64 arm

What steps can reproduce the bug?

Crashed with

e [Error]: Rate limit reached for gpt-4.1 in organization ... on tokens per min (TPM): Limit 30000, Used 25890, Requested 4193. Please try again in 166ms. Visit https://platform.openai.com/account/rate-limits to learn more.

What is the expected behavior?

please don't crash

What do you see instead?

No response

Additional information

No response

Activity

  1. calvinlacock commented on Apr 18, 2025

    @calvinlacock

    Same - drives me insane - cant use it .. back to Claude until they work this out - cant keep paying for 1/2 baked code

  2. ajstair commented on Apr 18, 2025

    @ajstair

    Because Codex uses any regular OpenAI API key, rate limits that apply to keys in your org will also apply to Codex as it makes API requests. I'm assuming here, but it's very likely that your organization is subject to Tier 1 usage rate limits.

    Here are a few potential options:

    1. Immediate solution: increase the limits for your org (by buying more credits, reaching out to OpenAI support, etc.... but IMO Codex should work with Tier 1 limits out of the box)
    2. Throttle Codex's requests to respect Tier 1 rate limits (maybe a worthwhile temporary fix for UX, but slows it down for everyone)
    3. OpenAI handles requests originating from Codex differently (a special key with different rate limits, for example)
  3. r0wl commented on Apr 18, 2025

    @r0wl

    Same issue here. Have seen multiple closed issues stating that the issue has been resolved, but issue is persisting.

  4. pascudder commented on Apr 18, 2025

    @pascudder
  5. jonchurch commented on Apr 18, 2025

    @jonchurch
    Contributor

    dupe of #157

  6. marciosete commented on Apr 20, 2025

    @marciosete

    Seriously? My first experience of Codex was a Joke. First prompt, crash!

    [Error]: Rate limit reached for gpt-4.1 in organization org- on tokens per min (TPM): Limit 30000, Used 26988, Requested 5783. Please try again in 5.542s. Visit https://platform.openai.com/account/rate-limits to learn more.

  7. Yamilquery commented on Apr 21, 2025

    @Yamilquery

    @ashish01 @calvinlacock @r0wl I have a fix working for me here: https://github.com/pascudder/codex

    What did you change? It works amazingly!

  8. wbraswell commented on Apr 22, 2025

    @wbraswell
  9. tibo-openai commented on Apr 22, 2025

    @tibo-openai
    Collaborator

    Should be fixed in latest release, please install 0.1.2504221401 and re-open if this is still an issue you encounter.

  10. Yamilquery commented on Apr 22, 2025

    @Yamilquery

    Should be fixed in latest release, please install 0.1.2504221401 and re-open if this is still an issue you encounter.

    Excellent, great news. Thank you, @tibo-openai.

    I confirmed, it's working now.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions