Skip to content

Commit 93c6417

Browse files
authored
Merge pull request #44 from vercel-labs/na/fix-ai-state-call
fix: ai state bug
2 parents 6600bcc + 3699b5f commit 93c6417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/chat/actions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export const AI = createAI<AIState, UIState>({
603603
},
604604
initialUIState: [],
605605
initialAIState: { chatId: nanoid(), interactions: [], messages: [] },
606-
unstable_onGetUIState: async () => {
606+
onGetUIState: async () => {
607607
'use server'
608608

609609
const session = await auth()
@@ -619,7 +619,7 @@ export const AI = createAI<AIState, UIState>({
619619
return
620620
}
621621
},
622-
unstable_onSetAIState: async ({ state }) => {
622+
onSetAIState: async ({ state }) => {
623623
'use server'
624624

625625
const session = await auth()

0 commit comments

Comments
 (0)