Donnie Flood
71848ccf69
feat: support direct bytes for file upload ( #568 )
...
* feat: support direct bytes for file upload
* add test for errors
* add coverage
2023-11-15 20:08:48 +04:00
Simone Vellei
8e165dc9aa
Feat Add headers to openai responses ( #506 )
...
* feat: add headers to http response
* chore: add test
* fix: rename to httpHeader
2023-10-09 19:41:54 +04:00
NullpointerW
3589837b22
Update OpenAPI file return struct ( #486 )
...
* 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
* update file return struct
---------
Co-authored-by: W <825708370@qq.com >
2023-09-07 14:52:47 +04:00
渡邉祐一 / Yuichi Watanabe
f1b66967a4
refactor: refactoring http request creation and sending ( #395 )
...
* refactoring http request creation and sending
* fix lint error
* increase the test coverage of client.go
* refactor: Change the style of HTTPRequestBuilder.Build func to one-argument-per-line.
2023-06-22 13:57:52 +04:00
渡邉祐一 / Yuichi Watanabe
a243e7331f
Support Retrieve file content API ( #347 ) ( #348 )
...
* Support Retrieve file content API (#347 )
* add timeout test for GetFileContent (#347 )
2023-06-11 12:49:57 +04:00
渡邉祐一 / Yuichi Watanabe
61ba5f3369
move request_builder into internal pkg ( #304 ) ( #329 )
...
* move request_builder into internal pkg (#304 )
* add some test for internal.RequestBuilder
* add a test for openai.GetEngine
2023-05-31 12:01:42 +04:00
JoyShi
21eef5bc8d
Move form_builder into internal pkg. ( #311 )
...
* Move form_uilder into internal pkg.
* Fix import of audio.go
* Reorganize.
* Fix import.
* Fix
---------
Co-authored-by: JoyShi <joy.shi@sap.com >
2023-05-16 13:38:09 -07:00
sashabaranov
33ca1dac95
Add files api tests ( #238 )
...
* drop support for downloading files
* use form builder to submit files
* update doc
* add form builder tests
2023-04-08 20:13:59 +04:00
sashabaranov
c34bc77f1a
Add testable request builder ( #162 )
...
* Add testable request builder
* improve tests
2023-03-15 13:16:33 +04:00
Alexander Baranov
9eea94730a
rename internally
2023-03-04 15:29:42 +04:00
bestgopher
58d99eb220
refactor: use http.NewRequestWithContext instead of http.NewRequest ( #97 )
2023-03-02 10:27:09 +04:00
Rascal0814
5191ea6f55
Modify the test module, add the file upload test, and add the image edit api ( #63 )
...
* Modify the test module, add the file upload test, and add the image editing api
* fix golangci-lint
* fix golangci-lint
* Static file deletion, file directory name modification
* fix
* test-server-related logic encapsulated in a single tidy
struct
---------
Co-authored-by: julian_huang <julian.huang@yuansuan.com >
2023-02-11 22:51:53 +04:00
sashabaranov
3695eb3ade
use int64 timestamps everywhere ( #59 )
2023-01-28 23:18:59 +04:00
Oleg
d63df93c65
Add OpenAI Mock Server ( #31 )
...
* add constants for completions, refactor usage, add test server
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
* append v1 endpoint to test
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
* add makefile for easy targets
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
* lint files & add linter
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
* disable real API tests in short mode
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
2022-08-11 15:29:23 +06:00
blfletcher
7c56bd3034
Added delete endpoint ( #8 )
...
* Added a files endpoint, corrected a documents bug in answers requests, added error messages to API error handling
* Added file upload endpoint
* Added DeleteFile endpoint
Co-authored-by: eyelevelai <33876565+eyelevelai@users.noreply.github.com >
2021-08-05 10:59:34 +03:00
blfletcher
3dfb5bd804
File upload endpoint ( #7 )
2021-08-03 18:51:23 +03:00
blfletcher
6297de371c
Added a files endpoint, corrected a documents bug in answers requests, added error messages to API error handling ( #6 )
...
Co-authored-by: eyelevelai <33876565+eyelevelai@users.noreply.github.com >
2021-07-18 23:32:20 +03:00