chatbot-template/app/(chat)/actions.ts
Jared Palmer a68eb2a011
Start on new sidebar (#456)
Co-authored-by: shadcn <m@shadcn.com>
2024-10-24 13:35:51 -07:00

8 lines
181 B
TypeScript

'use server';
import { cookies } from 'next/headers';
export async function saveModel(model: string) {
const cookieStore = await cookies();
cookieStore.set('model', model);
}