Skip to content

Commit

Permalink
Order thread messages ASC
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed May 14, 2024
1 parent 60402b6 commit 2add7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openai/src/internal/assistant_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function assistantGetNewMessages(
existingMessageIds: string[]
): Promise<Message[]> {
const { data } = await threads.messages.list(threadId, {
order: "desc",
order: "asc",
run_id: runId,
});
return data.filter(
Expand Down

0 comments on commit 2add7b5

Please sign in to comment.