Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom committed Jun 28, 2024
1 parent 6a56b9b commit fb2a26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/with-openai-assistants/app/api/assistant/route.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { AssistantResponse } from "ai";
import OpenAI from "openai";

const openai = new OpenAI();

// Allow streaming responses up to 30 seconds
export const maxDuration = 30;

export async function POST(req: Request) {
const openai = new OpenAI();

// Parse the request body
const input: {
threadId: string | null;
Expand Down

0 comments on commit fb2a26e

Please sign in to comment.