chore: more lint warnings fixed

This commit is contained in:
Dustin 2025-06-25 14:50:27 -04:00
parent 28ce8bdc24
commit 9c1002b128
3 changed files with 9 additions and 11 deletions

View File

@ -4,7 +4,6 @@ import { toast } from 'react-toastify';
import { HistoryItem } from './HistoryItem'; import { HistoryItem } from './HistoryItem';
import { binDates } from './date-binning'; import { binDates } from './date-binning';
import { Dialog, DialogButton, DialogDescription, DialogRoot, DialogTitle } from '~/components/ui/Dialog'; import { Dialog, DialogButton, DialogDescription, DialogRoot, DialogTitle } from '~/components/ui/Dialog';
import { IconButton } from '~/components/ui/IconButton';
import { ThemeSwitch } from '~/components/ui/ThemeSwitch'; import { ThemeSwitch } from '~/components/ui/ThemeSwitch';
import { db, deleteById, getAll, chatId, type ChatHistoryItem } from '~/lib/persistence'; import { db, deleteById, getAll, chatId, type ChatHistoryItem } from '~/lib/persistence';
import { cubicEasingFn } from '~/utils/easings'; import { cubicEasingFn } from '~/utils/easings';

View File

@ -35,9 +35,9 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
const result = await streamText(messages, context.cloudflare.env, options); const result = await streamText(messages, context.cloudflare.env, options);
return ( return (
/* /**
* WARNING: toAIStream has been removed from streamText. * WARNING: toAIStream has been removed from streamText.
* See migration guide at https://sdk.vercel.ai/docs/migrations * See migration guide at https://sdk.vercel.ai/docs/migrations.
*/ */
stream.switchSource(result.toDataStream()) stream.switchSource(result.toDataStream())
); );
@ -46,9 +46,9 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
const result = await streamText(messages, context.cloudflare.env, options); const result = await streamText(messages, context.cloudflare.env, options);
/* /**
* WARNING: toAIStream has been removed from streamText. * WARNING: toAIStream has been removed from streamText.
* See migration guide at https://sdk.vercel.ai/docs/migrations * See migration guide at https://sdk.vercel.ai/docs/migrations.
*/ */
stream.switchSource(result.toDataStream()); stream.switchSource(result.toDataStream());

View File

@ -46,12 +46,11 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) {
}, },
}); });
const transformedStream = /*
/* * WARNING: toAIStream has been removed from streamText
* WARNING: toAIStream has been removed from streamText. * See migration guide at https://sdk.vercel.ai/docs/migrations
* See migration guide at https://sdk.vercel.ai/docs/migrations */
*/ // result.toDataStream().pipeThrough(transformStream);
result.toDataStream().pipeThrough(transformStream);
return result.toDataStreamResponse(); return result.toDataStreamResponse();
} catch (error) { } catch (error) {