set stream response duration to 300s

This commit is contained in:
Ramnique Singh 2025-08-19 21:52:47 +05:30
parent 3027bf0253
commit 1368a9d0c7
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,8 @@ import { redisClient } from "@/app/lib/redis";
import { CopilotAPIRequest } from "@/src/application/lib/copilot/types";
import { streamMultiAgentResponse } from "@/src/application/lib/copilot/copilot";
export const maxDuration = 300;
export async function GET(request: Request, props: { params: Promise<{ streamId: string }> }) {
const params = await props.params;
// get the payload from redis

View file

@ -4,6 +4,8 @@ import { requireAuth } from "@/app/lib/auth";
import { z } from "zod";
import { TurnEvent } from "@/src/entities/models/turn";
export const maxDuration = 300;
export async function GET(request: Request, props: { params: Promise<{ streamId: string }> }) {
const params = await props.params;