@ai-sdk/xai 2.0.46 → 2.0.47

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
+ ## 2.0.47
4
+
5
+ ### Patch Changes
6
+
7
+ - 6e3beb1: added support for streaming custom tool input chunks in xAI
8
+
3
9
  ## 2.0.46
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -999,6 +999,16 @@ var xaiResponsesChunkSchema = import_v44.z.union([
999
999
  item_id: import_v44.z.string(),
1000
1000
  output_index: import_v44.z.number()
1001
1001
  }),
1002
+ import_v44.z.object({
1003
+ type: import_v44.z.literal("response.custom_tool_call_input.done"),
1004
+ item_id: import_v44.z.string(),
1005
+ output_index: import_v44.z.number()
1006
+ }),
1007
+ import_v44.z.object({
1008
+ type: import_v44.z.literal("response.custom_tool_call_input.delta"),
1009
+ item_id: import_v44.z.string(),
1010
+ output_index: import_v44.z.number()
1011
+ }),
1002
1012
  import_v44.z.object({
1003
1013
  type: import_v44.z.literal("response.code_execution_call.in_progress"),
1004
1014
  item_id: import_v44.z.string(),
@@ -2013,7 +2023,7 @@ var xaiTools = {
2013
2023
  };
2014
2024
 
2015
2025
  // src/version.ts
2016
- var VERSION = true ? "2.0.46" : "0.0.0-test";
2026
+ var VERSION = true ? "2.0.47" : "0.0.0-test";
2017
2027
 
2018
2028
  // src/xai-provider.ts
2019
2029
  var xaiErrorStructure = {