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
rex posadas
479dab3b69
fixed typo ( #196 )
2023-03-23 23:18:11 +04:00
Élison Gomes
dbb7829a9f
fix: added defer to close audio file ( #195 )
...
Co-authored-by: Élison Gomes <elisongomes@users.noreply.github.com >
2023-03-23 23:17:35 +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
kotaro.yamazaki
428839400a
Update README.md to rename the image file created to example.png ( #192 )
2023-03-22 16:04:09 +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
itegel
aa149c1bf8
add optional params for audio api, e.g. prompt ( #183 )
...
* Compatible with the situation where the mask is empty in CreateEditImage.
* Fix the test for the unnecessary removal of the mask.png file.
* add image variation implementation
* fix image variation bugs
* fix ci-lint problem with max line character limit
* add offitial doc link
* just for codeball test
* fix lint problem
* add optional params for audio api, e.g. prompt
* add comment for new args in translation
2023-03-20 14:02:19 +04:00
Ryuichi Maeda
d529d13ba1
Add readme example of ChatGPT streaming completion ( #177 )
2023-03-19 18:01:51 +04:00
sashabaranov
a6b35c3ab5
Check for Stream parameter usage ( #174 )
...
* check for stream:true usage
* lint
2023-03-18 19:31:54 +04:00
Felix Yan
34f3a118df
Correct typos in api_test.go ( #172 )
2023-03-17 22:58:34 +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
Qihang Hu
fd44d3665e
add readme exmaple: chatgpt support context ( #166 )
2023-03-16 10:46:18 +04:00
Constantine A
3c8be76770
Added an example of image generation using DALL-E ( #168 )
...
* add "name" property for ChatCompletionMessage
* added a comment to the "Name" property
* Added an example of image generation using DALL-E
---------
Co-authored-by: Contantine A <avdeev@embria.com >
2023-03-16 10:44:31 +04:00
sashabaranov
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
jooyyy.eth
98807ecba6
Feat: Add support for gpt-4 models ( #157 )
2023-03-15 11:43:08 +04:00
itegel
1a123fe221
Add image variation implementation and fix #149 ( #153 )
...
* Compatible with the situation where the mask is empty in CreateEditImage.
* Fix the test for the unnecessary removal of the mask.png file.
* add image variation implementation
* fix image variation bugs
* fix ci-lint problem with max line character limit
* add offitial doc link
2023-03-15 10:46:03 +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
itegel
00eac3cb02
fix issue #149 ( #150 )
...
* Compatible with the situation where the mask is empty in CreateEditImage.
* Fix the test for the unnecessary removal of the mask.png file.
* add image variation implementation
2023-03-13 15:39:29 +04:00
Qihang Hu
6580bd7289
readme example print error ( #147 )
2023-03-11 11:32:39 +04:00
sashabaranov
9428f6cc3d
add more tests ( #140 )
...
* test models endpoint
* simplify
* add fine tune tests
2023-03-09 23:56:23 +04:00
jooyyy.eth
11052c6106
udpate some type to optimize usage ( #139 )
2023-03-09 18:53:50 +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
Matt Trefilek
c380d5031b
Implement the fine-tunes API ( #130 )
...
- Add FineTune Structs and Requests
- Add CRUD Methods
2023-03-08 14:09:08 +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
Constantine A
c5fe8742cc
add "name" property for ChatCompletionMessage ( #123 )
2023-03-06 10:52:56 +04:00
Afeyer
71f9f15e9e
Correction of incorrect function names in comments ( #125 )
2023-03-06 10:51:20 +04:00
sashabaranov
ba6fd510c9
Update README.md
2023-03-05 10:56:28 +04:00
Hoani Bryson
ee9424e6b9
Add speech to text example in docs ( #124 )
2023-03-05 10:49:49 +04:00
sashabaranov
8be4dfe746
Update README.md
2023-03-04 20:59:37 +04:00
Alexander Baranov
d0294641ce
bump go.mod to Go 1.18
2023-03-04 15:29:59 +04:00
Alexander Baranov
9eea94730a
rename internally
2023-03-04 15:29:42 +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
Hoani Bryson
0d3e887246
Add whisper 1 support ( #117 )
...
* Add whisper 1 support
* Resolve linting issues for audio source files
2023-03-04 14:54:48 +04:00
bestgopher
d668221b9c
fix json tag ( #116 )
...
* remove pointer
* fix(models): change created_at to created
2023-03-04 14:51:59 +04:00