Skip to content

Commit

Permalink
[openai] Add definition for openai v4 (#4536)
Browse files Browse the repository at this point in the history
* [openai] Add definition for openai@4.11.1

* Remove comment

* Fix: include all category names

* Use preferred syntax rather than Object

* Include  in BlobLikePart union

* Remove strange overrides from APIPromise declaration

* AbstractPage extends

* Remove commented string object from model type unions

* APIPromise implements

* Complete the APIResource class definition

* Remove commented string object from model type unions

* Remove stream field from ChatCompletionCreateParamsBase interface definition

because it interferes with type refinement of implementing classes.

* Add FineTuningJob interface

* FineTuningJobEventsPage extends CursorPage

* Add argument list to requestAPIList

* Change to commonjs libdef

* Fix Edit interface

* Remove strange variables

* Fix JobCreateParams

* Fix CompletionChoice

* Fix ChatCompletionCreateParams

* Fix CreateEmbeddingResponse
  • Loading branch information
joshuanapoli committed Oct 17, 2023
1 parent 0524ccf commit 15c3a80
Show file tree
Hide file tree
Showing 2 changed files with 2,714 additions and 0 deletions.

0 comments on commit 15c3a80

Please sign in to comment.