Skip to content

Make request/response info available in OpenAIException when available #690

@stargazer33

Description

@stargazer33

In case an exception is thrown I want to write in my log file as much as possible, to debug it later: including HTTP response headers!

It is great that .headers() are available in OpenAIServiceException.
Good.

Now make .headers() available in OpenAIInvalidDataException, OpenAIIoException, OpenAIException.

HTTP response headers are extremely important!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions