@ai-sdk/xai 3.0.0-beta.67 → 3.0.0-beta.68

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,15 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.0-beta.68
4
+
5
+ ### Patch Changes
6
+
7
+ - 2625a04: feat(openai); update spec for mcp approval
8
+ - Updated dependencies [2625a04]
9
+ - @ai-sdk/openai-compatible@2.0.0-beta.59
10
+ - @ai-sdk/provider@3.0.0-beta.31
11
+ - @ai-sdk/provider-utils@4.0.0-beta.58
12
+
3
13
  ## 3.0.0-beta.67
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -117,6 +117,9 @@ function convertToXaiChatMessages(prompt) {
117
117
  }
118
118
  case "tool": {
119
119
  for (const toolResponse of content) {
120
+ if (toolResponse.type === "tool-approval-response") {
121
+ continue;
122
+ }
120
123
  const output = toolResponse.output;
121
124
  let contentValue;
122
125
  switch (output.type) {
@@ -885,6 +888,9 @@ async function convertToXaiResponsesInput({
885
888
  }
886
889
  case "tool": {
887
890
  for (const part of message.content) {
891
+ if (part.type === "tool-approval-response") {
892
+ continue;
893
+ }
888
894
  const output = part.output;
889
895
  let outputValue;
890
896
  switch (output.type) {
@@ -2022,7 +2028,7 @@ var xaiTools = {
2022
2028
  };
2023
2029
 
2024
2030
  // src/version.ts
2025
- var VERSION = true ? "3.0.0-beta.67" : "0.0.0-test";
2031
+ var VERSION = true ? "3.0.0-beta.68" : "0.0.0-test";
2026
2032
 
2027
2033
  // src/xai-provider.ts
2028
2034
  var xaiErrorStructure = {