ai 6.0.12 → 6.0.14

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.
@@ -147,6 +147,11 @@ type CallSettings = {
147
147
  */
148
148
  abortSignal?: AbortSignal;
149
149
  /**
150
+ Timeout in milliseconds. The call will be aborted if it takes longer
151
+ than the specified timeout. Can be used alongside abortSignal.
152
+ */
153
+ timeout?: number;
154
+ /**
150
155
  Additional HTTP headers to be sent with the request.
151
156
  Only applicable for HTTP-based providers.
152
157
  */
@@ -159,7 +164,7 @@ declare global {
159
164
  *
160
165
  * You can register model IDs in two ways:
161
166
  *
162
- * 1. Register baesd on Model IDs from a provider package:
167
+ * 1. Register based on Model IDs from a provider package:
163
168
  * @example
164
169
  * ```typescript
165
170
  * import { openai } from '@ai-sdk/openai';
@@ -147,6 +147,11 @@ type CallSettings = {
147
147
  */
148
148
  abortSignal?: AbortSignal;
149
149
  /**
150
+ Timeout in milliseconds. The call will be aborted if it takes longer
151
+ than the specified timeout. Can be used alongside abortSignal.
152
+ */
153
+ timeout?: number;
154
+ /**
150
155
  Additional HTTP headers to be sent with the request.
151
156
  Only applicable for HTTP-based providers.
152
157
  */
@@ -159,7 +164,7 @@ declare global {
159
164
  *
160
165
  * You can register model IDs in two ways:
161
166
  *
162
- * 1. Register baesd on Model IDs from a provider package:
167
+ * 1. Register based on Model IDs from a provider package:
163
168
  * @example
164
169
  * ```typescript
165
170
  * import { openai } from '@ai-sdk/openai';
@@ -153,7 +153,7 @@ var import_provider_utils2 = require("@ai-sdk/provider-utils");
153
153
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
154
154
 
155
155
  // src/version.ts
156
- var VERSION = true ? "6.0.12" : "0.0.0-test";
156
+ var VERSION = true ? "6.0.14" : "0.0.0-test";
157
157
 
158
158
  // src/util/download/download.ts
159
159
  var download = async ({ url }) => {
@@ -128,7 +128,7 @@ import {
128
128
  } from "@ai-sdk/provider-utils";
129
129
 
130
130
  // src/version.ts
131
- var VERSION = true ? "6.0.12" : "0.0.0-test";
131
+ var VERSION = true ? "6.0.14" : "0.0.0-test";
132
132
 
133
133
  // src/util/download/download.ts
134
134
  var download = async ({ url }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.12",
3
+ "version": "6.0.14",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,