Skip to content

Commit

Permalink
Set context data to blank on default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Sep 20, 2024
1 parent 02de5f3 commit d357e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatapi/src/utils/chat-helpers.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function aiChatNonStream(
for (const message of messages) {
await addToThread(thread.id, message.content);
}
const run = await createRun(thread.id, asst.id, context.data || '');
const run = await createRun(thread.id, asst.id, context.data = '');
await waitForRunCompletion(thread.id, run.id);

return await retrieveResponse(thread.id);
Expand Down

0 comments on commit d357e65

Please sign in to comment.