@ai-sdk/gateway 4.0.57 → 4.0.60
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 +19 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gateway-image-model-settings.ts +0 -3
- package/src/gateway-language-model-settings.ts +1 -2
- package/src/gateway-speech-model-settings.ts +3 -0
- package/src/gateway-transcription-model-settings.ts +1 -0
- package/src/gateway-video-model.ts +17 -9
package/package.json
CHANGED
|
@@ -13,9 +13,6 @@ export type GatewayImageModelId =
|
|
|
13
13
|
| 'bytedance/seedream-4.5'
|
|
14
14
|
| 'bytedance/seedream-5.0-lite'
|
|
15
15
|
| 'bytedance/seedream-5.0-pro'
|
|
16
|
-
| 'google/imagen-4.0-fast-generate-001'
|
|
17
|
-
| 'google/imagen-4.0-generate-001'
|
|
18
|
-
| 'google/imagen-4.0-ultra-generate-001'
|
|
19
16
|
| 'openai/gpt-image-1'
|
|
20
17
|
| 'openai/gpt-image-1-mini'
|
|
21
18
|
| 'openai/gpt-image-1.5'
|
|
@@ -59,6 +59,7 @@ export type GatewayModelId =
|
|
|
59
59
|
| 'deepseek/deepseek-v3.2-thinking'
|
|
60
60
|
| 'deepseek/deepseek-v4-flash'
|
|
61
61
|
| 'deepseek/deepseek-v4-flash-0731'
|
|
62
|
+
| 'deepseek/deepseek-v4-flash-vision-exp'
|
|
62
63
|
| 'deepseek/deepseek-v4-pro'
|
|
63
64
|
| 'deepseek/deepseek-v4-pro-0813'
|
|
64
65
|
| 'google/gemini-2.5-flash'
|
|
@@ -221,8 +222,6 @@ export type GatewayModelId =
|
|
|
221
222
|
| 'zai/glm-4.5-air'
|
|
222
223
|
| 'zai/glm-4.5v'
|
|
223
224
|
| 'zai/glm-4.6'
|
|
224
|
-
| 'zai/glm-4.6v'
|
|
225
|
-
| 'zai/glm-4.6v-flash'
|
|
226
225
|
| 'zai/glm-4.7'
|
|
227
226
|
| 'zai/glm-4.7-flash'
|
|
228
227
|
| 'zai/glm-4.7-flashx'
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
type Experimental_VideoModelV4File as VideoModelV4File,
|
|
7
7
|
type Experimental_VideoModelV4OperationStartResult as VideoModelV4OperationStartResult,
|
|
8
8
|
type Experimental_VideoModelV4OperationStatusResult as VideoModelV4OperationStatusResult,
|
|
9
|
+
type Experimental_VideoModelV4OperationWebhook as VideoModelV4OperationWebhook,
|
|
9
10
|
type Experimental_VideoModelV4VideoData as VideoModelV4VideoData,
|
|
10
11
|
type JSONValue,
|
|
11
12
|
type SharedV4ProviderMetadata,
|
|
@@ -171,15 +172,22 @@ export class GatewayVideoModel implements VideoModelV4 {
|
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
//
|
|
175
|
-
//
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
// The Gateway notifies the caller's URL on completion (`doStart` maps it to
|
|
176
|
+
// `callbackUrl`), so the factory's URL and `received` pass straight through.
|
|
177
|
+
async handleWebhookOption({
|
|
178
|
+
webhook,
|
|
179
|
+
}: {
|
|
180
|
+
webhook: () => PromiseLike<{
|
|
181
|
+
url: string;
|
|
182
|
+
received: PromiseLike<VideoModelV4OperationWebhook>;
|
|
183
|
+
}>;
|
|
184
|
+
}): Promise<{
|
|
185
|
+
webhookUrl: string;
|
|
186
|
+
received: PromiseLike<VideoModelV4OperationWebhook>;
|
|
187
|
+
}> {
|
|
188
|
+
const { url, received } = await webhook();
|
|
189
|
+
return { webhookUrl: url, received };
|
|
190
|
+
}
|
|
183
191
|
|
|
184
192
|
async doStart(
|
|
185
193
|
options: VideoModelV4CallOptions & {
|