Martin Heck
bb6149f64f
fix: repair json decoding of moderation response ( #670 )
2024-02-28 13:25:47 +04:00
Raphaël Oester
f220443985
Added fields for moderation ( #662 )
2024-02-26 12:48:09 +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
Munar
e22a29d84e
Check if the model param is valid for moderations endpoint ( #437 )
...
* chore: check for models before sending moderation requets to openai endpoint
* chore: table driven tests to include more model cases for moderations endpoint
2023-07-13 13:30:58 +09: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
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
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
刘丹冰
2f008f7054
fix:model param type, add moderation Model Name const. ( #270 )
...
* add ImageEditRequest.ResponseFormat
* add ImageEditRequest/ImageVariRequest.ResponseFormat
* complete image_test
* delete var prompt param
* fix:model param type, add moderation Model Name const.
* rename ModerationText001
---------
Co-authored-by: Aceld <liudanbing@tal.com >
2023-04-20 14:10:19 +01: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
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
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
nya~
8b463ceb2b
Update moderation.go ( #29 )
2022-08-03 11:41:36 +06:00
noona
1f716381cd
Added support for Edits endpoint & other minor changes ( #22 )
...
* Added support for Moderations API
* gofmt moderation.go
* support for edits endpoint & other improvements
2022-07-01 21:14:01 +06:00
noona
11649c54c2
rev: added a file to support moderations endpoint ( #21 )
...
* Added support for Moderations API
* gofmt moderation.go
2022-07-01 15:57:01 +06:00