mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 14:22:28 +08:00
fix: Add maxDuration constant for chat API route
This commit is contained in:
@@ -4,6 +4,9 @@ import { google } from '@ai-sdk/google';
|
||||
import { streamText } from "ai";
|
||||
import { z } from "zod";
|
||||
|
||||
export const maxDuration = 60
|
||||
|
||||
|
||||
// Read the XML guide from file
|
||||
export async function POST(req: Request) {
|
||||
const body = await req.json();
|
||||
|
||||
Reference in New Issue
Block a user