mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +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 { 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user