@ai-sdk/openai 4.0.0-beta.1 → 4.0.0-beta.3

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.0-beta.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 45b3d76: fix(security): prevent streaming tool calls from finalizing on parsable partial JSON
8
+
9
+ Streaming tool call arguments were finalized using `isParsableJson()` as a heuristic for completion. If partial accumulated JSON happened to be valid JSON before all chunks arrived, the tool call would be executed with incomplete arguments. Tool call finalization now only occurs in `flush()` after the stream is fully consumed.
10
+
11
+ - f7295cb: revert incorrect fix https://github.com/vercel/ai/pull/13172
12
+
13
+ ## 4.0.0-beta.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [531251e]
18
+ - @ai-sdk/provider-utils@5.0.0-beta.1
19
+
3
20
  ## 4.0.0-beta.1
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -6303,7 +6303,7 @@ var OpenAITranscriptionModel = class {
6303
6303
  };
6304
6304
 
6305
6305
  // src/version.ts
6306
- var VERSION = true ? "4.0.0-beta.1" : "0.0.0-test";
6306
+ var VERSION = true ? "4.0.0-beta.3" : "0.0.0-test";
6307
6307
 
6308
6308
  // src/openai-provider.ts
6309
6309
  function createOpenAI(options = {}) {
package/dist/index.mjs CHANGED
@@ -6389,7 +6389,7 @@ var OpenAITranscriptionModel = class {
6389
6389
  };
6390
6390
 
6391
6391
  // src/version.ts
6392
- var VERSION = true ? "4.0.0-beta.1" : "0.0.0-test";
6392
+ var VERSION = true ? "4.0.0-beta.3" : "0.0.0-test";
6393
6393
 
6394
6394
  // src/openai-provider.ts
6395
6395
  function createOpenAI(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@ai-sdk/provider": "4.0.0-beta.0",
40
- "@ai-sdk/provider-utils": "5.0.0-beta.0"
40
+ "@ai-sdk/provider-utils": "5.0.0-beta.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",