@ai-sdk/provider-utils 5.0.0-beta.1 → 5.0.0-beta.11

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 CHANGED
@@ -1,5 +1,155 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.0-beta.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 6fd51c0: fix(provider): preserve error type prefix in getErrorMessage
8
+ - Updated dependencies [6fd51c0]
9
+ - @ai-sdk/provider@4.0.0-beta.7
10
+
11
+ ## 5.0.0-beta.10
12
+
13
+ ### Patch Changes
14
+
15
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
16
+ - Updated dependencies [c29a26f]
17
+ - @ai-sdk/provider@4.0.0-beta.6
18
+
19
+ ## 5.0.0-beta.9
20
+
21
+ ### Patch Changes
22
+
23
+ - 2e17091: fix(types): move shared tool set utility types into provider-utils
24
+
25
+ Moved `ToolSet`, `InferToolSetContext`, and `UnionToIntersection` into `@ai-sdk/provider-utils` and updated `ai` internals to import them directly from there. This keeps the shared tool typing utilities colocated with the core tool type definitions.
26
+
27
+ ## 5.0.0-beta.8
28
+
29
+ ### Major Changes
30
+
31
+ - 986c6fd: feat(ai): change type of experimental_context from unknown to generic
32
+ - 493295c: Remove the deprecated `ToolCallOptions` export.
33
+
34
+ Use `ToolExecutionOptions` instead.
35
+
36
+ ## 5.0.0-beta.7
37
+
38
+ ### Patch Changes
39
+
40
+ - 1f509d4: fix(ai): force template check on 'kind' param
41
+ - Updated dependencies [1f509d4]
42
+ - @ai-sdk/provider@4.0.0-beta.5
43
+
44
+ ## 5.0.0-beta.6
45
+
46
+ ### Patch Changes
47
+
48
+ - 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in `generateText` and `streamText`
49
+ - Updated dependencies [3887c70]
50
+ - @ai-sdk/provider@4.0.0-beta.4
51
+
52
+ ## 5.0.0-beta.5
53
+
54
+ ### Major Changes
55
+
56
+ - 776b617: feat(provider): adding new 'custom' content type
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [776b617]
61
+ - @ai-sdk/provider@4.0.0-beta.3
62
+
63
+ ## 5.0.0-beta.4
64
+
65
+ ### Major Changes
66
+
67
+ - 61753c3: ### `@ai-sdk/openai`: remove redundant `name` argument from `openai.tools.customTool()`
68
+
69
+ `openai.tools.customTool()` no longer accepts a `name` field. the tool name is now derived from the sdk tool key (the object key in the `tools` object).
70
+
71
+ migration: remove the `name` property from `customTool()` calls. the object key is now used as the tool name sent to the openai api.
72
+
73
+ before:
74
+
75
+ ```ts
76
+ tools: {
77
+ write_sql: openai.tools.customTool({
78
+ name: 'write_sql',
79
+ description: '...',
80
+ }),
81
+ }
82
+ ```
83
+
84
+ after:
85
+
86
+ ```ts
87
+ tools: {
88
+ write_sql: openai.tools.customTool({
89
+ description: '...',
90
+ }),
91
+ }
92
+ ```
93
+
94
+ ### `@ai-sdk/provider-utils`: `createToolNameMapping()` no longer accepts the `resolveProviderToolName` parameter
95
+
96
+ before: tool name can be set dynamically
97
+
98
+ ```ts
99
+ const toolNameMapping = createToolNameMapping({
100
+ tools,
101
+ providerToolNames: {
102
+ "openai.code_interpreter": "code_interpreter",
103
+ "openai.file_search": "file_search",
104
+ "openai.image_generation": "image_generation",
105
+ "openai.local_shell": "local_shell",
106
+ "openai.shell": "shell",
107
+ "openai.web_search": "web_search",
108
+ "openai.web_search_preview": "web_search_preview",
109
+ "openai.mcp": "mcp",
110
+ "openai.apply_patch": "apply_patch",
111
+ },
112
+ resolveProviderToolName: (tool) =>
113
+ tool.id === "openai.custom"
114
+ ? (tool.args as { name?: string }).name
115
+ : undefined,
116
+ });
117
+ ```
118
+
119
+ after: tool name is static based on `tools` keys
120
+
121
+ ```
122
+ const toolNameMapping = createToolNameMapping({
123
+ tools,
124
+ providerToolNames: {
125
+ 'openai.code_interpreter': 'code_interpreter',
126
+ 'openai.file_search': 'file_search',
127
+ 'openai.image_generation': 'image_generation',
128
+ 'openai.local_shell': 'local_shell',
129
+ 'openai.shell': 'shell',
130
+ 'openai.web_search': 'web_search',
131
+ 'openai.web_search_preview': 'web_search_preview',
132
+ 'openai.mcp': 'mcp',
133
+ 'openai.apply_patch': 'apply_patch',
134
+ }
135
+ });
136
+ ```
137
+
138
+ ## 5.0.0-beta.3
139
+
140
+ ### Patch Changes
141
+
142
+ - f7d4f01: feat(provider): add support for `reasoning-file` type for files that are part of reasoning
143
+ - Updated dependencies [f7d4f01]
144
+ - @ai-sdk/provider@4.0.0-beta.2
145
+
146
+ ## 5.0.0-beta.2
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [5c2a5a2]
151
+ - @ai-sdk/provider@4.0.0-beta.1
152
+
3
153
  ## 5.0.0-beta.1
4
154
 
5
155
  ### Patch Changes