Skip to content

Commit

Permalink
Merge pull request openai#10 from akkadaska/feature/replace-createAnd…
Browse files Browse the repository at this point in the history
…Stream-with-stream

Remove deprecated createAndStream method, use stream instead
  • Loading branch information
romainhuet committed May 3, 2024
2 parents e5b843c + 43f9342 commit 33e714e
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 33e714e

Please sign in to comment.