Commit Graph
4 Commits
Author SHA1 Message Date
Liu Shuang 0bd14f9584 refactor: ChatCompletionStreamChoice.FinishReason from string to FinishReason (#372) 2023-06-15 13:58:26 +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
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