@ai-sdk/openai 3.0.97 → 3.0.99

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,31 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.99
4
+
5
+ ### Patch Changes
6
+
7
+ - f40afcf: fix(openai): expand internal parallel tool call wrappers from the Responses API while preserving stateful continuation and streaming fallbacks
8
+
9
+ ## 3.0.98
10
+
11
+ ### Patch Changes
12
+
13
+ - 91880b9: fix(openai): support built-in and provider-defined tools in the Responses `allowedTools` option
14
+
15
+ `allowedTools` emitted every allow-list entry as `{ type: 'function', name }`, but OpenAI identifies
16
+ built-in tools by type. Allow-listing a declared provider-defined tool (web search, image generation,
17
+ MCP, custom, ...) therefore failed with `Tool choice '<name>' not found in 'tools' parameter`. Entries
18
+ are now derived from the declared tool, including the MCP server label and custom tool name.
19
+
20
+ Tools that OpenAI cannot allow-list (the tool search tool, deferred tools, and namespaced tools) are
21
+ dropped from the allow-list with a warning, and an error is thrown if that would leave the allow-list
22
+ empty rather than silently sending an unrestricted request.
23
+
24
+ Ambiguous names are now reported instead of resolved silently. A name that matches both a declared tool
25
+ and another tool's provider tool name resolves to the declared tool and warns; a provider tool name
26
+ shared by several tools in the same request (two MCP servers, for example) is dropped with a warning.
27
+ A name that matches no declared tool keeps its existing behavior and is now warned about.
28
+
3
29
  ## 3.0.97
4
30
 
5
31
  ### Patch Changes