@ai-sdk/xai 3.0.10 → 3.0.11

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.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 9a53f59: fix (provider/xai): no duplicate text delta in responses api
8
+
3
9
  ## 3.0.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1935,12 +1935,12 @@ var XaiResponsesLanguageModel = class {
1935
1935
  type: "text-start",
1936
1936
  id: blockId
1937
1937
  });
1938
+ controller.enqueue({
1939
+ type: "text-delta",
1940
+ id: blockId,
1941
+ delta: contentPart.text
1942
+ });
1938
1943
  }
1939
- controller.enqueue({
1940
- type: "text-delta",
1941
- id: blockId,
1942
- delta: contentPart.text
1943
- });
1944
1944
  }
1945
1945
  if (contentPart.annotations) {
1946
1946
  for (const annotation of contentPart.annotations) {
@@ -2055,7 +2055,7 @@ var xaiTools = {
2055
2055
  };
2056
2056
 
2057
2057
  // src/version.ts
2058
- var VERSION = true ? "3.0.10" : "0.0.0-test";
2058
+ var VERSION = true ? "3.0.11" : "0.0.0-test";
2059
2059
 
2060
2060
  // src/xai-provider.ts
2061
2061
  var xaiErrorStructure = {