Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/vue

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/vue - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

7

CHANGELOG.md
# @ai-sdk/vue
## 0.0.7
### Patch Changes
- Updated dependencies [54bf4083]
- @ai-sdk/ui-utils@0.0.6
## 0.0.6

@@ -4,0 +11,0 @@

38

dist/index.js

@@ -98,23 +98,25 @@ "use strict";

const existingData = (_a2 = streamData.value) != null ? _a2 : [];
const constructedMessagesPayload = sendExtraMessageFields ? chatRequest.messages : chatRequest.messages.map(
({
role,
content,
name,
data: data2,
annotations,
function_call
}) => ({
role,
content,
...name !== void 0 && { name },
...data2 !== void 0 && { data: data2 },
...annotations !== void 0 && { annotations },
// outdated function/tool call handling (TODO deprecate):
...function_call !== void 0 && { function_call }
})
);
return await (0, import_ui_utils.callChatApi)({
api,
messages: sendExtraMessageFields ? chatRequest.messages : chatRequest.messages.map(
({
role,
content,
name,
data: data2,
annotations,
function_call
}) => ({
role,
content,
...name !== void 0 && { name },
...data2 !== void 0 && { data: data2 },
...annotations !== void 0 && { annotations },
// outdated function/tool call handling (TODO deprecate):
...function_call !== void 0 && { function_call }
})
),
messages: constructedMessagesPayload,
body: {
messages: constructedMessagesPayload,
data: chatRequest.data,

@@ -121,0 +123,0 @@ ...(0, import_vue.unref)(body),

{
"name": "@ai-sdk/vue",
"version": "0.0.6",
"version": "0.0.7",
"license": "Apache-2.0",

@@ -18,3 +18,3 @@ "sideEffects": false,

"dependencies": {
"@ai-sdk/ui-utils": "0.0.5",
"@ai-sdk/ui-utils": "0.0.6",
"swrv": "1.0.4"

@@ -21,0 +21,0 @@ },

@@ -141,25 +141,28 @@ import type {

const constructedMessagesPayload = sendExtraMessageFields
? chatRequest.messages
: chatRequest.messages.map(
({
role,
content,
name,
data,
annotations,
function_call,
}) => ({
role,
content,
...(name !== undefined && { name }),
...(data !== undefined && { data }),
...(annotations !== undefined && { annotations }),
// outdated function/tool call handling (TODO deprecate):
...(function_call !== undefined && { function_call }),
}),
);
return await callChatApi({
api,
messages: sendExtraMessageFields
? chatRequest.messages
: chatRequest.messages.map(
({
role,
content,
name,
data,
annotations,
function_call,
}) => ({
role,
content,
...(name !== undefined && { name }),
...(data !== undefined && { data }),
...(annotations !== undefined && { annotations }),
// outdated function/tool call handling (TODO deprecate):
...(function_call !== undefined && { function_call }),
}),
),
messages: constructedMessagesPayload,
body: {
messages: constructedMessagesPayload,
data: chatRequest.data,

@@ -166,0 +169,0 @@ ...unref(body), // Use unref to unwrap the ref value

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc