openai 4.15.2 → 4.15.4
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 +16 -0
- package/README.md +1 -4
- package/package.json +1 -1
- 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,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.15.4 (2023-11-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v4.15.3...v4.15.4](https://github.com/openai/openai-node/compare/v4.15.3...v4.15.4)
|
|
6
|
+
|
|
7
|
+
### Documentation
|
|
8
|
+
|
|
9
|
+
* **readme:** remove redundant whitespace ([#427](https://github.com/openai/openai-node/issues/427)) ([aa3a178](https://github.com/openai/openai-node/commit/aa3a1782914a4a285263e4d070bca73e72ed47ec))
|
|
10
|
+
|
|
11
|
+
## 4.15.3 (2023-11-04)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v4.15.2...v4.15.3](https://github.com/openai/openai-node/compare/v4.15.2...v4.15.3)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* improve deno releases ([#425](https://github.com/openai/openai-node/issues/425)) ([19469f2](https://github.com/openai/openai-node/commit/19469f266ff69a4e549402188d9f6ad87f5a7778))
|
|
18
|
+
|
|
3
19
|
## 4.15.2 (2023-11-04)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v4.15.1...v4.15.2](https://github.com/openai/openai-node/compare/v4.15.1...v4.15.2)
|
package/README.md
CHANGED
|
@@ -38,8 +38,6 @@ async function main() {
|
|
|
38
38
|
messages: [{ role: 'user', content: 'Say this is a test' }],
|
|
39
39
|
model: 'gpt-3.5-turbo',
|
|
40
40
|
});
|
|
41
|
-
|
|
42
|
-
console.log(chatCompletion.choices);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
main();
|
|
@@ -261,7 +259,6 @@ async function main() {
|
|
|
261
259
|
if (err instanceof OpenAI.APIError) {
|
|
262
260
|
console.log(err.status); // 400
|
|
263
261
|
console.log(err.name); // BadRequestError
|
|
264
|
-
|
|
265
262
|
console.log(err.headers); // {server: 'nginx', ...}
|
|
266
263
|
} else {
|
|
267
264
|
throw err;
|
|
@@ -388,7 +385,7 @@ const { data: chatCompletion, response: raw } = await openai.chat.completions
|
|
|
388
385
|
.create({ messages: [{ role: 'user', content: 'Say this is a test' }], model: 'gpt-3.5-turbo' })
|
|
389
386
|
.withResponse();
|
|
390
387
|
console.log(raw.headers.get('X-My-Header'));
|
|
391
|
-
console.log(chatCompletion
|
|
388
|
+
console.log(chatCompletion);
|
|
392
389
|
```
|
|
393
390
|
|
|
394
391
|
## Customizing the fetch client
|
package/package.json
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.15.
|
|
1
|
+
export const VERSION = '4.15.4'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.15.
|
|
1
|
+
export declare const VERSION = "4.15.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.15.
|
|
1
|
+
export const VERSION = '4.15.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|