ai 4.0.15 → 4.0.16

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
2
2
 
3
+ ## 4.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - e3fac3f: fix (ai/core): change smoothStream default delay to 10ms
8
+
3
9
  ## 4.0.15
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2125,6 +2125,12 @@ Details for all steps.
2125
2125
  };
2126
2126
  }): StreamTextResult<TOOLS>;
2127
2127
 
2128
+ /**
2129
+ * Smooths text streaming output.
2130
+ *
2131
+ * @param delayInMs - The delay in milliseconds between each chunk. Defaults to 10ms.
2132
+ * @returns A transform stream that smooths text streaming output.
2133
+ */
2128
2134
  declare function smoothStream<TOOLS extends Record<string, CoreTool>>({ delayInMs, _internal: { delay }, }?: {
2129
2135
  delayInMs?: number;
2130
2136
  /**
package/dist/index.d.ts CHANGED
@@ -2125,6 +2125,12 @@ Details for all steps.
2125
2125
  };
2126
2126
  }): StreamTextResult<TOOLS>;
2127
2127
 
2128
+ /**
2129
+ * Smooths text streaming output.
2130
+ *
2131
+ * @param delayInMs - The delay in milliseconds between each chunk. Defaults to 10ms.
2132
+ * @returns A transform stream that smooths text streaming output.
2133
+ */
2128
2134
  declare function smoothStream<TOOLS extends Record<string, CoreTool>>({ delayInMs, _internal: { delay }, }?: {
2129
2135
  delayInMs?: number;
2130
2136
  /**
package/dist/index.js CHANGED
@@ -5046,7 +5046,7 @@ var DefaultStreamTextResult = class {
5046
5046
 
5047
5047
  // core/generate-text/smooth-stream.ts
5048
5048
  function smoothStream({
5049
- delayInMs = 40,
5049
+ delayInMs = 10,
5050
5050
  _internal: { delay: delay2 = delay } = {}
5051
5051
  } = {}) {
5052
5052
  let buffer = "";