beichideyuwan
7e76a682a9
Add 16k 0613 model ( #365 )
...
* add 16k_0613 model
* add 16k_0613 model
* add model:
2023-06-14 18:23:03 +04:00
Simon Klee
3f4e3bb0ca
models: add *-0613 models ( #361 )
...
Added GPT3Dot5Turbo0613, GPT3Dot5Turbo16K, GPT40613, and GPT432K0613
models from June update
(https://openai.com/blog/function-calling-and-other-api-updates )
Issue #360
2023-06-14 00:32:26 +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
d94c5e7edd
Test request builder + streams ( #242 )
...
* test request builder + streams
* provide prompt to test
2023-04-09 18:46:58 +04:00
NullpointerW
bee0656174
CompletionBatchingRequestSupport ( #220 )
...
* completionBatchingRequestSupport
* lint fix
* fix Run test fail
* fix TestClientReturnsRequestBuilderErrors fail
* fix Codecov check
* ignore TestClientReturnsRequestBuilderErrors lint
* fix lint again
* lint again*2
* replace checkPromptType implementation
* remove nil check
---------
Co-authored-by: W <825708370@qq.com >
2023-04-03 11:05:33 +04:00
Jo
2ebb265e71
refactor: Refactor endpoint and model compatibility check ( #180 )
...
* Add model check for chat stream
* Sync model checks
* Fix typo
* Fix functino
* refactor: Refactor endpoint and model compatibility check
* apply review suggestions
* minor fix
* invert return boolean flag
* fix test
2023-03-22 17:46:08 +04:00
sashabaranov
a6b35c3ab5
Check for Stream parameter usage ( #174 )
...
* check for stream:true usage
* lint
2023-03-18 19:31:54 +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
jooyyy.eth
98807ecba6
Feat: Add support for gpt-4 models ( #157 )
2023-03-15 11:43:08 +04:00
sashabaranov
522ae20999
Warn about GPT3.5-turbo models in regular completion ( #127 )
2023-03-06 12:55:21 +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
sashabaranov
c8261c5638
Add chat completions ( #90 )
2023-03-02 00:47:25 +04:00
sashabaranov
3695eb3ade
use int64 timestamps everywhere ( #59 )
2023-01-28 23:18:59 +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
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
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
Viacheslav Kovalevskyi
eecd212963
logit_bias field added to the completion request ( #14 )
2022-01-10 10:05:23 +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
3dfb5bd804
File upload endpoint ( #7 )
2021-08-03 18:51:23 +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
bnwlkr
042eff08b4
Fix weird 'C' in CompletionResponse struct
2020-11-22 20:59:40 -08: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
lucasjones
5410948aed
Add logprob support
2020-09-02 10:58:40 +01:00
Alexander Baranov
f5b3ec4ffe
Add api client code
2020-08-19 12:57:32 +03:00