mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-06 19:25:21 +00:00
Update examples/typescript-functioncalling/extractwp.ts
Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
This commit is contained in:
parent
c57aee6fba
commit
48896f626c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user