Update maxDuration to 60 seconds for chat API and page.tsx
This commit is contained in:
parent
1bdbc1573f
commit
0d49b6b3ce
@ -6,7 +6,7 @@ import { z } from "zod";
|
||||
import { geolocation } from '@vercel/functions'
|
||||
|
||||
// Allow streaming responses up to 30 seconds
|
||||
export const maxDuration = 30;
|
||||
export const maxDuration = 60;
|
||||
|
||||
export async function POST(req: Request) {
|
||||
const { messages, model } = await req.json();
|
||||
|
||||
@ -89,6 +89,8 @@ import {
|
||||
ChartTooltipContent,
|
||||
} from "@/components/ui/chart";
|
||||
|
||||
export const maxDuration = 60;
|
||||
|
||||
export default function Home() {
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
const [lastSubmittedQuery, setLastSubmittedQuery] = useState("");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user