From 48896f626cf5b357f65e7e1e1dcad2d3c2efced5 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Mon, 20 Nov 2023 10:12:10 -0800 Subject: [PATCH] Update examples/typescript-functioncalling/extractwp.ts Co-authored-by: Bruce MacDonald --- examples/typescript-functioncalling/extractwp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/typescript-functioncalling/extractwp.ts b/examples/typescript-functioncalling/extractwp.ts index 21e77b48..b199607d 100644 --- a/examples/typescript-functioncalling/extractwp.ts +++ b/examples/typescript-functioncalling/extractwp.ts @@ -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(" ")); // Specific instructions for this task