Skip to content

should handle hitting rate limits #156

@wasaga

Description

@wasaga

What happened?

Error during streamed response: APIError: Rate limit reached for o3-deep-research in organization org-REDACTED on tokens per min (TPM): Limit 450000, Used 379102, Requested 89741. Please try again in 2.512s. Visit https://platform.openai.com/account/rate-limits to learn more.
    at Stream.iterator (file:///app/.output/server/node_modules/openai/streaming.mjs:57:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.start (file:///app/.output/server/chunks/_/ssr.mjs:2401:26) {
  status: undefined,
  headers: undefined,
  request_id: undefined,
  error: {
    type: 'tokens',
    code: 'rate_limit_exceeded',
    message: 'Rate limit reached for o3-deep-research in organization org-REDACTED on tokens per min (TPM): Limit 450000, Used 379102, Requested 89741. Please try again in 2.512s. Visit https://platform.openai.com/account/rate-limits to learn more.',
    param: null
  },
  code: 'rate_limit_exceeded',
  param: null,
  type: 'tokens'
}

that would break the UI with no option to proceed

Image

What did you expect to happen?

There should be a way for the request to be completed in full.

How did it happen?

  1. Run deep researcher with o3-deep-researcher model and web search

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions