An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Remove console.log statements in action.tsx
Yoshiki Miurabf1fc1d46bdb
diff --git a/app/action.tsx b/app/action.tsxindex 9428c37b..ef187d9c 100644--- a/app/action.tsx+++ b/app/action.tsx@@ -31,7 +31,6 @@ async function submit(formData?: FormData, skip?: boolean) {// Add the user message to the stateif (content) {const message = { role: 'user', content }- console.log('Message content', content, aiState.get())messages.push(message as ExperimentalMessage)aiState.update([...(aiState.get() as any), message])}@@ -42,7 +41,6 @@ async function submit(formData?: FormData, skip?: boolean) {let action: any = { object: { next: 'proceed' } }// If the user skips the task, we proceed to the searchif (!skip) action = await taskManager(messages)- console.log('Next Action: ', action)if (action.object.next === 'inquire') {// Generate inquiry