Skip to content

Commit

Permalink
fix: Limit JSON.stringify output to 20,000 characters (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha authored Dec 6, 2024
1 parent d385127 commit a90092b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-node/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const summarizePost = async ({ data }: { data: object }) =>
.run({
initialPrompt: `
<data>
${JSON.stringify(data)}
${JSON.stringify(data).substring(0, 20_000)}
</data>
You are given a post from Hacker News, and a url for the post's comments.
Expand Down

0 comments on commit a90092b

Please sign in to comment.