Skip to content

How to check errors returned by CreateChatCompletion was a network or rate limiting issues ? #207

Closed
@guoqiangqi

Description

@guoqiangqi

I am retring my request with the exponential backoff when encountering network or rate limiting issues. Currently, it seems that go-openai does not provide specific network errors for requests by client.CreateChatCompletion and other, openai python client do a good job by providing errors like openai.error.RateLimitError, openai.error.APIError, openai.error.Timeout, openai.error.APIConnectionError, openai.error.ServiceUnavailableError, how can i check errors returned by CreateChatCompletion was a network or rate limiting issues ?

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