@ai-sdk/openai 3.0.0-beta.71 → 3.0.0-beta.72
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 +9 -0
- package/dist/index.d.mts +0 -16
- package/dist/index.d.ts +0 -16
- package/dist/index.js +80 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -79
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +249 -232
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +260 -242
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.72
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 954c356: feat(openai): allow custom names for provider-defined tools
|
|
8
|
+
- Updated dependencies [954c356]
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.0-beta.39
|
|
10
|
+
- @ai-sdk/provider@3.0.0-beta.21
|
|
11
|
+
|
|
3
12
|
## 3.0.0-beta.71
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -167,8 +167,6 @@ declare const openaiTools: {
|
|
|
167
167
|
* coding, and math.
|
|
168
168
|
*
|
|
169
169
|
* @param container - The container to use for the code interpreter.
|
|
170
|
-
*
|
|
171
|
-
* Must have name `code_interpreter`.
|
|
172
170
|
*/
|
|
173
171
|
codeInterpreter: (args?: {
|
|
174
172
|
container?: string | {
|
|
@@ -191,8 +189,6 @@ declare const openaiTools: {
|
|
|
191
189
|
* retrieve information in a knowledge base of previously uploaded files through
|
|
192
190
|
* semantic and keyword search.
|
|
193
191
|
*
|
|
194
|
-
* Must have name `file_search`.
|
|
195
|
-
*
|
|
196
192
|
* @param vectorStoreIds - The vector store IDs to use for the file search.
|
|
197
193
|
* @param maxNumResults - The maximum number of results to return.
|
|
198
194
|
* @param ranking - The ranking options to use for the file search.
|
|
@@ -221,8 +217,6 @@ declare const openaiTools: {
|
|
|
221
217
|
* and optionally image inputs. It leverages the GPT Image model,
|
|
222
218
|
* and automatically optimizes text inputs for improved performance.
|
|
223
219
|
*
|
|
224
|
-
* Must have name `image_generation`.
|
|
225
|
-
*
|
|
226
220
|
* @param background - Background type for the generated image. One of 'auto', 'opaque', or 'transparent'.
|
|
227
221
|
* @param inputFidelity - Input fidelity for the generated image. One of 'low' or 'high'.
|
|
228
222
|
* @param inputImageMask - Optional mask for inpainting. Contains fileId and/or imageUrl.
|
|
@@ -256,8 +250,6 @@ declare const openaiTools: {
|
|
|
256
250
|
* on a machine you or the user provides.
|
|
257
251
|
*
|
|
258
252
|
* Supported models: `gpt-5-codex` and `codex-mini-latest`
|
|
259
|
-
*
|
|
260
|
-
* Must have name `local_shell`.
|
|
261
253
|
*/
|
|
262
254
|
localShell: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{
|
|
263
255
|
action: {
|
|
@@ -275,12 +267,8 @@ declare const openaiTools: {
|
|
|
275
267
|
* Web search allows models to access up-to-date information from the internet
|
|
276
268
|
* and provide answers with sourced citations.
|
|
277
269
|
*
|
|
278
|
-
* Must have name `web_search_preview`.
|
|
279
|
-
*
|
|
280
270
|
* @param searchContextSize - The search context size to use for the web search.
|
|
281
271
|
* @param userLocation - The user location to use for the web search.
|
|
282
|
-
*
|
|
283
|
-
* @deprecated Use `webSearch` instead.
|
|
284
272
|
*/
|
|
285
273
|
webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{}, {
|
|
286
274
|
action: {
|
|
@@ -308,8 +296,6 @@ declare const openaiTools: {
|
|
|
308
296
|
* Web search allows models to access up-to-date information from the internet
|
|
309
297
|
* and provide answers with sourced citations.
|
|
310
298
|
*
|
|
311
|
-
* Must have name `web_search`.
|
|
312
|
-
*
|
|
313
299
|
* @param filters - The filters to use for the web search.
|
|
314
300
|
* @param searchContextSize - The search context size to use for the web search.
|
|
315
301
|
* @param userLocation - The user location to use for the web search.
|
|
@@ -338,8 +324,6 @@ declare const openaiTools: {
|
|
|
338
324
|
* MCP (Model Context Protocol) allows models to call tools exposed by
|
|
339
325
|
* remote MCP servers or service connectors.
|
|
340
326
|
*
|
|
341
|
-
* Must have name `mcp`.
|
|
342
|
-
*
|
|
343
327
|
* @param serverLabel - Label to identify the MCP server.
|
|
344
328
|
* @param allowedTools - Allowed tool names or filter object.
|
|
345
329
|
* @param authorization - OAuth access token for the MCP server/connector.
|
package/dist/index.d.ts
CHANGED
|
@@ -167,8 +167,6 @@ declare const openaiTools: {
|
|
|
167
167
|
* coding, and math.
|
|
168
168
|
*
|
|
169
169
|
* @param container - The container to use for the code interpreter.
|
|
170
|
-
*
|
|
171
|
-
* Must have name `code_interpreter`.
|
|
172
170
|
*/
|
|
173
171
|
codeInterpreter: (args?: {
|
|
174
172
|
container?: string | {
|
|
@@ -191,8 +189,6 @@ declare const openaiTools: {
|
|
|
191
189
|
* retrieve information in a knowledge base of previously uploaded files through
|
|
192
190
|
* semantic and keyword search.
|
|
193
191
|
*
|
|
194
|
-
* Must have name `file_search`.
|
|
195
|
-
*
|
|
196
192
|
* @param vectorStoreIds - The vector store IDs to use for the file search.
|
|
197
193
|
* @param maxNumResults - The maximum number of results to return.
|
|
198
194
|
* @param ranking - The ranking options to use for the file search.
|
|
@@ -221,8 +217,6 @@ declare const openaiTools: {
|
|
|
221
217
|
* and optionally image inputs. It leverages the GPT Image model,
|
|
222
218
|
* and automatically optimizes text inputs for improved performance.
|
|
223
219
|
*
|
|
224
|
-
* Must have name `image_generation`.
|
|
225
|
-
*
|
|
226
220
|
* @param background - Background type for the generated image. One of 'auto', 'opaque', or 'transparent'.
|
|
227
221
|
* @param inputFidelity - Input fidelity for the generated image. One of 'low' or 'high'.
|
|
228
222
|
* @param inputImageMask - Optional mask for inpainting. Contains fileId and/or imageUrl.
|
|
@@ -256,8 +250,6 @@ declare const openaiTools: {
|
|
|
256
250
|
* on a machine you or the user provides.
|
|
257
251
|
*
|
|
258
252
|
* Supported models: `gpt-5-codex` and `codex-mini-latest`
|
|
259
|
-
*
|
|
260
|
-
* Must have name `local_shell`.
|
|
261
253
|
*/
|
|
262
254
|
localShell: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{
|
|
263
255
|
action: {
|
|
@@ -275,12 +267,8 @@ declare const openaiTools: {
|
|
|
275
267
|
* Web search allows models to access up-to-date information from the internet
|
|
276
268
|
* and provide answers with sourced citations.
|
|
277
269
|
*
|
|
278
|
-
* Must have name `web_search_preview`.
|
|
279
|
-
*
|
|
280
270
|
* @param searchContextSize - The search context size to use for the web search.
|
|
281
271
|
* @param userLocation - The user location to use for the web search.
|
|
282
|
-
*
|
|
283
|
-
* @deprecated Use `webSearch` instead.
|
|
284
272
|
*/
|
|
285
273
|
webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactoryWithOutputSchema<{}, {
|
|
286
274
|
action: {
|
|
@@ -308,8 +296,6 @@ declare const openaiTools: {
|
|
|
308
296
|
* Web search allows models to access up-to-date information from the internet
|
|
309
297
|
* and provide answers with sourced citations.
|
|
310
298
|
*
|
|
311
|
-
* Must have name `web_search`.
|
|
312
|
-
*
|
|
313
299
|
* @param filters - The filters to use for the web search.
|
|
314
300
|
* @param searchContextSize - The search context size to use for the web search.
|
|
315
301
|
* @param userLocation - The user location to use for the web search.
|
|
@@ -338,8 +324,6 @@ declare const openaiTools: {
|
|
|
338
324
|
* MCP (Model Context Protocol) allows models to call tools exposed by
|
|
339
325
|
* remote MCP servers or service connectors.
|
|
340
326
|
*
|
|
341
|
-
* Must have name `mcp`.
|
|
342
|
-
*
|
|
343
327
|
* @param serverLabel - Label to identify the MCP server.
|
|
344
328
|
* @param allowedTools - Allowed tool names or filter object.
|
|
345
329
|
* @param authorization - OAuth access token for the MCP server/connector.
|