GargantuaX
be253c2d63
change azure engine config to modelMapper ( #306 )
...
* change azure engine config to azure modelMapper config
* Update go.mod
* Revert "Update go.mod"
This reverts commit 78d14c58f2a9ce668da43f6adbe20b60afcfe0d7.
* lint fix
* add test
* lint fix
* lint fix
* lint fix
* opt
* opt
* opt
* opt
2023-05-11 01:30:24 +04:00
Liu Shuang
d6ab1b3a4f
fix: chat stream resp error ( #259 )
2023-04-19 13:05:00 +01:00
NullpointerW
bee0656174
CompletionBatchingRequestSupport ( #220 )
...
* completionBatchingRequestSupport
* lint fix
* fix Run test fail
* fix TestClientReturnsRequestBuilderErrors fail
* fix Codecov check
* ignore TestClientReturnsRequestBuilderErrors lint
* fix lint again
* lint again*2
* replace checkPromptType implementation
* remove nil check
---------
Co-authored-by: W <825708370@qq.com >
2023-04-03 11:05:33 +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
Alexander Baranov
9eea94730a
rename internally
2023-03-04 15:29:42 +04:00
Afeyer
39ca4e9488
Implement chat completion streaming ( #101 )
...
* Implement chat completion streaming
* Optimize the implementation of chat completion stream
* Fix linter error
2023-03-03 09:52:02 +04:00
bestgopher
58d99eb220
refactor: use http.NewRequestWithContext instead of http.NewRequest ( #97 )
2023-03-02 10:27:09 +04:00
sashabaranov
ae05ed976f
handle stream completion ( #86 )
...
* handle stream completion
* fix tests
2023-02-22 12:33:25 +04:00
sashabaranov
1eb5d625f8
Better configuration ( #79 )
...
* Configurable Transport (#75 )
* new functions to allow HTTPClient configuration
* updated go.mod for testing from remote
* updated go.mod for remote testing
* revert go.mod replace directives
* Fixed NewOrgClientWithTransport comment
* Make client fully configurable
* make empty messages limit configurable #70 #71
* make auth token private in config
* add docs
* lint
---------
Co-authored-by: Michael Fox <m.will.fox@gmail.com >
2023-02-21 00:16:44 +04:00
Frank Yang
133d2c9184
fix dead loop while network error ( #77 )
2023-02-18 13:13:23 +04:00
sashabaranov
67a43e6392
bump empty messages limit ( #72 )
2023-02-14 21:26:33 +04:00
sashabaranov
8fd81bc29a
Break infinite loops in case [DONE] is missing ( #67 )
...
* Break infinite loops in case [DONE] is missing
* lint
2023-02-12 16:21:43 +04:00
sashabaranov
6758ec4d96
Streaming support ( #61 )
...
* Add streaming support feature (#54 )
* Add streaming support feature
removes golangci linting deprecation warnings
See: [Issue #49 ](https://github.com/sashabaranov/go-gpt3/issues/49 )
* remove dead token
* Remove the goroutines from previous implementation
Set up separate test and file for streaming support
Add client code under cmd dir
* Supress CI errors
Need to update import path to test under feature/streaming-support
branch
* suppress linting errors
---------
Co-authored-by: sashabaranov <677093+sashabaranov@users.noreply.github.com >
* remove main.go
* remove code duplication
* use int64
* finalize streaming support
* lint
* fix tests
---------
Co-authored-by: e. alvarez <55966724+ealvar3z@users.noreply.github.com >
2023-02-07 20:42:53 +04:00