@ai-sdk/provider 3.0.18 → 3.0.19
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,11 @@
|
|
|
1
1
|
# @ai-sdk/provider
|
|
2
2
|
|
|
3
|
+
## 3.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 739e9f6: Restore raw OpenAI custom-tool input deltas for consumers that forward them to Responses API clients. Mark streamed input with `inputEncoding: 'text'` so UI clients can display it progressively without JSON parsing. Preserve the encoding when partial UI messages are saved and resumed. Final provider tool-call inputs remain JSON-encoded.
|
|
8
|
+
|
|
3
9
|
## 3.0.18
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1702,8 +1702,9 @@ type LanguageModelV3ToolCall = {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
toolName: string;
|
|
1704
1704
|
/**
|
|
1705
|
-
*
|
|
1706
|
-
*
|
|
1705
|
+
* JSON-encoded tool input. Must match the input schema of the tool.
|
|
1706
|
+
* String inputs must also be JSON-encoded, even when input deltas use text
|
|
1707
|
+
* encoding.
|
|
1707
1708
|
*/
|
|
1708
1709
|
input: string;
|
|
1709
1710
|
/**
|
|
@@ -1939,6 +1940,12 @@ type LanguageModelV3StreamPart = {
|
|
|
1939
1940
|
type: 'tool-input-start';
|
|
1940
1941
|
id: string;
|
|
1941
1942
|
toolName: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Encoding of the input deltas. Defaults to JSON when omitted.
|
|
1945
|
+
* Text deltas concatenate to a raw string. The final tool-call input
|
|
1946
|
+
* must still be JSON-encoded, regardless of the delta encoding.
|
|
1947
|
+
*/
|
|
1948
|
+
inputEncoding?: 'json' | 'text';
|
|
1942
1949
|
providerMetadata?: SharedV3ProviderMetadata;
|
|
1943
1950
|
providerExecuted?: boolean;
|
|
1944
1951
|
dynamic?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1702,8 +1702,9 @@ type LanguageModelV3ToolCall = {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
toolName: string;
|
|
1704
1704
|
/**
|
|
1705
|
-
*
|
|
1706
|
-
*
|
|
1705
|
+
* JSON-encoded tool input. Must match the input schema of the tool.
|
|
1706
|
+
* String inputs must also be JSON-encoded, even when input deltas use text
|
|
1707
|
+
* encoding.
|
|
1707
1708
|
*/
|
|
1708
1709
|
input: string;
|
|
1709
1710
|
/**
|
|
@@ -1939,6 +1940,12 @@ type LanguageModelV3StreamPart = {
|
|
|
1939
1940
|
type: 'tool-input-start';
|
|
1940
1941
|
id: string;
|
|
1941
1942
|
toolName: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Encoding of the input deltas. Defaults to JSON when omitted.
|
|
1945
|
+
* Text deltas concatenate to a raw string. The final tool-call input
|
|
1946
|
+
* must still be JSON-encoded, regardless of the delta encoding.
|
|
1947
|
+
*/
|
|
1948
|
+
inputEncoding?: 'json' | 'text';
|
|
1942
1949
|
providerMetadata?: SharedV3ProviderMetadata;
|
|
1943
1950
|
providerExecuted?: boolean;
|
|
1944
1951
|
dynamic?: boolean;
|
package/package.json
CHANGED
|
@@ -51,6 +51,12 @@ export type LanguageModelV3StreamPart =
|
|
|
51
51
|
type: 'tool-input-start';
|
|
52
52
|
id: string;
|
|
53
53
|
toolName: string;
|
|
54
|
+
/**
|
|
55
|
+
* Encoding of the input deltas. Defaults to JSON when omitted.
|
|
56
|
+
* Text deltas concatenate to a raw string. The final tool-call input
|
|
57
|
+
* must still be JSON-encoded, regardless of the delta encoding.
|
|
58
|
+
*/
|
|
59
|
+
inputEncoding?: 'json' | 'text';
|
|
54
60
|
providerMetadata?: SharedV3ProviderMetadata;
|
|
55
61
|
providerExecuted?: boolean;
|
|
56
62
|
dynamic?: boolean;
|
|
@@ -17,8 +17,9 @@ export type LanguageModelV3ToolCall = {
|
|
|
17
17
|
toolName: string;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* JSON-encoded tool input. Must match the input schema of the tool.
|
|
21
|
+
* String inputs must also be JSON-encoded, even when input deltas use text
|
|
22
|
+
* encoding.
|
|
22
23
|
*/
|
|
23
24
|
input: string;
|
|
24
25
|
|