@ai-sdk/vue
Advanced tools
Comparing version 0.0.11 to 0.0.12
# @ai-sdk/vue | ||
## 0.0.12 | ||
### Patch Changes | ||
- 3db90c3d: allow empty handleSubmit submissions for useChat | ||
- @ai-sdk/ui-utils@0.0.10 | ||
## 0.0.11 | ||
@@ -4,0 +11,0 @@ |
@@ -201,9 +201,8 @@ "use strict"; | ||
const inputValue = input.value; | ||
if (!inputValue) | ||
return; | ||
append( | ||
{ | ||
triggerRequest( | ||
inputValue ? messages.value.concat({ | ||
id: generateId(), | ||
content: inputValue, | ||
role: "user" | ||
}, | ||
}) : messages.value, | ||
options | ||
@@ -210,0 +209,0 @@ ); |
{ | ||
"name": "@ai-sdk/vue", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"license": "Apache-2.0", | ||
@@ -18,3 +18,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@ai-sdk/ui-utils": "0.0.9", | ||
"@ai-sdk/ui-utils": "0.0.10", | ||
"swrv": "1.0.4" | ||
@@ -30,3 +30,3 @@ }, | ||
"jsdom": "^24.0.0", | ||
"msw": "2.0.9", | ||
"msw": "2.3.1", | ||
"tsup": "^7.2.0", | ||
@@ -33,0 +33,0 @@ "typescript": "5.1.3", |
@@ -264,10 +264,14 @@ import type { | ||
const inputValue = input.value; | ||
if (!inputValue) return; | ||
append( | ||
{ | ||
content: inputValue, | ||
role: 'user', | ||
}, | ||
triggerRequest( | ||
inputValue | ||
? messages.value.concat({ | ||
id: generateId(), | ||
content: inputValue, | ||
role: 'user', | ||
}) | ||
: messages.value, | ||
options, | ||
); | ||
input.value = ''; | ||
@@ -274,0 +278,0 @@ }; |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93041
29
1390
+ Added@ai-sdk/provider-utils@1.0.1(transitive)
+ Added@ai-sdk/ui-utils@0.0.10(transitive)
- Removed@ai-sdk/provider-utils@1.0.0(transitive)
- Removed@ai-sdk/ui-utils@0.0.9(transitive)
Updated@ai-sdk/ui-utils@0.0.10