Skip to content

Commit a3d9cd5

Browse files
bianbianzhuTianyiLi
andauthored
fix(docs): update README to use await for async functions in examples (#80)
Co-authored-by: TianyiLi <tianyili@Mac.hub>
1 parent a8b0d91 commit a3d9cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ server.addTool({
587587

588588
// or...
589589
// execute: async (args) => {
590-
// const imgContent = imageContent({
590+
// const imgContent = await imageContent({
591591
// url: "https://example.com/image.png",
592592
// });
593-
// const audContent = audioContent({
593+
// const audContent = await audioContent({
594594
// url: "https://example.com/audio.mp3",
595595
// });
596596
// return {

0 commit comments

Comments
 (0)