ai 5.1.0-beta.11 → 5.1.0-beta.13
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 +12 -31
- package/dist/index.d.ts +12 -31
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 5.1.0-beta.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1c2a4c1: fix(ai): remove outdated jsdoc param descriptions
|
|
8
|
+
|
|
9
|
+
## 5.1.0-beta.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [c823faf]
|
|
14
|
+
- @ai-sdk/gateway@1.1.0-beta.8
|
|
15
|
+
|
|
3
16
|
## 5.1.0-beta.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2072,47 +2072,28 @@ interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT> {
|
|
|
2072
2072
|
*/
|
|
2073
2073
|
consumeStream(options?: ConsumeStreamOptions): Promise<void>;
|
|
2074
2074
|
/**
|
|
2075
|
-
|
|
2075
|
+
Converts the result to a UI message stream.
|
|
2076
2076
|
|
|
2077
|
-
|
|
2078
|
-
@param options.sendUsage whether to send the usage information to the client. Defaults to true.
|
|
2079
|
-
@param options.sendReasoning whether to send the reasoning information to the client. Defaults to false.
|
|
2080
|
-
@param options.sendSources whether to send the sources information to the client. Defaults to false.
|
|
2081
|
-
@param options.experimental_sendFinish whether to send the finish information to the client. Defaults to true.
|
|
2082
|
-
@param options.experimental_sendStart whether to send the start information to the client. Defaults to true.
|
|
2083
|
-
|
|
2084
|
-
@return A UI message stream.
|
|
2077
|
+
@return A UI message stream.
|
|
2085
2078
|
*/
|
|
2086
2079
|
toUIMessageStream<UI_MESSAGE extends UIMessage>(options?: UIMessageStreamOptions<UI_MESSAGE>): AsyncIterableStream<InferUIMessageChunk<UI_MESSAGE>>;
|
|
2087
2080
|
/**
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
@param options.status The status code.
|
|
2091
|
-
@param options.statusText The status text.
|
|
2092
|
-
@param options.headers The headers.
|
|
2093
|
-
@param options.getErrorMessage An optional function that converts an error to an error message.
|
|
2094
|
-
@param options.sendUsage Whether to send the usage information to the client. Defaults to true.
|
|
2095
|
-
@param options.sendReasoning Whether to send the reasoning information to the client. Defaults to false.
|
|
2096
|
-
*/
|
|
2081
|
+
*Writes UI message stream output to a Node.js response-like object.
|
|
2082
|
+
*/
|
|
2097
2083
|
pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): void;
|
|
2098
2084
|
/**
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2085
|
+
Writes text delta output to a Node.js response-like object.
|
|
2086
|
+
It sets a `Content-Type` header to `text/plain; charset=utf-8` and
|
|
2087
|
+
writes each text delta as a separate chunk.
|
|
2088
|
+
|
|
2089
|
+
@param response A Node.js response-like object (ServerResponse).
|
|
2090
|
+
@param init Optional headers, status code, and status text.
|
|
2104
2091
|
*/
|
|
2105
2092
|
pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): void;
|
|
2106
2093
|
/**
|
|
2107
|
-
|
|
2094
|
+
Converts the result to a streamed response object with a stream data part stream.
|
|
2108
2095
|
|
|
2109
|
-
|
|
2110
|
-
@param options.statusText The status text.
|
|
2111
|
-
@param options.headers The headers.
|
|
2112
|
-
@param options.getErrorMessage An optional function that converts an error to an error message.
|
|
2113
|
-
@param options.sendUsage Whether to send the usage information to the client. Defaults to true.
|
|
2114
|
-
@param options.sendReasoning Whether to send the reasoning information to the client. Defaults to false.
|
|
2115
|
-
@return A response object.
|
|
2096
|
+
@return A response object.
|
|
2116
2097
|
*/
|
|
2117
2098
|
toUIMessageStreamResponse<UI_MESSAGE extends UIMessage>(options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): Response;
|
|
2118
2099
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2072,47 +2072,28 @@ interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT> {
|
|
|
2072
2072
|
*/
|
|
2073
2073
|
consumeStream(options?: ConsumeStreamOptions): Promise<void>;
|
|
2074
2074
|
/**
|
|
2075
|
-
|
|
2075
|
+
Converts the result to a UI message stream.
|
|
2076
2076
|
|
|
2077
|
-
|
|
2078
|
-
@param options.sendUsage whether to send the usage information to the client. Defaults to true.
|
|
2079
|
-
@param options.sendReasoning whether to send the reasoning information to the client. Defaults to false.
|
|
2080
|
-
@param options.sendSources whether to send the sources information to the client. Defaults to false.
|
|
2081
|
-
@param options.experimental_sendFinish whether to send the finish information to the client. Defaults to true.
|
|
2082
|
-
@param options.experimental_sendStart whether to send the start information to the client. Defaults to true.
|
|
2083
|
-
|
|
2084
|
-
@return A UI message stream.
|
|
2077
|
+
@return A UI message stream.
|
|
2085
2078
|
*/
|
|
2086
2079
|
toUIMessageStream<UI_MESSAGE extends UIMessage>(options?: UIMessageStreamOptions<UI_MESSAGE>): AsyncIterableStream<InferUIMessageChunk<UI_MESSAGE>>;
|
|
2087
2080
|
/**
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
@param options.status The status code.
|
|
2091
|
-
@param options.statusText The status text.
|
|
2092
|
-
@param options.headers The headers.
|
|
2093
|
-
@param options.getErrorMessage An optional function that converts an error to an error message.
|
|
2094
|
-
@param options.sendUsage Whether to send the usage information to the client. Defaults to true.
|
|
2095
|
-
@param options.sendReasoning Whether to send the reasoning information to the client. Defaults to false.
|
|
2096
|
-
*/
|
|
2081
|
+
*Writes UI message stream output to a Node.js response-like object.
|
|
2082
|
+
*/
|
|
2097
2083
|
pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): void;
|
|
2098
2084
|
/**
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2085
|
+
Writes text delta output to a Node.js response-like object.
|
|
2086
|
+
It sets a `Content-Type` header to `text/plain; charset=utf-8` and
|
|
2087
|
+
writes each text delta as a separate chunk.
|
|
2088
|
+
|
|
2089
|
+
@param response A Node.js response-like object (ServerResponse).
|
|
2090
|
+
@param init Optional headers, status code, and status text.
|
|
2104
2091
|
*/
|
|
2105
2092
|
pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): void;
|
|
2106
2093
|
/**
|
|
2107
|
-
|
|
2094
|
+
Converts the result to a streamed response object with a stream data part stream.
|
|
2108
2095
|
|
|
2109
|
-
|
|
2110
|
-
@param options.statusText The status text.
|
|
2111
|
-
@param options.headers The headers.
|
|
2112
|
-
@param options.getErrorMessage An optional function that converts an error to an error message.
|
|
2113
|
-
@param options.sendUsage Whether to send the usage information to the client. Defaults to true.
|
|
2114
|
-
@param options.sendReasoning Whether to send the reasoning information to the client. Defaults to false.
|
|
2115
|
-
@return A response object.
|
|
2096
|
+
@return A response object.
|
|
2116
2097
|
*/
|
|
2117
2098
|
toUIMessageStreamResponse<UI_MESSAGE extends UIMessage>(options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): Response;
|
|
2118
2099
|
/**
|
package/dist/index.js
CHANGED
|
@@ -768,7 +768,7 @@ function detectMediaType({
|
|
|
768
768
|
var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
769
769
|
|
|
770
770
|
// src/version.ts
|
|
771
|
-
var VERSION = true ? "5.1.0-beta.
|
|
771
|
+
var VERSION = true ? "5.1.0-beta.13" : "0.0.0-test";
|
|
772
772
|
|
|
773
773
|
// src/util/download/download.ts
|
|
774
774
|
var download = async ({ url }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -679,7 +679,7 @@ import {
|
|
|
679
679
|
} from "@ai-sdk/provider-utils";
|
|
680
680
|
|
|
681
681
|
// src/version.ts
|
|
682
|
-
var VERSION = true ? "5.1.0-beta.
|
|
682
|
+
var VERSION = true ? "5.1.0-beta.13" : "0.0.0-test";
|
|
683
683
|
|
|
684
684
|
// src/util/download/download.ts
|
|
685
685
|
var download = async ({ url }) => {
|
package/dist/internal/index.js
CHANGED
|
@@ -177,7 +177,7 @@ _a = symbol;
|
|
|
177
177
|
var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
178
178
|
|
|
179
179
|
// src/version.ts
|
|
180
|
-
var VERSION = true ? "5.1.0-beta.
|
|
180
|
+
var VERSION = true ? "5.1.0-beta.13" : "0.0.0-test";
|
|
181
181
|
|
|
182
182
|
// src/util/download/download.ts
|
|
183
183
|
var download = async ({ url }) => {
|
package/dist/internal/index.mjs
CHANGED
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
} from "@ai-sdk/provider-utils";
|
|
154
154
|
|
|
155
155
|
// src/version.ts
|
|
156
|
-
var VERSION = true ? "5.1.0-beta.
|
|
156
|
+
var VERSION = true ? "5.1.0-beta.13" : "0.0.0-test";
|
|
157
157
|
|
|
158
158
|
// src/util/download/download.ts
|
|
159
159
|
var download = async ({ url }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai",
|
|
3
|
-
"version": "5.1.0-beta.
|
|
3
|
+
"version": "5.1.0-beta.13",
|
|
4
4
|
"description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@opentelemetry/api": "1.9.0",
|
|
45
45
|
"@ai-sdk/test-server": "1.0.0-beta.0",
|
|
46
|
-
"@ai-sdk/gateway": "1.1.0-beta.
|
|
46
|
+
"@ai-sdk/gateway": "1.1.0-beta.8",
|
|
47
47
|
"@ai-sdk/provider": "2.1.0-beta.2",
|
|
48
48
|
"@ai-sdk/provider-utils": "3.1.0-beta.4"
|
|
49
49
|
},
|