feat: v1 — persistent shell, model gateway, artifact improvements (#1462)
This commit is contained in:
parent
3651670fb9
commit
f9652b452a
161 changed files with 5166 additions and 8009 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import type { UseChatHelpers } from "@ai-sdk/react";
|
||||
import { useEffect } from "react";
|
||||
import { useDataStream } from "@/components/data-stream-provider";
|
||||
import { useDataStream } from "@/components/chat/data-stream-provider";
|
||||
import type { ChatMessage } from "@/lib/types";
|
||||
|
||||
export type UseAutoResumeParams = {
|
||||
|
|
@ -30,9 +30,6 @@ export function useAutoResume({
|
|||
if (mostRecentMessage?.role === "user") {
|
||||
resumeStream();
|
||||
}
|
||||
|
||||
// we intentionally run this once
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [autoResume, initialMessages.at, resumeStream]);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue