@@ -26,6 +26,16 @@ npm exec -c "gptscript https://get.gptscript.ai/echo.gpt --input 'Hello, World!'
2626
2727you will see "Hello, World!" in the output of the command.
2828
29+ ## Options
30+
31+ These are optional options that can be passed to the various ` exec ` functions.
32+ None of the options is required, and the defaults will reduce the number of calls made to the Model API.
33+
34+ - ` cache ` : Enable or disable caching. Default (true).
35+ - ` cacheDir ` : Specify the cache directory.
36+ - ` quiet ` : No output logging
37+ - ` chdir ` : Change current working directory
38+
2939## Functions
3040
3141### listTools
@@ -66,16 +76,6 @@ async function listModels() {
6676
6777Executes a prompt with optional arguments.
6878
69- ** Options:**
70-
71- These are optional options that can be passed to the ` exec ` function.
72- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
73-
74- - ` cache ` : Enable or disable caching. Default (true).
75- - ` cacheDir ` : Specify the cache directory.
76-
77- ** Usage:**
78-
7979``` javascript
8080const gptscript = require (' @gptscript-ai/gptscript' );
8181
9393
9494### execFile
9595
96- Executes a GPT script file with optional input and arguments.
97-
98- ** Options:**
99-
100- These are optional options that can be passed to the ` exec ` function.
101- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
102-
103- - ` cache ` : Enable or disable caching.
104- - ` cacheDir ` : Specify the cache directory.
105-
106- ** Usage:**
107-
108- The script is relative to the callers source directory.
96+ Executes a GPT script file with optional input and arguments. The script is relative to the callers source directory.
10997
11098``` javascript
11199const gptscript = require (' @gptscript-ai/gptscript' );
@@ -128,16 +116,6 @@ async function execFile() {
128116
129117Executes a gptscript with optional input and arguments, and returns the output streams.
130118
131- ** Options:**
132-
133- These are optional options that can be passed to the ` exec ` function.
134- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
135-
136- - ` cache ` : Enable or disable caching.
137- - ` cacheDir ` : Specify the cache directory.
138-
139- ** Usage:**
140-
141119``` javascript
142120const gptscript = require (' @gptscript-ai/gptscript' );
143121
@@ -172,16 +150,6 @@ async function streamExec() {
172150
173151Executes a gptscript with optional input and arguments, and returns the output and event streams.
174152
175- ** Options:**
176-
177- These are optional options that can be passed to the ` exec ` function.
178- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
179-
180- - ` cache ` : Enable or disable caching.
181- - ` cacheDir ` : Specify the cache directory.
182-
183- ** Usage:**
184-
185153``` javascript
186154const gptscript = require (' @gptscript-ai/gptscript' );
187155
@@ -218,16 +186,6 @@ async function streamExecWithEvents() {
218186
219187### streamExecFile
220188
221- ** Options:**
222-
223- These are optional options that can be passed to the ` exec ` function.
224- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
225-
226- - ` cache ` : Enable or disable caching.
227- - ` cacheDir ` : Specify the cache directory.
228-
229- ** Usage:**
230-
231189The script is relative to the callers source directory.
232190
233191``` javascript
@@ -258,16 +216,6 @@ async function streamExecFile() {
258216
259217### streamExecFileWithEvents
260218
261- ** Options:**
262-
263- These are optional options that can be passed to the ` exec ` function.
264- Neither option is required, and the defaults will reduce the number of calls made to the Model API.
265-
266- - ` cache ` : Enable or disable caching.
267- - ` cacheDir ` : Specify the cache directory.
268-
269- ** Usage:**
270-
271219The script is relative to the callers source directory.
272220
273221``` javascript
0 commit comments