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