@ai-sdk/xai 3.0.8 → 3.0.9

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,11 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 173dcfd: added support for streaming custom tool input chunks in xAI
8
+
3
9
  ## 3.0.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1196,6 +1196,16 @@ var xaiResponsesChunkSchema = import_v44.z.union([
1196
1196
  item_id: import_v44.z.string(),
1197
1197
  output_index: import_v44.z.number()
1198
1198
  }),
1199
+ import_v44.z.object({
1200
+ type: import_v44.z.literal("response.custom_tool_call_input.done"),
1201
+ item_id: import_v44.z.string(),
1202
+ output_index: import_v44.z.number()
1203
+ }),
1204
+ import_v44.z.object({
1205
+ type: import_v44.z.literal("response.custom_tool_call_input.delta"),
1206
+ item_id: import_v44.z.string(),
1207
+ output_index: import_v44.z.number()
1208
+ }),
1199
1209
  import_v44.z.object({
1200
1210
  type: import_v44.z.literal("response.code_execution_call.in_progress"),
1201
1211
  item_id: import_v44.z.string(),
@@ -2044,7 +2054,7 @@ var xaiTools = {
2044
2054
  };
2045
2055
 
2046
2056
  // src/version.ts
2047
- var VERSION = true ? "3.0.8" : "0.0.0-test";
2057
+ var VERSION = true ? "3.0.9" : "0.0.0-test";
2048
2058
 
2049
2059
  // src/xai-provider.ts
2050
2060
  var xaiErrorStructure = {