Spaces:
Running
Running
Commit
·
006a5fc
1
Parent(s):
76a5b74
runtime: node
Browse files
app/api/vision-agent/route.ts
CHANGED
@@ -3,7 +3,9 @@ import { StreamingTextResponse } from 'ai';
|
|
3 |
// import { auth } from '@/auth';
|
4 |
import { MessageBase } from '../../../lib/types';
|
5 |
|
6 |
-
export const runtime = 'edge';
|
|
|
|
|
7 |
|
8 |
export async function POST(req: Request) {
|
9 |
const json = await req.json();
|
|
|
3 |
// import { auth } from '@/auth';
|
4 |
import { MessageBase } from '../../../lib/types';
|
5 |
|
6 |
+
// export const runtime = 'edge';
|
7 |
+
export const dynamic = 'force-dynamic';
|
8 |
+
export const maxDuration = 60; // This function can run for a maximum of 5 seconds
|
9 |
|
10 |
export async function POST(req: Request) {
|
11 |
const json = await req.json();
|