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 +1 -1
- package/vue/dist/index.js +1 -1
- package/vue/dist/index.mjs +2 -2
package/package.json
CHANGED
package/vue/dist/index.js
CHANGED
package/vue/dist/index.mjs
CHANGED
@@ -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: {
|