Skip to content

Commit

Permalink
fix: chat exports (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Dec 24, 2024
1 parent bb6a68b commit 013b0b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/backend/src/api/v1/runs/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ export async function getMessages(threadId: string, projectId: string) {

let messages = [];
for (const run of filteredRuns) {
if (run.input) {
if (Array.isArray(run.input)) {
messages.push(...run.input);
}
if (run.output) {
if (Array.isArray(run.output)) {
messages.push(...run.output);
}
}
console.log(messages);
return messages;
}

0 comments on commit 013b0b7

Please sign in to comment.