genglixia
d10f1b8199
add chatcompletion stream delta refusal and logprobs ( #882 )
...
* add chatcompletion stream refusal and logprobs
* fix slice to struct
* add integration test
* fix lint
* fix lint
* fix: the object should be pointer
---------
Co-authored-by: genglixia <genglixia@enjoypartytime.com >
2024-10-29 07:22:52 +00:00
Ivan Timofeev
9add1c3486
add max_completions_tokens for o1 series models ( #857 )
...
* add max_completions_tokens for o1 series models
* add validation for o1 series models validataion + beta limitations
2024-09-20 21:40:24 +01:00
Liu Shuang
6af32202d1
feat: support stream_options ( #736 )
...
* feat: support stream_options
* fix lint
* fix lint
2024-05-07 16:42:24 +04:00
往日。
2d58f8f4b8
chore: add SystemFingerprint for chat completion stream response ( #716 )
...
* chore: add SystemFingerprint for stream response
* chore: add test
* lint: format for test
2024-04-24 16:02:03 +04:00
Simon Klee
0664105387
lint: fix linter warnings reported by golangci-lint ( #522 )
...
- Fix #519
2023-11-07 13:23:06 +04:00
Liu Shuang
b77d01edca
Support get http header and x-ratelimit-* headers ( #507 )
...
* feat: add headers to http response
* feat: support rate limit headers
* fix: go lint
* fix: test coverage
* refactor streamReader
* refactor streamReader
* refactor: NewRateLimitHeaders to newRateLimitHeaders
* refactor: RateLimitHeaders Resets filed
* refactor: move RateLimitHeaders struct
2023-10-10 19:29:41 +04:00
Liu Shuang
e948150829
fix: chat stream returns an error response with a 'data: ' prefix ( #396 )
...
* fix: chat stream resp has 'data: ' prefix
* fix: lint error
* fix: lint error
* fix: lint error
2023-06-20 19:39:19 +04:00
渡邉祐一 / Yuichi Watanabe
b616090e69
refactoring tests with mock servers ( #30 ) ( #356 )
2023-06-12 17:40:26 +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
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