Skip to content

Commit

Permalink
Remove deprecated createAndStream method, use stream instead
Browse files Browse the repository at this point in the history
  • Loading branch information
akkadaska committed May 3, 2024
1 parent e5b843c commit 43f9342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/assistants/threads/[threadId]/messages/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function POST(request, { params: { threadId } }) {
content: content,
});

const stream = openai.beta.threads.runs.createAndStream(threadId, {
const stream = openai.beta.threads.runs.stream(threadId, {
assistant_id: assistantId,
});

Expand Down

0 comments on commit 43f9342

Please sign in to comment.