mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
11 lines
301 B
TypeScript
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)
|
|
}
|