Skip to content

Commit

Permalink
feat: don't generate audio if there are no important messages
Browse files Browse the repository at this point in the history
  • Loading branch information
leMedi committed Jun 1, 2024
1 parent 24d2f95 commit 11b3d60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/jobs/src/jobs/recap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ triggerDev.defineJob({
recap,
});

if (recap === "NO_IMPORTANT_THINGS_DISCUSSED") {
io.logger.info("no important things discussed");
return;
}

await io.wait("take a breath", 10);

// TODO: generate audio
Expand Down Expand Up @@ -289,6 +294,7 @@ addintional instructions:
- don't include any links
- don't include any code
- refre to the people by their first name only
- if no important things discussed just as a response only 'NO_IMPORTANT_THINGS_DISCUSSED' and don't include any other text.
<context>
${context}
Expand Down

0 comments on commit 11b3d60

Please sign in to comment.