Unverified Commit 48896f62 authored by Matt Williams's avatar Matt Williams Committed by GitHub
Browse files

Update examples/typescript-functioncalling/extractwp.ts


Co-authored-by: default avatarBruce MacDonald <brucewmacdonald@gmail.com>
parent c57aee6f
...@@ -21,7 +21,7 @@ async function main() { ...@@ -21,7 +21,7 @@ async function main() {
}], }],
} }
// Depending on the model chosen, you may have a restricted context. // Depending on the model chosen, you may be limited by the size of the context window, so limit the context to 2000 words.
const textcontent = await readFile("./wp.txt", "utf-8").then((text) => text.split(" ").slice(0, 2000).join(" ")); const textcontent = await readFile("./wp.txt", "utf-8").then((text) => text.split(" ").slice(0, 2000).join(" "));
// Specific instructions for this task // Specific instructions for this task
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment