@ai-sdk/openai-compatible 3.0.0-beta.0 → 3.0.0-beta.2

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-compatible
2
2
 
3
+ ## 3.0.0-beta.2
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
+ ## 3.0.0-beta.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [531251e]
18
+ - @ai-sdk/provider-utils@5.0.0-beta.1
19
+
3
20
  ## 3.0.0-beta.0
4
21
 
5
22
  ### Major Changes
package/dist/index.js CHANGED
@@ -1665,7 +1665,7 @@ function toCamelCase(str) {
1665
1665
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
1666
1666
 
1667
1667
  // src/version.ts
1668
- var VERSION = true ? "3.0.0-beta.0" : "0.0.0-test";
1668
+ var VERSION = true ? "3.0.0-beta.2" : "0.0.0-test";
1669
1669
 
1670
1670
  // src/openai-compatible-provider.ts
1671
1671
  function createOpenAICompatible(options) {
package/dist/index.mjs CHANGED
@@ -1682,7 +1682,7 @@ import {
1682
1682
  } from "@ai-sdk/provider-utils";
1683
1683
 
1684
1684
  // src/version.ts
1685
- var VERSION = true ? "3.0.0-beta.0" : "0.0.0-test";
1685
+ var VERSION = true ? "3.0.0-beta.2" : "0.0.0-test";
1686
1686
 
1687
1687
  // src/openai-compatible-provider.ts
1688
1688
  function createOpenAICompatible(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai-compatible",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
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",