sashabaranov
eb68a72bcc
simplify unmarshal ( #191 )
...
* simplify unmarshal
* simplify unmarshalError
* rename errorAccumulate -> defaultErrorAccumulator
* update converage
2023-03-22 09:56:05 +04:00
sashabaranov
a6b35c3ab5
Check for Stream parameter usage ( #174 )
...
* check for stream:true usage
* lint
2023-03-18 19:31:54 +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 and aeieli
abffeceb71
Check for GPT-4 models ( #169 )
...
* add chat gpt4 model support (#158 )
* remove check for gpt4 for CreateCompletion
* test for model check
---------
Co-authored-by: aeieli <aeliieli@gmail.com >
2023-03-16 10:43:41 +04:00
sashabaranov
c34bc77f1a
Add testable request builder ( #162 )
...
* Add testable request builder
* improve tests
2023-03-15 13:16:33 +04:00
sashabaranov
53d195cf5a
add testable json marshaller ( #161 )
2023-03-15 12:16:47 +04:00
sashabaranov
ba77a6476e
Update README.md ( #160 )
2023-03-15 11:47:36 +04:00
sashabaranov
ec4aeedd76
Delete codeball.yml ( #159 )
2023-03-15 11:44:28 +04:00
sashabaranov
f4a6a99d06
Create .github/workflows/codeball.yml ( #156 )
2023-03-15 01:02:30 +04:00
sashabaranov
97db82ee4c
Update pr.yml ( #155 )
2023-03-14 23:15:35 +04:00
sashabaranov
25eecf41f4
Update pr.yml
2023-03-14 23:10:09 +04:00
sashabaranov
d911278514
Revert "fix issue #149 ( #150 )" ( #151 )
...
This reverts commit 00eac3cb02 .
2023-03-13 15:42:51 +04:00
sashabaranov
9428f6cc3d
add more tests ( #140 )
...
* test models endpoint
* simplify
* add fine tune tests
2023-03-09 23:56:23 +04:00
sashabaranov
34e1e10b5f
add chatgpt logic tests ( #135 )
...
* add chatgpt logic tests
* lint
2023-03-08 19:50:41 +04:00
sashabaranov
14e1943c20
add code coverage github action ( #134 )
2023-03-08 19:14:34 +04:00
sashabaranov
c46ebb2f08
use float32 in embeddings ( #133 )
2023-03-08 14:08:08 +04:00
sashabaranov
522ae20999
Warn about GPT3.5-turbo models in regular completion ( #127 )
2023-03-06 12:55:21 +04:00
sashabaranov
ba6fd510c9
Update README.md
2023-03-05 10:56:28 +04:00
sashabaranov
8be4dfe746
Update README.md
2023-03-04 20:59:37 +04:00
sashabaranov
d59ab48c58
Update README.md
2023-03-04 15:23:39 +04:00
sashabaranov
114a7d14b2
Update README.md
2023-03-04 15:22:48 +04:00
sashabaranov
90bb5e47e8
Update README.md
2023-03-04 15:21:16 +04:00
sashabaranov
f89133c6e0
Update README.md
2023-03-04 15:19:54 +04:00
sashabaranov
656f6b174c
Update README.md
2023-03-04 15:19:19 +04:00
sashabaranov
47887bf123
Rename and update docs ( #120 )
2023-03-04 15:18:43 +04:00
sashabaranov
202b629bc1
Update README.md
2023-03-04 14:57:43 +04:00
sashabaranov
4e1be7d99f
remove deprecated answers API ( #108 )
2023-03-03 11:07:40 +04:00
sashabaranov
b0b26afd50
Update README.md
2023-03-02 00:56:50 +04:00
sashabaranov
f5fc232415
Update README.md
2023-03-02 00:53:48 +04:00
sashabaranov
c8261c5638
Add chat completions ( #90 )
2023-03-02 00:47:25 +04:00
sashabaranov
ae05ed976f
handle stream completion ( #86 )
...
* handle stream completion
* fix tests
2023-02-22 12:33:25 +04:00
sashabaranov and Michael Fox
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
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
ae06df7d9f
Update README.md
2023-02-07 20:43:39 +04:00
sashabaranov and e. alvarez
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
sashabaranov
3695eb3ade
use int64 timestamps everywhere ( #59 )
2023-01-28 23:18:59 +04:00
sashabaranov
b6e0908977
Run tests on PR ( #57 )
...
* run tests on PR
* fix tests+lint
* update linter config
2023-01-28 22:32:23 +04:00
sashabaranov
81b5788cd6
Update README.md
2023-01-12 12:02:07 +04:00
sashabaranov
cf013d3eb5
Remove default timeout and search API ( #51 )
...
* remove 1 minute timeout
* remove deprecated search api test
* remove search api
2023-01-07 00:22:39 +04:00
sashabaranov
c12d250ab8
Merge pull request #4 from hagemt/master
2021-06-04 19:38:48 +03:00
sashabaranov
64c0048394
Update README.md
2020-12-16 15:12:39 +03:00
sashabaranov
e859180cd9
Merge pull request #3 from bnwlkr/master
...
Replace Cyrillic 'C' in README
2020-11-23 20:31:14 +03:00
sashabaranov
3a024c5a5c
Merge pull request #2 from bnwlkr/master
...
Fix weird 'C' in CompletionResponse struct
2020-11-23 09:55:50 +03:00
sashabaranov
7ed6fe128b
Add Go Report Card
2020-09-02 20:51:04 +03:00
sashabaranov
4fb04abbfe
Merge pull request #1 from lucasjones/master
...
Add logprob support
2020-09-02 16:47:23 +03:00
sashabaranov
eb1cc604f2
Update README.md
2020-08-19 13:06:58 +03:00
sashabaranov
0b788a8ae1
Create README.md
2020-08-19 13:06:47 +03:00
sashabaranov
d62f32901b
Initial commit
2020-08-18 17:42:55 +03:00