fix: title generation + ai sdk upgrade (#1392)

This commit is contained in:
josh 2026-01-15 16:06:42 +00:00 committed by GitHub
parent f19d3d4071
commit 9d5d8a3ea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 1422 additions and 2360 deletions

View file

@ -308,7 +308,7 @@ function PureMultimodalInput({
)}
<input
className="-top-4 -left-4 pointer-events-none fixed size-0.5 opacity-0"
className="pointer-events-none fixed -top-4 -left-4 size-0.5 opacity-0"
multiple
onChange={handleFileChange}
ref={fileInputRef}
@ -320,6 +320,9 @@ function PureMultimodalInput({
className="rounded-xl border border-border bg-background p-3 shadow-xs transition-all duration-200 focus-within:border-border hover:border-muted-foreground/50"
onSubmit={(event) => {
event.preventDefault();
if (!input.trim() && attachments.length === 0) {
return;
}
if (status !== "ready") {
toast.error("Please wait for the model to finish its response!");
} else {