Switch to vercel's biome setup (#543)
This commit is contained in:
parent
b8643353c0
commit
43aa1c6e58
52 changed files with 414 additions and 201 deletions
|
|
@ -66,13 +66,13 @@ export function MultimodalInput({
|
|||
setMessages: Dispatch<SetStateAction<Array<Message>>>;
|
||||
append: (
|
||||
message: Message | CreateMessage,
|
||||
chatRequestOptions?: ChatRequestOptions
|
||||
chatRequestOptions?: ChatRequestOptions,
|
||||
) => Promise<string | null | undefined>;
|
||||
handleSubmit: (
|
||||
event?: {
|
||||
preventDefault?: () => void;
|
||||
},
|
||||
chatRequestOptions?: ChatRequestOptions
|
||||
chatRequestOptions?: ChatRequestOptions,
|
||||
) => void;
|
||||
className?: string;
|
||||
}) {
|
||||
|
|
@ -94,7 +94,7 @@ export function MultimodalInput({
|
|||
|
||||
const [localStorageInput, setLocalStorageInput] = useLocalStorage(
|
||||
'input',
|
||||
''
|
||||
'',
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -180,7 +180,7 @@ export function MultimodalInput({
|
|||
const uploadPromises = files.map((file) => uploadFile(file));
|
||||
const uploadedAttachments = await Promise.all(uploadPromises);
|
||||
const successfullyUploadedAttachments = uploadedAttachments.filter(
|
||||
(attachment) => attachment !== undefined
|
||||
(attachment) => attachment !== undefined,
|
||||
);
|
||||
|
||||
setAttachments((currentAttachments) => [
|
||||
|
|
@ -193,7 +193,7 @@ export function MultimodalInput({
|
|||
setUploadQueue([]);
|
||||
}
|
||||
},
|
||||
[setAttachments]
|
||||
[setAttachments],
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
@ -269,7 +269,7 @@ export function MultimodalInput({
|
|||
onChange={handleInput}
|
||||
className={cx(
|
||||
'min-h-[24px] max-h-[calc(75dvh)] overflow-hidden resize-none rounded-xl text-base bg-muted',
|
||||
className
|
||||
className,
|
||||
)}
|
||||
rows={3}
|
||||
autoFocus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue