An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
removed unstable GenUI and AIStates
Dhrish Parekh9f8ab2005d78
diff --git a/app/actions.tsx b/app/actions.tsxindex a5d68c50..0017b866 100644--- a/app/actions.tsx+++ b/app/actions.tsx@@ -252,7 +252,7 @@ export const AI = createAI<AIState, UIState>({},initialUIState,initialAIState,- unstable_onGetUIState: async () => {+ onGetUIState: async () => {'use server'const aiState = getAIState()@@ -263,7 +263,7 @@ export const AI = createAI<AIState, UIState>({return}},- unstable_onSetAIState: async ({ state, done }) => {+ onSetAIState: async ({ state, done }) => {'use server'// Check if there is any message of type 'answer' in the state messages