openai 4.19.0 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +3 -3
- package/package.json +21 -21
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.20.0 (2023-11-22)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v4.19.1...v4.20.0](https://github.com/openai/openai-node/compare/v4.19.1...v4.20.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* allow installing package directly from github ([#522](https://github.com/openai/openai-node/issues/522)) ([51926d7](https://github.com/openai/openai-node/commit/51926d7a0092744e49de39f4988feddf313adafa))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** don't call prepare in dist ([#525](https://github.com/openai/openai-node/issues/525)) ([d09411e](https://github.com/openai/openai-node/commit/d09411ebaa28d6610e1b880d03339d520b4a1833))
|
|
15
|
+
|
|
16
|
+
## 4.19.1 (2023-11-20)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v4.19.0...v4.19.1](https://github.com/openai/openai-node/compare/v4.19.0...v4.19.1)
|
|
19
|
+
|
|
3
20
|
## 4.19.0 (2023-11-15)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v4.18.0...v4.19.0](https://github.com/openai/openai-node/compare/v4.18.0...v4.19.0)
|
package/README.md
CHANGED
|
@@ -21,14 +21,14 @@ You can import in Deno via:
|
|
|
21
21
|
<!-- x-release-please-start-version -->
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
|
-
import OpenAI from 'https://deno.land/x/openai@v4.
|
|
24
|
+
import OpenAI from 'https://deno.land/x/openai@v4.20.0/mod.ts';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
<!-- x-release-please-end -->
|
|
28
28
|
|
|
29
29
|
## Usage
|
|
30
30
|
|
|
31
|
-
The full API of this library can be found in [api.md file](https://github.com/openai/openai-node/
|
|
31
|
+
The full API of this library can be found in [api.md file](api.md) along with many [code examples](https://github.com/openai/openai-node/tree/master/examples). The code below shows how to get started using the chat completions API.
|
|
32
32
|
|
|
33
33
|
```js
|
|
34
34
|
import OpenAI from 'openai';
|
|
@@ -215,7 +215,7 @@ main();
|
|
|
215
215
|
Like with `.stream()`, we provide a variety of [helpers and events](helpers.md#events).
|
|
216
216
|
|
|
217
217
|
Read more about various examples such as with integrating with [zod](helpers.md#integrate-with-zod),
|
|
218
|
-
[next.js](helpers.md#integrate-wtih-next-js), and [proxying a stream to the browser](helpers.md#proxy-streaming
|
|
218
|
+
[next.js](helpers.md#integrate-wtih-next-js), and [proxying a stream to the browser](helpers.md#proxy-streaming-to-a-browser).
|
|
219
219
|
|
|
220
220
|
## File Uploads
|
|
221
221
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openai",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.20.0",
|
|
4
|
+
"description": "The official TypeScript library for the OpenAI API",
|
|
5
5
|
"author": "OpenAI <support@openai.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -9,6 +9,25 @@
|
|
|
9
9
|
"repository": "github:openai/openai-node",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"private": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "bin/check-test-server && yarn jest",
|
|
14
|
+
"build": "bash ./build",
|
|
15
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
16
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
17
|
+
"lint": "eslint --ext ts,js .",
|
|
18
|
+
"fix": "eslint --fix --ext ts,js ."
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@types/node": "^18.11.18",
|
|
22
|
+
"@types/node-fetch": "^2.6.4",
|
|
23
|
+
"abort-controller": "^3.0.0",
|
|
24
|
+
"agentkeepalive": "^4.2.1",
|
|
25
|
+
"digest-fetch": "^1.3.0",
|
|
26
|
+
"form-data-encoder": "1.7.2",
|
|
27
|
+
"formdata-node": "^4.3.2",
|
|
28
|
+
"node-fetch": "^2.6.7",
|
|
29
|
+
"web-streams-polyfill": "^3.2.1"
|
|
30
|
+
},
|
|
12
31
|
"sideEffects": [
|
|
13
32
|
"./_shims/index.js",
|
|
14
33
|
"./_shims/index.mjs",
|
|
@@ -75,24 +94,5 @@
|
|
|
75
94
|
"default": "./*.mjs"
|
|
76
95
|
}
|
|
77
96
|
},
|
|
78
|
-
"scripts": {
|
|
79
|
-
"test": "bin/check-test-server && yarn jest",
|
|
80
|
-
"build": "bash ./build",
|
|
81
|
-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
82
|
-
"tsn": "ts-node -r tsconfig-paths/register",
|
|
83
|
-
"lint": "eslint --ext ts,js .",
|
|
84
|
-
"fix": "eslint --fix --ext ts,js ."
|
|
85
|
-
},
|
|
86
|
-
"dependencies": {
|
|
87
|
-
"@types/node": "^18.11.18",
|
|
88
|
-
"@types/node-fetch": "^2.6.4",
|
|
89
|
-
"abort-controller": "^3.0.0",
|
|
90
|
-
"agentkeepalive": "^4.2.1",
|
|
91
|
-
"digest-fetch": "^1.3.0",
|
|
92
|
-
"form-data-encoder": "1.7.2",
|
|
93
|
-
"formdata-node": "^4.3.2",
|
|
94
|
-
"node-fetch": "^2.6.7",
|
|
95
|
-
"web-streams-polyfill": "^3.2.1"
|
|
96
|
-
},
|
|
97
97
|
"bin": "./bin/cli"
|
|
98
98
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.20.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|