Rate limit crash the app

Resolved 💬 1 comment Opened Apr 18, 2025 by janisz Closed Apr 18, 2025

What version of Codex is running?

│ ● OpenAI Codex (research preview) v0.1.2504172351 │

Which model were you using?

o4-mini

What platform is your computer?

Linux

What steps can reproduce the bug?

Run command with --full-auto

What is the expected behavior?

Wait given number of seconds to restart rate limit.

What do you see instead?

e [Error]: Rate limit reached for o4-mini in organization org- on tokens per min (TPM): Limit 200000, Used 158404, Requested 48556. Please try again in 2.088s. Visit https://platform.openai.com/account/rate-limits to learn more.
    at e.a [as iterator] (file:///usr/lib/node_modules/@openai/codex/dist/cli.js:449:1514)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async T0.run (file:///usr/lib/node_modules/@openai/codex/dist/cli.js:466:2933) {
  status: undefined,
  headers: undefined,
  request_id: undefined,
  error: {
    type: 'tokens',
    code: 'rate_limit_exceeded',
    message: 'Rate limit reached for o4-mini in organization org- on tokens per min (TPM): Limit 200000, Used 158404, Requested 48556. Please try again in 2.088s. Visit https://platform.openai.com/account/rate-limits to learn more.',
    param: null
  },
  code: 'rate_limit_exceeded',
  param: null,
  type: 'tokens'
}

Node.js v22.14.0

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗