Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
48896f62
Unverified
Commit
48896f62
authored
Nov 20, 2023
by
Matt Williams
Committed by
GitHub
Nov 20, 2023
Browse files
Update examples/typescript-functioncalling/extractwp.ts
Co-authored-by:
Bruce MacDonald
<
brucewmacdonald@gmail.com
>
parent
c57aee6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/typescript-functioncalling/extractwp.ts
examples/typescript-functioncalling/extractwp.ts
+1
-1
No files found.
examples/typescript-functioncalling/extractwp.ts
View file @
48896f62
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment