@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/dist/index.mjs CHANGED
@@ -100,6 +100,9 @@ function convertToXaiChatMessages(prompt) {
100
100
  }
101
101
  case "tool": {
102
102
  for (const toolResponse of content) {
103
+ if (toolResponse.type === "tool-approval-response") {
104
+ continue;
105
+ }
103
106
  const output = toolResponse.output;
104
107
  let contentValue;
105
108
  switch (output.type) {
@@ -876,6 +879,9 @@ async function convertToXaiResponsesInput({
876
879
  }
877
880
  case "tool": {
878
881
  for (const part of message.content) {
882
+ if (part.type === "tool-approval-response") {
883
+ continue;
884
+ }
879
885
  const output = part.output;
880
886
  let outputValue;
881
887
  switch (output.type) {
@@ -2023,7 +2029,7 @@ var xaiTools = {
2023
2029
  };
2024
2030
 
2025
2031
  // src/version.ts
2026
- var VERSION = true ? "3.0.0-beta.67" : "0.0.0-test";
2032
+ var VERSION = true ? "3.0.0-beta.68" : "0.0.0-test";
2027
2033
 
2028
2034
  // src/xai-provider.ts
2029
2035
  var xaiErrorStructure = {