渡邉祐一 / Yuichi Watanabe
a243e7331f
Support Retrieve file content API ( #347 ) ( #348 )
...
* Support Retrieve file content API (#347 )
* add timeout test for GetFileContent (#347 )
2023-06-11 12:49:57 +04:00
渡邉祐一 / 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
渡邉祐一 / Yuichi Watanabe
6830e00406
Support Retrieve model API ( #340 ) ( #341 )
...
* Support Retrieve model API (#340 )
* Test for GetModel error cases. (#340 )
* Reduce the cognitive complexity of TestClientReturnsRequestBuilderErrors (#340 )
2023-06-05 18:37:08 +04:00
渡邉祐一 / Yuichi Watanabe
61ba5f3369
move request_builder into internal pkg ( #304 ) ( #329 )
...
* move request_builder into internal pkg (#304 )
* add some test for internal.RequestBuilder
* add a test for openai.GetEngine
2023-05-31 12:01:42 +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
sashabaranov
af9ff51077
fix expected error message ( #289 )
2023-05-01 02:41:40 +04:00
xuanming.zhang
67aef196d2
Fix OpenAI or Azure returns an undefined error message return ( #283 )
...
* Fix OpenAI or Azure returns an undefined error message return
* Fix: OpenAI or Azure returns an undefined error message return
#280
* Fix: OpenAI or Azure returns an undefined error message return
#280
* Fix: OpenAI or Azure returns an undefined error message return
#280
Handle long line
* Fix: OpenAI or Azure returns an undefined error message return
#280
Add unit test ErrorResponse nil pointer check
* Fix: OpenAI or Azure returns an undefined error message return
#280
Add unit test ErrorResponse nil pointer check
---------
Co-authored-by: zhangxm <xuanming_zhang@qingsongchou.com >
2023-05-01 01:21:15 +04:00
Hoani Bryson
ecdea45b67
Adds support for audio captioning with Whisper ( #267 )
...
* Add speech to text example in docs
* Add caption formats for audio transcription
* Add caption example to README
* Address sanity check errors
* Add tests for decodeResponse
* Use typechecker for audio response format
* Decoding response refactors
2023-04-20 14:07:04 +01:00
sashabaranov
9a1ecf5f4a
Add more tests ( #241 )
...
* add form builder tests
* lint
* add client tests
* lint
* add non-existent file test
2023-04-09 18:36:15 +04:00