Files
2025-08-18 18:31:29 +08:00

11 lines
301 B
TypeScript

'use server'
import { upsertThreadMessage } from '@/app/actions'
export async function upsertMessageFormAction(formData: FormData) {
const threadId = formData.get('threadId') as string | undefined
const prompt = formData.get('prompt') as string
return upsertThreadMessage(prompt, threadId)
}