ai 2.2.11 → 2.2.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
package/vue/dist/index.js CHANGED
@@ -309,7 +309,7 @@ function useCompletion({
309
309
  method: "POST",
310
310
  body: JSON.stringify({
311
311
  prompt,
312
- ...body,
312
+ ...(0, import_vue2.unref)(body),
313
313
  ...options == null ? void 0 : options.body
314
314
  }),
315
315
  headers: {
@@ -227,7 +227,7 @@ function useChat({
227
227
 
228
228
  // vue/use-completion.ts
229
229
  import swrv2 from "swrv";
230
- import { ref as ref2 } from "vue";
230
+ import { ref as ref2, unref as unref2 } from "vue";
231
231
  var uniqueId2 = 0;
232
232
  var useSWRV2 = swrv2.default || swrv2;
233
233
  var store2 = {};
@@ -272,7 +272,7 @@ function useCompletion({
272
272
  method: "POST",
273
273
  body: JSON.stringify({
274
274
  prompt,
275
- ...body,
275
+ ...unref2(body),
276
276
  ...options == null ? void 0 : options.body
277
277
  }),
278
278
  headers: {