Skip to content

Does this library distinguish 429 - Too many requests from 429 - Too many tokens? [question] #168

@mepc36

Description

@mepc36

Describe the bug

Sorry, not a bug - just a question!

The OpenAI docs stipulate that they enforce rate limits in 2 ways: by request, and by
-- source here

I'm wondering if this library distinguishes by the two. I don't think it does, because here is an error log I ahve for the 429:

stackError: Request failed with status code 429
    at createError (/usr/src/app/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/usr/src/app/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/axios/lib/adapters/http.js:322:11)
    at IncomingMessage.emit (events.js:412:35)
    at IncomingMessage.emit (domain.js:475:12)
    at endReadableNT (internal/streams/readable.js:1333:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)message[Request failed with status code 429](javascript:void(0);)

Upon confirmation from a maintainer that it doesn't, I will open a feature request requesting this differentiation. Thank you!

P.S. I'd request a 3rd option for issue submission, a new Question one, in addition to the current Bug and Feature request options.

To Reproduce

N/A

Code snippets

N/A

OS

mac Ventura (13.0.1)

Node version

16.16

Library version

3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestopenai apiRelated to underlying OpenAI APIquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions