eiixy and GitHub
f995e58adf
fix: fullURL endpoint generation ( #817 )
2024-08-16 18:11:38 +01:00
Simone Vellei and GitHub
d9b13d824f
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
Liu Shuang and GitHub
c95dbb3446
Implement OpenAI July 2023 Updates ( #427 )
...
* Implement OpenAI July 2023 Updates
* fix: golangci-lint
* add comment
* fix: remove some model Deprecated
2023-07-09 12:09:50 +03:00
渡邉祐一 / Yuichi Watanabe and GitHub
ab2e98f1ed
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 and GitHub
50178dc67e
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 and GitHub
6f9196510a
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
sashabaranov and GitHub
47d56ec0ad
Add testable request builder ( #162 )
...
* Add testable request builder
* improve tests
2023-03-15 13:16:33 +04:00
sashabaranov and GitHub
7cf5576ef1
add testable json marshaller ( #161 )
2023-03-15 12:16:47 +04:00
Alexander Baranov
e4419d4a54
rename internally
2023-03-04 15:29:42 +04:00
bestgopher and GitHub
5036ccb43e
refactor: use http.NewRequestWithContext instead of http.NewRequest ( #97 )
2023-03-02 10:27:09 +04:00
sashabaranov and GitHub
0f72a2f717
use int64 timestamps everywhere ( #59 )
2023-01-28 23:18:59 +04:00
Oleg and GitHub
1d69b67c0e
Add OpenAI Mock Server ( #31 )
...
* add constants for completions, refactor usage, add test server
Signed-off-by: Oleg <[email protected] >
* append v1 endpoint to test
Signed-off-by: Oleg <[email protected] >
* add makefile for easy targets
Signed-off-by: Oleg <[email protected] >
* lint files & add linter
Signed-off-by: Oleg <[email protected] >
* disable real API tests in short mode
Signed-off-by: Oleg <[email protected] >
Signed-off-by: Oleg <[email protected] >
2022-08-11 15:29:23 +06:00
noona and GitHub
694813e320
rev-1: Added some fixes & improvements ( #26 )
...
* Added support for Moderations API
* gofmt moderation.go
* support for edits endpoint & other improvements
* fix: Choice redeclared in this block
* Added more parameters for the Search endpoint. (#3 )
2022-07-03 23:51:02 +06:00
noona and GitHub
9c8bd3eaba
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