Jackson Stone
5c7d88212f
Allow embeddings requests to be tokens or strings ( #417 )
...
* Allow raw tokens to be used as embedding input
* fix linting issues (lines too long)
* add endpoint test for embedding from tokens
* remove redundant comments
* fix comment to match new param name
* change interface to any
* Rename methods and implement convert for base req
* add comments to CreateEmbeddings
* update tests
* shorten line length
* rename parameter
2023-07-06 00:53:53 +03: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
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
sashabaranov
c46ebb2f08
use float32 in embeddings ( #133 )
2023-03-08 14:08:08 +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
Matt Trefilek
1c20931ead
Fix for Ada Model Name ( #45 )
...
* Fix for Ada Model Name
* Refactoring ADA embeddings naming
2022-12-16 13:56:10 +04:00
Matt Trefilek
9ada7ea8e1
New Ada Similarity ( #44 )
2022-12-16 00:54:42 +04:00
Matt Trefilek
23925ad36e
Add Token Usage to Embeddings ( #43 )
2022-12-15 22:15:28 +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
Oleg
53212c71df
Migrate From Old Completions + Embedding Endpoint ( #28 )
...
* migrate away from deprecated OpenAI endpoints
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
* test embedding correctness
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com >
2022-08-02 14:16:54 +06:00
Andy Day
260ef874de
Update model names ( #16 )
2022-03-15 02:10:30 +04:00
Andy Day
d6c1c1855d
Add new Embeddings endpoint ( #12 )
2021-12-15 11:45:22 +03:00