渡邉祐一 / 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
1394329e44
move error_accumulator into internal pkg ( #304 ) ( #335 )
...
* move error_accumulator into internal pkg (#304 )
* move error_accumulator into internal pkg (#304 )
* add a test for ErrTooManyEmptyStreamMessages in stream_reader (#304 )
2023-06-05 18:35:46 +04:00
Liu Shuang
d6ab1b3a4f
fix: chat stream resp error ( #259 )
2023-04-19 13:05:00 +01:00
rex posadas
8e3a04664e
Refactor/internal testing ( #194 )
...
* added NoError check
* corrected NoError
* has error checks
* replace more checks
* Used checks test helper
* Used checks test helper
* remove duplicate import
* fixed lint issues regarding length of messages
---------
Co-authored-by: Rex Posadas <rposadas@redwoodlogistics.com >
2023-03-24 21:55:25 +04:00
Jo
2ebb265e71
refactor: Refactor endpoint and model compatibility check ( #180 )
...
* Add model check for chat stream
* Sync model checks
* Fix typo
* Fix functino
* refactor: Refactor endpoint and model compatibility check
* apply review suggestions
* minor fix
* invert return boolean flag
* fix test
2023-03-22 17:46:08 +04:00
Liu Shuang
a5a945ad14
fix: stream return EOF when openai return error ( #184 )
...
* fix: stream return EOF when openai return error
* perf: add error accumulator
* fix: golangci-lint
* fix: unmarshal error possibly null
* fix: error accumulator
* test: error accumulator use interface and add test code
* test: error accumulator add test code
* refactor: use stream reader to re-use stream code
* refactor: stream reader use generics
2023-03-22 09:32:47 +04:00
sashabaranov
a8acb5f63b
Add tests ( #171 )
...
* test models listing
* remove non-needed method
* test for .streamFinished
* add more error tests
* improve stream testing
* fix typo
2023-03-16 19:10:27 +04:00
sashabaranov
34e1e10b5f
add chatgpt logic tests ( #135 )
...
* add chatgpt logic tests
* lint
2023-03-08 19:50:41 +04:00