Skip to content

Commit

Permalink
Fix example writer api code in README.md
Browse files Browse the repository at this point in the history
`writer.rewrite` -> `rewriter.rewrite`
  • Loading branch information
ainoya authored and domenic committed Sep 4, 2024
1 parent 84f484a commit f5af020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const rewriter = await ai.rewriter.create({
sharedContext: "A review for the Flux Capacitor 3000 from TimeMachines Inc."
});

const result = await writer.rewrite(reviewEl.textContent, {
const result = await rewriter.rewrite(reviewEl.textContent, {
context: "Avoid any toxic language and be as constructive as possible."
});
```
Expand Down

0 comments on commit f5af020

Please sign in to comment.