渡邉祐一 / 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
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
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
Alexander Baranov
c8e11921ef
Add docs
2020-09-02 20:45:27 +03:00
Alexander Baranov
f5b3ec4ffe
Add api client code
2020-08-19 12:57:32 +03:00