Commit Graph

8 Commits

Author SHA1 Message Date
渡邉祐一 / Yuichi Watanabe
06b16a7281 fix json marshaling error response of azure openai (#343) (#345)
* fix json marshaling error response of azure openai (#343)

* add a test case for handleErrorResp func (#343)
2023-06-08 19:32:03 +04:00
Quest Henkart
a24581dce2 maintain underlying error structs to allow for type conversion (#293)
* maintain underlying error structs to allow for type conversion and
defensive error checking

* allow Error.Is for Azure responses

* update readme, add tests to ensure type conversion

* fix whitespacing

* read me

* add import to readme example
2023-05-03 22:48:59 +04:00
Liu Shuang
cacd976a0c feat: RequestError print status code (#285) 2023-05-01 01:18:43 +04:00
Liu Shuang
d6ab1b3a4f fix: chat stream resp error (#259) 2023-04-19 13:05:00 +01:00
Stephen Young
061c97ef7e Implement Unmarshaller interface. Resolves #244 (#248) 2023-04-14 20:09:40 +02:00
Alexander Baranov
9eea94730a rename internally 2023-03-04 15:29:42 +04:00
Marc Haisenko
ee3df71880 Improve error reporting (#68)
* Provide APIError and use Go's error wrapping

* Add generic request error

* Fix code formatting
2023-02-13 20:43:06 +04:00
blfletcher
6297de371c Added a files endpoint, corrected a documents bug in answers requests, added error messages to API error handling (#6)
Co-authored-by: eyelevelai <33876565+eyelevelai@users.noreply.github.com>
2021-07-18 23:32:20 +03:00