ai 2.2.0 → 2.2.1

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.d.ts CHANGED
@@ -285,7 +285,7 @@ type OpenAIStreamCallbacks = AIStreamCallbacks & {
285
285
  * })
286
286
  * ```
287
287
  */
288
- experimental_onFunctionCall?: (functionCallPayload: FunctionCallPayload, createFunctionCallMessages: (functionCallResult: JSONValue) => CreateMessage[]) => Promise<Response | undefined | void | string>;
288
+ experimental_onFunctionCall?: (functionCallPayload: FunctionCallPayload, createFunctionCallMessages: (functionCallResult: JSONValue) => CreateMessage[]) => Promise<Response | undefined | void | string | AsyncIterable<ChatCompletionChunk>>;
289
289
  };
290
290
  interface ChatCompletionChunk {
291
291
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -410,7 +410,7 @@ var H = class {
410
410
  }
411
411
  };
412
412
 
413
- // ../../node_modules/.pnpm/sswr@2.0.0_svelte@4.0.0/node_modules/sswr/dist/sswr.mjs
413
+ // ../../node_modules/.pnpm/sswr@2.0.0_svelte@4.0.1/node_modules/sswr/dist/sswr.mjs
414
414
  var import_svelte = require("svelte");
415
415
  function p() {
416
416
  }
@@ -383,7 +383,7 @@ var H = class {
383
383
  }
384
384
  };
385
385
 
386
- // ../../node_modules/.pnpm/sswr@2.0.0_svelte@4.0.0/node_modules/sswr/dist/sswr.mjs
386
+ // ../../node_modules/.pnpm/sswr@2.0.0_svelte@4.0.1/node_modules/sswr/dist/sswr.mjs
387
387
  import { beforeUpdate as w, onDestroy as E2 } from "svelte";
388
388
  function p() {
389
389
  }