渡邉祐一 / 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
渡邉祐一 / Yuichi Watanabe
62eb4beed2
move marshaller and unmarshaler into internal pkg ( #304 ) ( #325 )
2023-05-28 05:51:07 +04:00
sashabaranov
eb68a72bcc
simplify unmarshal ( #191 )
...
* simplify unmarshal
* simplify unmarshalError
* rename errorAccumulate -> defaultErrorAccumulator
* update converage
2023-03-22 09:56:05 +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