@ai-sdk/openai 3.0.0-beta.80 → 3.0.0-beta.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +873 -714
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +829 -666
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +890 -743
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +874 -723
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.82
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3ed5519]
|
|
8
|
+
- @ai-sdk/provider-utils@4.0.0-beta.42
|
|
9
|
+
|
|
10
|
+
## 3.0.0-beta.81
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- cad6445: feat(openai); adding OpenAI's new shell tool
|
|
15
|
+
|
|
3
16
|
## 3.0.0-beta.80
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -307,6 +307,35 @@ declare const openaiTools: {
|
|
|
307
307
|
}, {
|
|
308
308
|
output: string;
|
|
309
309
|
}, {}>;
|
|
310
|
+
/**
|
|
311
|
+
* The shell tool allows the model to interact with your local computer through
|
|
312
|
+
* a controlled command-line interface. The model proposes shell commands; your
|
|
313
|
+
* integration executes them and returns the outputs.
|
|
314
|
+
*
|
|
315
|
+
* Available through the Responses API for use with GPT-5.1.
|
|
316
|
+
*
|
|
317
|
+
* WARNING: Running arbitrary shell commands can be dangerous. Always sandbox
|
|
318
|
+
* execution or add strict allow-/deny-lists before forwarding a command to
|
|
319
|
+
* the system shell.
|
|
320
|
+
*/
|
|
321
|
+
shell: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
322
|
+
action: {
|
|
323
|
+
commands: string[];
|
|
324
|
+
timeoutMs?: number;
|
|
325
|
+
maxOutputLength?: number;
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
output: Array<{
|
|
329
|
+
stdout: string;
|
|
330
|
+
stderr: string;
|
|
331
|
+
outcome: {
|
|
332
|
+
type: "timeout";
|
|
333
|
+
} | {
|
|
334
|
+
type: "exit";
|
|
335
|
+
exitCode: number;
|
|
336
|
+
};
|
|
337
|
+
}>;
|
|
338
|
+
}, {}>;
|
|
310
339
|
/**
|
|
311
340
|
* Web search allows models to access up-to-date information from the internet
|
|
312
341
|
* and provide answers with sourced citations.
|
package/dist/index.d.ts
CHANGED
|
@@ -307,6 +307,35 @@ declare const openaiTools: {
|
|
|
307
307
|
}, {
|
|
308
308
|
output: string;
|
|
309
309
|
}, {}>;
|
|
310
|
+
/**
|
|
311
|
+
* The shell tool allows the model to interact with your local computer through
|
|
312
|
+
* a controlled command-line interface. The model proposes shell commands; your
|
|
313
|
+
* integration executes them and returns the outputs.
|
|
314
|
+
*
|
|
315
|
+
* Available through the Responses API for use with GPT-5.1.
|
|
316
|
+
*
|
|
317
|
+
* WARNING: Running arbitrary shell commands can be dangerous. Always sandbox
|
|
318
|
+
* execution or add strict allow-/deny-lists before forwarding a command to
|
|
319
|
+
* the system shell.
|
|
320
|
+
*/
|
|
321
|
+
shell: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
322
|
+
action: {
|
|
323
|
+
commands: string[];
|
|
324
|
+
timeoutMs?: number;
|
|
325
|
+
maxOutputLength?: number;
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
output: Array<{
|
|
329
|
+
stdout: string;
|
|
330
|
+
stderr: string;
|
|
331
|
+
outcome: {
|
|
332
|
+
type: "timeout";
|
|
333
|
+
} | {
|
|
334
|
+
type: "exit";
|
|
335
|
+
exitCode: number;
|
|
336
|
+
};
|
|
337
|
+
}>;
|
|
338
|
+
}, {}>;
|
|
310
339
|
/**
|
|
311
340
|
* Web search allows models to access up-to-date information from the internet
|
|
312
341
|
* and provide answers with sourced citations.
|