Open feapaydin opened 4 months ago
Currently we're leaving the API error raising to Faraday. That is not ideal since it's not possible to spot which Rubygpt call causes the issue.
Rubygpt must have it's own error handling.
Faraday::Error
Faraday::ClientError
Rubygpt::Error
Related: Raise an Rubygpt::NotConfiguredError when Rubygpt.chat.create is called before configuration.
Rubygpt::NotConfiguredError
Rubygpt.chat.create
Currently we're leaving the API error raising to Faraday. That is not ideal since it's not possible to spot which Rubygpt call causes the issue.
Rubygpt must have it's own error handling.
Implementation Plan
Faraday::Error
(with it's child classes likeFaraday::ClientError
) in connection objectsRubygpt::Error
instances with more spot-on details