Commit Graph

347 Commits

Author SHA1 Message Date
sm2642
794a5512f6 -Added moderation endpoint test (#56)
-Rearrange some code

Co-authored-by: Shalin <shalinmehta85@gmail.com>
2023-01-28 22:25:38 +04:00
sashabaranov
81b5788cd6 Update README.md 2023-01-12 12:02:07 +04:00
sashabaranov
cf013d3eb5 Remove default timeout and search API (#51)
* remove 1 minute timeout

* remove deprecated search api test

* remove search api
2023-01-07 00:22:39 +04:00
Andrew Poydence
2c55a49a34 Add Image generation API (#48) 2023-01-03 17:15:50 +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
James Καρεφυλάκης
fa5319e59a Remove deprecated code (#40) 2022-12-15 12:13:16 +04:00
zacherystuart
0f9f4aa343 Add Suffix to CompletionRequest for insert mode (#36)
Add "Suffix" to "CompletionRequest" to support the new insert mode.

Insert mode info: https://openai.com/blog/gpt-3-edit-insert/
New Completion Request API Reference: https://beta.openai.com/docs/api-reference/completions/create#completions/create-prompt
2022-12-02 14:54:56 +04:00
Matt Trefilek
3697bf4a97 Add new text-davinci-003 model to constants (#35) 2022-11-30 13:07:31 +04:00
Alexander Baranov
be08f204f0 Skip production API test by default 2022-08-11 15:41:37 +06: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
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
noona
51f94a6ab3 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
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
Alexander Baranov
277071e0f7 proper naming 2022-07-01 21:13:12 +06:00
Alexander Baranov
21410bda2c use only golangci-lint 2022-07-01 21:09:54 +06:00
Alexander Baranov
28c1997dfa fix actions 2022-07-01 21:05:28 +06:00
Alexander Baranov
7c22be5d3e enable github actions 2022-07-01 21:04:19 +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
Andy Day
260ef874de Update model names (#16) 2022-03-15 02:10:30 +04:00
Viacheslav Kovalevskyi
eecd212963 logit_bias field added to the completion request (#14) 2022-01-10 10:05:23 +03:00
Andy Day
7ff9fedf93 Init repo as go module (#13) 2021-12-15 22:24:34 +03:00
Andy Day
d6c1c1855d Add new Embeddings endpoint (#12) 2021-12-15 11:45:22 +03:00
Markus Erdmann
2c60423fd2 Add omitempty to optional fields in AnswerRequest struct (#11) 2021-10-01 14:17:12 +03:00
sauceman40
e6b0494d90 Add CreateCompletionWithFineTunedModel function (#10)
* add fine-tuned completion function

* add explanatory comment
2021-09-01 13:07:53 +03: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
Sveinn Óttar Lárusson
2be4a268a8 Adding Answer request AND adding best_of option to Completion. (#5)
* adding best of option

* adding answers option

* fixing small mistake
2021-06-06 21:32:12 +03:00
sashabaranov
c12d250ab8 Merge pull request #4 from hagemt/master 2021-06-04 19:38:48 +03:00
Tor Hagemann
8b3c0d0c52 api.go: add constructor variant for organizations 2021-06-03 14:24:15 -07:00
sashabaranov
64c0048394 Update README.md 2020-12-16 15:12:39 +03:00
sashabaranov
e859180cd9 Merge pull request #3 from bnwlkr/master
Replace Cyrillic 'C' in README
2020-11-23 20:31:14 +03:00
bnwlkr
8e657b396a Replace Cyrillic 'C' in README 2020-11-23 09:27:18 -08:00
sashabaranov
3a024c5a5c Merge pull request #2 from bnwlkr/master
Fix weird 'C' in CompletionResponse struct
2020-11-23 09:55:50 +03:00
bnwlkr
042eff08b4 Fix weird 'C' in CompletionResponse struct 2020-11-22 20:59:40 -08:00
sashabaranov
7ed6fe128b Add Go Report Card 2020-09-02 20:51:04 +03:00
Alexander Baranov
42cfe7bff6 Fix typo in docs 2020-09-02 20:46:11 +03:00
Alexander Baranov
c8e11921ef Add docs 2020-09-02 20:45:27 +03:00
sashabaranov
4fb04abbfe Merge pull request #1 from lucasjones/master
Add logprob support
2020-09-02 16:47:23 +03:00
lucasjones
5410948aed Add logprob support 2020-09-02 10:58:40 +01:00
sashabaranov
eb1cc604f2 Update README.md 2020-08-19 13:06:58 +03:00
sashabaranov
0b788a8ae1 Create README.md 2020-08-19 13:06:47 +03:00
Alexander Baranov
f5b3ec4ffe Add api client code 2020-08-19 12:57:32 +03:00
sashabaranov
d62f32901b Initial commit 2020-08-18 17:42:55 +03:00