Skip to content

Commit 7be3806

Browse files
committed
Fix openai#37 by upgrading Next.js to 15.x
1 parent 06fc2d4 commit 7be3806

File tree

5 files changed

+636
-112
lines changed

5 files changed

+636
-112
lines changed

app/api/assistants/threads/[threadId]/actions/route.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { openai } from "@/app/openai";
22

33
// Send a new message to a thread
4-
export async function POST(request, { params: { threadId } }) {
4+
export async function POST(request, { params }) {
5+
const { threadId } = await params;
56
const { toolCallOutputs, runId } = await request.json();
67

78
const stream = openai.beta.threads.runs.submitToolOutputsStream(

app/api/assistants/threads/[threadId]/messages/route.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { openai } from "@/app/openai";
44
export const runtime = "nodejs";
55

66
// Send a new message to a thread
7-
export async function POST(request, { params: { threadId } }) {
7+
export async function POST(request, { params }) {
8+
const { threadId } = await params;
89
const { content } = await request.json();
910

1011
await openai.beta.threads.messages.create(threadId, {

0 commit comments

Comments
 (0)