mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
chore: more lint warnings fixed
This commit is contained in:
parent
28ce8bdc24
commit
9c1002b128
@ -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';
|
||||||
|
@ -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());
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user