fix: Add maxDuration constant for chat API route

This commit is contained in:
dayuan.jiang
2025-04-04 01:48:15 +00:00
parent a44918385a
commit aeca1adf89

View File

@@ -4,6 +4,9 @@ import { google } from '@ai-sdk/google';
import { streamText } from "ai"; import { streamText } from "ai";
import { z } from "zod"; import { z } from "zod";
export const maxDuration = 60
// Read the XML guide from file // Read the XML guide from file
export async function POST(req: Request) { export async function POST(req: Request) {
const body = await req.json(); const body = await req.json();