You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is a feature request for the Node library and not the underlying OpenAI API.
This is a feature request for the Node library
Describe the feature or improvement you're requesting
The library is already able to retry failed requests, but only "Certain errors will be automatically retried 2 times by default, with a short exponential backoff. ". this sugests that all error types will be handled the same. For 429 the API actually returns a time in seconds when the request should be retried. It would be great if the library would respect this and only retry after the given time.
Additional context
429 Requests to the ChatCompletions_Create Operation under Azure OpenAI API version 2024-02-15-preview have exceeded token rate limit of your current OpenAI S0 pricing tier. Please retry after 33 seconds. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit.
The text was updated successfully, but these errors were encountered:
just searched the code, should've done it before opening the issue and it seems that in fact its respecting the retry-after header, as long as the time is not more than 60 seconds:
Confirm this is a feature request for the Node library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
The library is already able to retry failed requests, but only "Certain errors will be automatically retried 2 times by default, with a short exponential backoff. ". this sugests that all error types will be handled the same. For 429 the API actually returns a time in seconds when the request should be retried. It would be great if the library would respect this and only retry after the given time.
Additional context
429 Requests to the ChatCompletions_Create Operation under Azure OpenAI API version 2024-02-15-preview have exceeded token rate limit of your current OpenAI S0 pricing tier. Please retry after 33 seconds. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit.
The text was updated successfully, but these errors were encountered: