@ai-sdk/gateway 4.0.14 → 4.0.16
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 -2
- package/dist/index.js +444 -427
- package/dist/index.js.map +1 -1
- package/docs/00-ai-gateway.mdx +1 -1
- package/package.json +5 -5
- package/src/errors/create-gateway-error.ts +12 -2
- package/src/errors/gateway-forbidden-error.ts +14 -0
- package/src/gateway-language-model-settings.ts +6 -0
- package/src/tool/exa-search.ts +2 -2
- package/src/tool/parallel-search.ts +1 -1
- package/src/tool/perplexity-search.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
withoutTrailingSlash,
|
|
62
62
|
withUserAgentSuffix
|
|
63
63
|
} from "@ai-sdk/provider-utils";
|
|
64
|
-
import { z as
|
|
64
|
+
import { z as z18 } from "zod/v4";
|
|
65
65
|
|
|
66
66
|
// src/errors/as-gateway-error.ts
|
|
67
67
|
import { APICallError } from "@ai-sdk/provider";
|
|
68
68
|
|
|
69
69
|
// src/errors/create-gateway-error.ts
|
|
70
|
-
import { z as
|
|
70
|
+
import { z as z3 } from "zod/v4";
|
|
71
71
|
|
|
72
72
|
// src/errors/gateway-error.ts
|
|
73
73
|
var marker = "vercel.ai.gateway.error";
|
|
@@ -299,22 +299,33 @@ var GatewayFailedDependencyError = class extends (_b7 = GatewayError, _a7 = symb
|
|
|
299
299
|
};
|
|
300
300
|
|
|
301
301
|
// src/errors/gateway-forbidden-error.ts
|
|
302
|
+
import { z as z2 } from "zod/v4";
|
|
303
|
+
import { lazySchema as lazySchema2, zodSchema as zodSchema2 } from "@ai-sdk/provider-utils";
|
|
302
304
|
var name7 = "GatewayForbiddenError";
|
|
303
305
|
var marker8 = `vercel.ai.gateway.error.${name7}`;
|
|
304
306
|
var symbol8 = Symbol.for(marker8);
|
|
307
|
+
var forbiddenParamSchema = lazySchema2(
|
|
308
|
+
() => zodSchema2(
|
|
309
|
+
z2.object({
|
|
310
|
+
ruleId: z2.string()
|
|
311
|
+
})
|
|
312
|
+
)
|
|
313
|
+
);
|
|
305
314
|
var _a8, _b8;
|
|
306
315
|
var GatewayForbiddenError = class extends (_b8 = GatewayError, _a8 = symbol8, _b8) {
|
|
307
316
|
constructor({
|
|
308
317
|
message = "Forbidden",
|
|
309
318
|
statusCode = 403,
|
|
310
319
|
cause,
|
|
311
|
-
generationId
|
|
320
|
+
generationId,
|
|
321
|
+
ruleId
|
|
312
322
|
} = {}) {
|
|
313
323
|
super({ message, statusCode, cause, generationId });
|
|
314
324
|
this[_a8] = true;
|
|
315
325
|
// used in isInstance
|
|
316
326
|
this.name = name7;
|
|
317
327
|
this.type = "forbidden";
|
|
328
|
+
this.ruleId = ruleId;
|
|
318
329
|
}
|
|
319
330
|
static isInstance(error) {
|
|
320
331
|
return GatewayError.hasMarker(error) && symbol8 in error;
|
|
@@ -350,9 +361,9 @@ var GatewayResponseError = class extends (_b9 = GatewayError, _a9 = symbol9, _b9
|
|
|
350
361
|
|
|
351
362
|
// src/errors/create-gateway-error.ts
|
|
352
363
|
import {
|
|
353
|
-
lazySchema as
|
|
364
|
+
lazySchema as lazySchema3,
|
|
354
365
|
safeValidateTypes,
|
|
355
|
-
zodSchema as
|
|
366
|
+
zodSchema as zodSchema3
|
|
356
367
|
} from "@ai-sdk/provider-utils";
|
|
357
368
|
async function createGatewayErrorFromResponse({
|
|
358
369
|
response,
|
|
@@ -431,13 +442,19 @@ async function createGatewayErrorFromResponse({
|
|
|
431
442
|
cause,
|
|
432
443
|
generationId
|
|
433
444
|
});
|
|
434
|
-
case "forbidden":
|
|
445
|
+
case "forbidden": {
|
|
446
|
+
const ruleResult = await safeValidateTypes({
|
|
447
|
+
value: validatedResponse.error.param,
|
|
448
|
+
schema: forbiddenParamSchema
|
|
449
|
+
});
|
|
435
450
|
return new GatewayForbiddenError({
|
|
436
451
|
message,
|
|
437
452
|
statusCode,
|
|
438
453
|
cause,
|
|
439
|
-
generationId
|
|
454
|
+
generationId,
|
|
455
|
+
ruleId: ruleResult.success ? ruleResult.value.ruleId : void 0
|
|
440
456
|
});
|
|
457
|
+
}
|
|
441
458
|
default:
|
|
442
459
|
return new GatewayInternalServerError({
|
|
443
460
|
message,
|
|
@@ -447,16 +464,16 @@ async function createGatewayErrorFromResponse({
|
|
|
447
464
|
});
|
|
448
465
|
}
|
|
449
466
|
}
|
|
450
|
-
var gatewayErrorResponseSchema =
|
|
451
|
-
() =>
|
|
452
|
-
|
|
453
|
-
error:
|
|
454
|
-
message:
|
|
455
|
-
type:
|
|
456
|
-
param:
|
|
457
|
-
code:
|
|
467
|
+
var gatewayErrorResponseSchema = lazySchema3(
|
|
468
|
+
() => zodSchema3(
|
|
469
|
+
z3.object({
|
|
470
|
+
error: z3.object({
|
|
471
|
+
message: z3.string(),
|
|
472
|
+
type: z3.string().nullish(),
|
|
473
|
+
param: z3.unknown().nullish(),
|
|
474
|
+
code: z3.union([z3.string(), z3.number()]).nullish()
|
|
458
475
|
}),
|
|
459
|
-
generationId:
|
|
476
|
+
generationId: z3.string().nullish()
|
|
460
477
|
})
|
|
461
478
|
)
|
|
462
479
|
);
|
|
@@ -575,11 +592,11 @@ var GATEWAY_AUTH_METHOD_HEADER = "ai-gateway-auth-method";
|
|
|
575
592
|
var VERCEL_AI_GATEWAY_TEAM_HEADER = "x-vercel-ai-gateway-team";
|
|
576
593
|
|
|
577
594
|
// src/errors/parse-auth-method.ts
|
|
578
|
-
import { z as
|
|
595
|
+
import { z as z4 } from "zod/v4";
|
|
579
596
|
import {
|
|
580
|
-
lazySchema as
|
|
597
|
+
lazySchema as lazySchema4,
|
|
581
598
|
safeValidateTypes as safeValidateTypes2,
|
|
582
|
-
zodSchema as
|
|
599
|
+
zodSchema as zodSchema4
|
|
583
600
|
} from "@ai-sdk/provider-utils";
|
|
584
601
|
async function parseAuthMethod(headers) {
|
|
585
602
|
const result = await safeValidateTypes2({
|
|
@@ -588,8 +605,8 @@ async function parseAuthMethod(headers) {
|
|
|
588
605
|
});
|
|
589
606
|
return result.success ? result.value : void 0;
|
|
590
607
|
}
|
|
591
|
-
var gatewayAuthMethodSchema =
|
|
592
|
-
() =>
|
|
608
|
+
var gatewayAuthMethodSchema = lazySchema4(
|
|
609
|
+
() => zodSchema4(z4.union([z4.literal("api-key"), z4.literal("oidc")]))
|
|
593
610
|
);
|
|
594
611
|
|
|
595
612
|
// src/gateway-fetch-metadata.ts
|
|
@@ -597,11 +614,11 @@ import {
|
|
|
597
614
|
createJsonErrorResponseHandler,
|
|
598
615
|
createJsonResponseHandler,
|
|
599
616
|
getFromApi,
|
|
600
|
-
lazySchema as
|
|
617
|
+
lazySchema as lazySchema5,
|
|
601
618
|
resolve,
|
|
602
|
-
zodSchema as
|
|
619
|
+
zodSchema as zodSchema5
|
|
603
620
|
} from "@ai-sdk/provider-utils";
|
|
604
|
-
import { z as
|
|
621
|
+
import { z as z5 } from "zod/v4";
|
|
605
622
|
|
|
606
623
|
// src/gateway-model-entry.ts
|
|
607
624
|
var KNOWN_MODEL_TYPES = [
|
|
@@ -629,7 +646,7 @@ var GatewayFetchMetadata = class {
|
|
|
629
646
|
gatewayAvailableModelsResponseSchema
|
|
630
647
|
),
|
|
631
648
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
632
|
-
errorSchema:
|
|
649
|
+
errorSchema: z5.any(),
|
|
633
650
|
errorToMessage: (data) => data
|
|
634
651
|
}),
|
|
635
652
|
fetch: this.config.fetch
|
|
@@ -649,7 +666,7 @@ var GatewayFetchMetadata = class {
|
|
|
649
666
|
gatewayCreditsResponseSchema
|
|
650
667
|
),
|
|
651
668
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
652
|
-
errorSchema:
|
|
669
|
+
errorSchema: z5.any(),
|
|
653
670
|
errorToMessage: (data) => data
|
|
654
671
|
}),
|
|
655
672
|
fetch: this.config.fetch
|
|
@@ -660,19 +677,19 @@ var GatewayFetchMetadata = class {
|
|
|
660
677
|
}
|
|
661
678
|
}
|
|
662
679
|
};
|
|
663
|
-
var gatewayAvailableModelsResponseSchema =
|
|
664
|
-
() =>
|
|
665
|
-
|
|
666
|
-
models:
|
|
667
|
-
|
|
668
|
-
id:
|
|
669
|
-
name:
|
|
670
|
-
description:
|
|
671
|
-
pricing:
|
|
672
|
-
input:
|
|
673
|
-
output:
|
|
674
|
-
input_cache_read:
|
|
675
|
-
input_cache_write:
|
|
680
|
+
var gatewayAvailableModelsResponseSchema = lazySchema5(
|
|
681
|
+
() => zodSchema5(
|
|
682
|
+
z5.object({
|
|
683
|
+
models: z5.array(
|
|
684
|
+
z5.object({
|
|
685
|
+
id: z5.string(),
|
|
686
|
+
name: z5.string(),
|
|
687
|
+
description: z5.string().nullish(),
|
|
688
|
+
pricing: z5.object({
|
|
689
|
+
input: z5.string(),
|
|
690
|
+
output: z5.string(),
|
|
691
|
+
input_cache_read: z5.string().nullish(),
|
|
692
|
+
input_cache_write: z5.string().nullish()
|
|
676
693
|
}).transform(
|
|
677
694
|
({ input, output, input_cache_read, input_cache_write }) => ({
|
|
678
695
|
input,
|
|
@@ -681,12 +698,12 @@ var gatewayAvailableModelsResponseSchema = lazySchema4(
|
|
|
681
698
|
...input_cache_write ? { cacheCreationInputTokens: input_cache_write } : {}
|
|
682
699
|
})
|
|
683
700
|
).nullish(),
|
|
684
|
-
specification:
|
|
685
|
-
specificationVersion:
|
|
686
|
-
provider:
|
|
687
|
-
modelId:
|
|
701
|
+
specification: z5.object({
|
|
702
|
+
specificationVersion: z5.literal("v4"),
|
|
703
|
+
provider: z5.string(),
|
|
704
|
+
modelId: z5.string()
|
|
688
705
|
}),
|
|
689
|
-
modelType:
|
|
706
|
+
modelType: z5.string().nullish()
|
|
690
707
|
})
|
|
691
708
|
).transform(
|
|
692
709
|
(models) => models.filter(
|
|
@@ -696,11 +713,11 @@ var gatewayAvailableModelsResponseSchema = lazySchema4(
|
|
|
696
713
|
})
|
|
697
714
|
)
|
|
698
715
|
);
|
|
699
|
-
var gatewayCreditsResponseSchema =
|
|
700
|
-
() =>
|
|
701
|
-
|
|
702
|
-
balance:
|
|
703
|
-
total_used:
|
|
716
|
+
var gatewayCreditsResponseSchema = lazySchema5(
|
|
717
|
+
() => zodSchema5(
|
|
718
|
+
z5.object({
|
|
719
|
+
balance: z5.string(),
|
|
720
|
+
total_used: z5.string()
|
|
704
721
|
}).transform(({ balance, total_used }) => ({
|
|
705
722
|
balance,
|
|
706
723
|
totalUsed: total_used
|
|
@@ -713,11 +730,11 @@ import {
|
|
|
713
730
|
createJsonErrorResponseHandler as createJsonErrorResponseHandler2,
|
|
714
731
|
createJsonResponseHandler as createJsonResponseHandler2,
|
|
715
732
|
getFromApi as getFromApi2,
|
|
716
|
-
lazySchema as
|
|
733
|
+
lazySchema as lazySchema6,
|
|
717
734
|
resolve as resolve2,
|
|
718
|
-
zodSchema as
|
|
735
|
+
zodSchema as zodSchema6
|
|
719
736
|
} from "@ai-sdk/provider-utils";
|
|
720
|
-
import { z as
|
|
737
|
+
import { z as z6 } from "zod/v4";
|
|
721
738
|
var GatewaySpendReport = class {
|
|
722
739
|
constructor(config) {
|
|
723
740
|
this.config = config;
|
|
@@ -756,7 +773,7 @@ var GatewaySpendReport = class {
|
|
|
756
773
|
gatewaySpendReportResponseSchema
|
|
757
774
|
),
|
|
758
775
|
failedResponseHandler: createJsonErrorResponseHandler2({
|
|
759
|
-
errorSchema:
|
|
776
|
+
errorSchema: z6.any(),
|
|
760
777
|
errorToMessage: (data) => data
|
|
761
778
|
}),
|
|
762
779
|
fetch: this.config.fetch
|
|
@@ -767,26 +784,26 @@ var GatewaySpendReport = class {
|
|
|
767
784
|
}
|
|
768
785
|
}
|
|
769
786
|
};
|
|
770
|
-
var gatewaySpendReportResponseSchema =
|
|
771
|
-
() =>
|
|
772
|
-
|
|
773
|
-
results:
|
|
774
|
-
|
|
775
|
-
day:
|
|
776
|
-
hour:
|
|
777
|
-
user:
|
|
778
|
-
model:
|
|
779
|
-
tag:
|
|
780
|
-
provider:
|
|
781
|
-
credential_type:
|
|
782
|
-
total_cost:
|
|
783
|
-
market_cost:
|
|
784
|
-
input_tokens:
|
|
785
|
-
output_tokens:
|
|
786
|
-
cached_input_tokens:
|
|
787
|
-
cache_creation_input_tokens:
|
|
788
|
-
reasoning_tokens:
|
|
789
|
-
request_count:
|
|
787
|
+
var gatewaySpendReportResponseSchema = lazySchema6(
|
|
788
|
+
() => zodSchema6(
|
|
789
|
+
z6.object({
|
|
790
|
+
results: z6.array(
|
|
791
|
+
z6.object({
|
|
792
|
+
day: z6.string().optional(),
|
|
793
|
+
hour: z6.string().optional(),
|
|
794
|
+
user: z6.string().optional(),
|
|
795
|
+
model: z6.string().optional(),
|
|
796
|
+
tag: z6.string().optional(),
|
|
797
|
+
provider: z6.string().optional(),
|
|
798
|
+
credential_type: z6.enum(["byok", "system"]).optional(),
|
|
799
|
+
total_cost: z6.number(),
|
|
800
|
+
market_cost: z6.number().optional(),
|
|
801
|
+
input_tokens: z6.number().optional(),
|
|
802
|
+
output_tokens: z6.number().optional(),
|
|
803
|
+
cached_input_tokens: z6.number().optional(),
|
|
804
|
+
cache_creation_input_tokens: z6.number().optional(),
|
|
805
|
+
reasoning_tokens: z6.number().optional(),
|
|
806
|
+
request_count: z6.number().optional()
|
|
790
807
|
}).transform(
|
|
791
808
|
({
|
|
792
809
|
credential_type,
|
|
@@ -822,11 +839,11 @@ import {
|
|
|
822
839
|
createJsonErrorResponseHandler as createJsonErrorResponseHandler3,
|
|
823
840
|
createJsonResponseHandler as createJsonResponseHandler3,
|
|
824
841
|
getFromApi as getFromApi3,
|
|
825
|
-
lazySchema as
|
|
842
|
+
lazySchema as lazySchema7,
|
|
826
843
|
resolve as resolve3,
|
|
827
|
-
zodSchema as
|
|
844
|
+
zodSchema as zodSchema7
|
|
828
845
|
} from "@ai-sdk/provider-utils";
|
|
829
|
-
import { z as
|
|
846
|
+
import { z as z7 } from "zod/v4";
|
|
830
847
|
var GatewayGenerationInfoFetcher = class {
|
|
831
848
|
constructor(config) {
|
|
832
849
|
this.config = config;
|
|
@@ -841,7 +858,7 @@ var GatewayGenerationInfoFetcher = class {
|
|
|
841
858
|
gatewayGenerationInfoResponseSchema
|
|
842
859
|
),
|
|
843
860
|
failedResponseHandler: createJsonErrorResponseHandler3({
|
|
844
|
-
errorSchema:
|
|
861
|
+
errorSchema: z7.any(),
|
|
845
862
|
errorToMessage: (data) => data
|
|
846
863
|
}),
|
|
847
864
|
fetch: this.config.fetch
|
|
@@ -852,28 +869,28 @@ var GatewayGenerationInfoFetcher = class {
|
|
|
852
869
|
}
|
|
853
870
|
}
|
|
854
871
|
};
|
|
855
|
-
var gatewayGenerationInfoResponseSchema =
|
|
856
|
-
() =>
|
|
857
|
-
|
|
858
|
-
data:
|
|
859
|
-
id:
|
|
860
|
-
total_cost:
|
|
861
|
-
upstream_inference_cost:
|
|
862
|
-
usage:
|
|
863
|
-
created_at:
|
|
864
|
-
model:
|
|
865
|
-
is_byok:
|
|
866
|
-
provider_name:
|
|
867
|
-
streamed:
|
|
868
|
-
finish_reason:
|
|
869
|
-
latency:
|
|
870
|
-
generation_time:
|
|
871
|
-
native_tokens_prompt:
|
|
872
|
-
native_tokens_completion:
|
|
873
|
-
native_tokens_reasoning:
|
|
874
|
-
native_tokens_cached:
|
|
875
|
-
native_tokens_cache_creation:
|
|
876
|
-
billable_web_search_calls:
|
|
872
|
+
var gatewayGenerationInfoResponseSchema = lazySchema7(
|
|
873
|
+
() => zodSchema7(
|
|
874
|
+
z7.object({
|
|
875
|
+
data: z7.object({
|
|
876
|
+
id: z7.string(),
|
|
877
|
+
total_cost: z7.number(),
|
|
878
|
+
upstream_inference_cost: z7.number(),
|
|
879
|
+
usage: z7.number(),
|
|
880
|
+
created_at: z7.string(),
|
|
881
|
+
model: z7.string(),
|
|
882
|
+
is_byok: z7.boolean(),
|
|
883
|
+
provider_name: z7.string(),
|
|
884
|
+
streamed: z7.boolean(),
|
|
885
|
+
finish_reason: z7.string(),
|
|
886
|
+
latency: z7.number(),
|
|
887
|
+
generation_time: z7.number(),
|
|
888
|
+
native_tokens_prompt: z7.number(),
|
|
889
|
+
native_tokens_completion: z7.number(),
|
|
890
|
+
native_tokens_reasoning: z7.number(),
|
|
891
|
+
native_tokens_cached: z7.number(),
|
|
892
|
+
native_tokens_cache_creation: z7.number(),
|
|
893
|
+
billable_web_search_calls: z7.number()
|
|
877
894
|
}).transform(
|
|
878
895
|
({
|
|
879
896
|
total_cost,
|
|
@@ -923,7 +940,7 @@ import {
|
|
|
923
940
|
WORKFLOW_SERIALIZE,
|
|
924
941
|
WORKFLOW_DESERIALIZE
|
|
925
942
|
} from "@ai-sdk/provider-utils";
|
|
926
|
-
import { z as
|
|
943
|
+
import { z as z8 } from "zod/v4";
|
|
927
944
|
var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
928
945
|
constructor(modelId, config) {
|
|
929
946
|
this.modelId = modelId;
|
|
@@ -968,9 +985,9 @@ var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
|
968
985
|
await resolve4(this.config.o11yHeaders)
|
|
969
986
|
),
|
|
970
987
|
body: args,
|
|
971
|
-
successfulResponseHandler: createJsonResponseHandler4(
|
|
988
|
+
successfulResponseHandler: createJsonResponseHandler4(z8.any()),
|
|
972
989
|
failedResponseHandler: createJsonErrorResponseHandler4({
|
|
973
|
-
errorSchema:
|
|
990
|
+
errorSchema: z8.any(),
|
|
974
991
|
errorToMessage: (data) => data
|
|
975
992
|
}),
|
|
976
993
|
...abortSignal && { abortSignal },
|
|
@@ -1003,9 +1020,9 @@ var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
|
1003
1020
|
await resolve4(this.config.o11yHeaders)
|
|
1004
1021
|
),
|
|
1005
1022
|
body: args,
|
|
1006
|
-
successfulResponseHandler: createEventSourceResponseHandler(
|
|
1023
|
+
successfulResponseHandler: createEventSourceResponseHandler(z8.any()),
|
|
1007
1024
|
failedResponseHandler: createJsonErrorResponseHandler4({
|
|
1008
|
-
errorSchema:
|
|
1025
|
+
errorSchema: z8.any(),
|
|
1009
1026
|
errorToMessage: (data) => data
|
|
1010
1027
|
}),
|
|
1011
1028
|
...abortSignal && { abortSignal },
|
|
@@ -1097,15 +1114,15 @@ import {
|
|
|
1097
1114
|
combineHeaders as combineHeaders2,
|
|
1098
1115
|
createJsonErrorResponseHandler as createJsonErrorResponseHandler5,
|
|
1099
1116
|
createJsonResponseHandler as createJsonResponseHandler5,
|
|
1100
|
-
lazySchema as
|
|
1117
|
+
lazySchema as lazySchema8,
|
|
1101
1118
|
postJsonToApi as postJsonToApi2,
|
|
1102
1119
|
resolve as resolve5,
|
|
1103
1120
|
serializeModelOptions as serializeModelOptions2,
|
|
1104
1121
|
WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE2,
|
|
1105
1122
|
WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE2,
|
|
1106
|
-
zodSchema as
|
|
1123
|
+
zodSchema as zodSchema8
|
|
1107
1124
|
} from "@ai-sdk/provider-utils";
|
|
1108
|
-
import { z as
|
|
1125
|
+
import { z as z9 } from "zod/v4";
|
|
1109
1126
|
var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
|
|
1110
1127
|
constructor(modelId, config) {
|
|
1111
1128
|
this.modelId = modelId;
|
|
@@ -1155,7 +1172,7 @@ var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
|
|
|
1155
1172
|
gatewayEmbeddingResponseSchema
|
|
1156
1173
|
),
|
|
1157
1174
|
failedResponseHandler: createJsonErrorResponseHandler5({
|
|
1158
|
-
errorSchema:
|
|
1175
|
+
errorSchema: z9.any(),
|
|
1159
1176
|
errorToMessage: (data) => data
|
|
1160
1177
|
}),
|
|
1161
1178
|
...abortSignal && { abortSignal },
|
|
@@ -1185,34 +1202,34 @@ var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
|
|
|
1185
1202
|
};
|
|
1186
1203
|
}
|
|
1187
1204
|
};
|
|
1188
|
-
var gatewayEmbeddingWarningSchema =
|
|
1189
|
-
|
|
1190
|
-
type:
|
|
1191
|
-
feature:
|
|
1192
|
-
details:
|
|
1205
|
+
var gatewayEmbeddingWarningSchema = z9.discriminatedUnion("type", [
|
|
1206
|
+
z9.object({
|
|
1207
|
+
type: z9.literal("unsupported"),
|
|
1208
|
+
feature: z9.string(),
|
|
1209
|
+
details: z9.string().optional()
|
|
1193
1210
|
}),
|
|
1194
|
-
|
|
1195
|
-
type:
|
|
1196
|
-
feature:
|
|
1197
|
-
details:
|
|
1211
|
+
z9.object({
|
|
1212
|
+
type: z9.literal("compatibility"),
|
|
1213
|
+
feature: z9.string(),
|
|
1214
|
+
details: z9.string().optional()
|
|
1198
1215
|
}),
|
|
1199
|
-
|
|
1200
|
-
type:
|
|
1201
|
-
setting:
|
|
1202
|
-
message:
|
|
1216
|
+
z9.object({
|
|
1217
|
+
type: z9.literal("deprecated"),
|
|
1218
|
+
setting: z9.string(),
|
|
1219
|
+
message: z9.string()
|
|
1203
1220
|
}),
|
|
1204
|
-
|
|
1205
|
-
type:
|
|
1206
|
-
message:
|
|
1221
|
+
z9.object({
|
|
1222
|
+
type: z9.literal("other"),
|
|
1223
|
+
message: z9.string()
|
|
1207
1224
|
})
|
|
1208
1225
|
]);
|
|
1209
|
-
var gatewayEmbeddingResponseSchema =
|
|
1210
|
-
() =>
|
|
1211
|
-
|
|
1212
|
-
embeddings:
|
|
1213
|
-
usage:
|
|
1214
|
-
warnings:
|
|
1215
|
-
providerMetadata:
|
|
1226
|
+
var gatewayEmbeddingResponseSchema = lazySchema8(
|
|
1227
|
+
() => zodSchema8(
|
|
1228
|
+
z9.object({
|
|
1229
|
+
embeddings: z9.array(z9.array(z9.number())),
|
|
1230
|
+
usage: z9.object({ tokens: z9.number() }).nullish(),
|
|
1231
|
+
warnings: z9.array(gatewayEmbeddingWarningSchema).optional(),
|
|
1232
|
+
providerMetadata: z9.record(z9.string(), z9.record(z9.string(), z9.unknown())).optional()
|
|
1216
1233
|
})
|
|
1217
1234
|
)
|
|
1218
1235
|
);
|
|
@@ -1229,7 +1246,7 @@ import {
|
|
|
1229
1246
|
WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE3,
|
|
1230
1247
|
WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE3
|
|
1231
1248
|
} from "@ai-sdk/provider-utils";
|
|
1232
|
-
import { z as
|
|
1249
|
+
import { z as z10 } from "zod/v4";
|
|
1233
1250
|
var GatewayImageModel = class _GatewayImageModel {
|
|
1234
1251
|
constructor(modelId, config) {
|
|
1235
1252
|
this.modelId = modelId;
|
|
@@ -1289,7 +1306,7 @@ var GatewayImageModel = class _GatewayImageModel {
|
|
|
1289
1306
|
gatewayImageResponseSchema
|
|
1290
1307
|
),
|
|
1291
1308
|
failedResponseHandler: createJsonErrorResponseHandler6({
|
|
1292
|
-
errorSchema:
|
|
1309
|
+
errorSchema: z10.any(),
|
|
1293
1310
|
errorToMessage: (data) => data
|
|
1294
1311
|
}),
|
|
1295
1312
|
...abortSignal && { abortSignal },
|
|
@@ -1339,40 +1356,40 @@ function maybeEncodeImageFile(file) {
|
|
|
1339
1356
|
}
|
|
1340
1357
|
return file;
|
|
1341
1358
|
}
|
|
1342
|
-
var providerMetadataEntrySchema =
|
|
1343
|
-
images:
|
|
1344
|
-
}).catchall(
|
|
1345
|
-
var gatewayImageWarningSchema =
|
|
1346
|
-
|
|
1347
|
-
type:
|
|
1348
|
-
feature:
|
|
1349
|
-
details:
|
|
1359
|
+
var providerMetadataEntrySchema = z10.object({
|
|
1360
|
+
images: z10.array(z10.unknown()).optional()
|
|
1361
|
+
}).catchall(z10.unknown());
|
|
1362
|
+
var gatewayImageWarningSchema = z10.discriminatedUnion("type", [
|
|
1363
|
+
z10.object({
|
|
1364
|
+
type: z10.literal("unsupported"),
|
|
1365
|
+
feature: z10.string(),
|
|
1366
|
+
details: z10.string().optional()
|
|
1350
1367
|
}),
|
|
1351
|
-
|
|
1352
|
-
type:
|
|
1353
|
-
feature:
|
|
1354
|
-
details:
|
|
1368
|
+
z10.object({
|
|
1369
|
+
type: z10.literal("compatibility"),
|
|
1370
|
+
feature: z10.string(),
|
|
1371
|
+
details: z10.string().optional()
|
|
1355
1372
|
}),
|
|
1356
|
-
|
|
1357
|
-
type:
|
|
1358
|
-
setting:
|
|
1359
|
-
message:
|
|
1373
|
+
z10.object({
|
|
1374
|
+
type: z10.literal("deprecated"),
|
|
1375
|
+
setting: z10.string(),
|
|
1376
|
+
message: z10.string()
|
|
1360
1377
|
}),
|
|
1361
|
-
|
|
1362
|
-
type:
|
|
1363
|
-
message:
|
|
1378
|
+
z10.object({
|
|
1379
|
+
type: z10.literal("other"),
|
|
1380
|
+
message: z10.string()
|
|
1364
1381
|
})
|
|
1365
1382
|
]);
|
|
1366
|
-
var gatewayImageUsageSchema =
|
|
1367
|
-
inputTokens:
|
|
1368
|
-
outputTokens:
|
|
1369
|
-
totalTokens:
|
|
1383
|
+
var gatewayImageUsageSchema = z10.object({
|
|
1384
|
+
inputTokens: z10.number().nullish(),
|
|
1385
|
+
outputTokens: z10.number().nullish(),
|
|
1386
|
+
totalTokens: z10.number().nullish()
|
|
1370
1387
|
});
|
|
1371
|
-
var gatewayImageResponseSchema =
|
|
1372
|
-
images:
|
|
1388
|
+
var gatewayImageResponseSchema = z10.object({
|
|
1389
|
+
images: z10.array(z10.string()),
|
|
1373
1390
|
// Always base64 strings over the wire
|
|
1374
|
-
warnings:
|
|
1375
|
-
providerMetadata:
|
|
1391
|
+
warnings: z10.array(gatewayImageWarningSchema).optional(),
|
|
1392
|
+
providerMetadata: z10.record(z10.string(), providerMetadataEntrySchema).optional(),
|
|
1376
1393
|
usage: gatewayImageUsageSchema.optional()
|
|
1377
1394
|
});
|
|
1378
1395
|
|
|
@@ -1388,7 +1405,7 @@ import {
|
|
|
1388
1405
|
postJsonToApi as postJsonToApi4,
|
|
1389
1406
|
resolve as resolve7
|
|
1390
1407
|
} from "@ai-sdk/provider-utils";
|
|
1391
|
-
import { z as
|
|
1408
|
+
import { z as z11 } from "zod/v4";
|
|
1392
1409
|
var GatewayVideoModel = class {
|
|
1393
1410
|
constructor(modelId, config) {
|
|
1394
1411
|
this.modelId = modelId;
|
|
@@ -1516,7 +1533,7 @@ var GatewayVideoModel = class {
|
|
|
1516
1533
|
};
|
|
1517
1534
|
},
|
|
1518
1535
|
failedResponseHandler: createJsonErrorResponseHandler7({
|
|
1519
|
-
errorSchema:
|
|
1536
|
+
errorSchema: z11.any(),
|
|
1520
1537
|
errorToMessage: (data) => data
|
|
1521
1538
|
}),
|
|
1522
1539
|
...abortSignal && { abortSignal },
|
|
@@ -1558,55 +1575,55 @@ function maybeEncodeVideoFile(file) {
|
|
|
1558
1575
|
}
|
|
1559
1576
|
return file;
|
|
1560
1577
|
}
|
|
1561
|
-
var providerMetadataEntrySchema2 =
|
|
1562
|
-
videos:
|
|
1563
|
-
}).catchall(
|
|
1564
|
-
var gatewayVideoDataSchema =
|
|
1565
|
-
|
|
1566
|
-
type:
|
|
1567
|
-
url:
|
|
1568
|
-
mediaType:
|
|
1578
|
+
var providerMetadataEntrySchema2 = z11.object({
|
|
1579
|
+
videos: z11.array(z11.unknown()).optional()
|
|
1580
|
+
}).catchall(z11.unknown());
|
|
1581
|
+
var gatewayVideoDataSchema = z11.union([
|
|
1582
|
+
z11.object({
|
|
1583
|
+
type: z11.literal("url"),
|
|
1584
|
+
url: z11.string(),
|
|
1585
|
+
mediaType: z11.string()
|
|
1569
1586
|
}),
|
|
1570
|
-
|
|
1571
|
-
type:
|
|
1572
|
-
data:
|
|
1573
|
-
mediaType:
|
|
1587
|
+
z11.object({
|
|
1588
|
+
type: z11.literal("base64"),
|
|
1589
|
+
data: z11.string(),
|
|
1590
|
+
mediaType: z11.string()
|
|
1574
1591
|
})
|
|
1575
1592
|
]);
|
|
1576
|
-
var gatewayVideoWarningSchema =
|
|
1577
|
-
|
|
1578
|
-
type:
|
|
1579
|
-
feature:
|
|
1580
|
-
details:
|
|
1593
|
+
var gatewayVideoWarningSchema = z11.discriminatedUnion("type", [
|
|
1594
|
+
z11.object({
|
|
1595
|
+
type: z11.literal("unsupported"),
|
|
1596
|
+
feature: z11.string(),
|
|
1597
|
+
details: z11.string().optional()
|
|
1581
1598
|
}),
|
|
1582
|
-
|
|
1583
|
-
type:
|
|
1584
|
-
feature:
|
|
1585
|
-
details:
|
|
1599
|
+
z11.object({
|
|
1600
|
+
type: z11.literal("compatibility"),
|
|
1601
|
+
feature: z11.string(),
|
|
1602
|
+
details: z11.string().optional()
|
|
1586
1603
|
}),
|
|
1587
|
-
|
|
1588
|
-
type:
|
|
1589
|
-
setting:
|
|
1590
|
-
message:
|
|
1604
|
+
z11.object({
|
|
1605
|
+
type: z11.literal("deprecated"),
|
|
1606
|
+
setting: z11.string(),
|
|
1607
|
+
message: z11.string()
|
|
1591
1608
|
}),
|
|
1592
|
-
|
|
1593
|
-
type:
|
|
1594
|
-
message:
|
|
1609
|
+
z11.object({
|
|
1610
|
+
type: z11.literal("other"),
|
|
1611
|
+
message: z11.string()
|
|
1595
1612
|
})
|
|
1596
1613
|
]);
|
|
1597
|
-
var gatewayVideoEventSchema =
|
|
1598
|
-
|
|
1599
|
-
type:
|
|
1600
|
-
videos:
|
|
1601
|
-
warnings:
|
|
1602
|
-
providerMetadata:
|
|
1614
|
+
var gatewayVideoEventSchema = z11.discriminatedUnion("type", [
|
|
1615
|
+
z11.object({
|
|
1616
|
+
type: z11.literal("result"),
|
|
1617
|
+
videos: z11.array(gatewayVideoDataSchema),
|
|
1618
|
+
warnings: z11.array(gatewayVideoWarningSchema).optional(),
|
|
1619
|
+
providerMetadata: z11.record(z11.string(), providerMetadataEntrySchema2).optional()
|
|
1603
1620
|
}),
|
|
1604
|
-
|
|
1605
|
-
type:
|
|
1606
|
-
message:
|
|
1607
|
-
errorType:
|
|
1608
|
-
statusCode:
|
|
1609
|
-
param:
|
|
1621
|
+
z11.object({
|
|
1622
|
+
type: z11.literal("error"),
|
|
1623
|
+
message: z11.string(),
|
|
1624
|
+
errorType: z11.string(),
|
|
1625
|
+
statusCode: z11.number(),
|
|
1626
|
+
param: z11.unknown().nullable()
|
|
1610
1627
|
})
|
|
1611
1628
|
]);
|
|
1612
1629
|
|
|
@@ -1615,12 +1632,12 @@ import {
|
|
|
1615
1632
|
combineHeaders as combineHeaders5,
|
|
1616
1633
|
createJsonErrorResponseHandler as createJsonErrorResponseHandler8,
|
|
1617
1634
|
createJsonResponseHandler as createJsonResponseHandler7,
|
|
1618
|
-
lazySchema as
|
|
1635
|
+
lazySchema as lazySchema9,
|
|
1619
1636
|
postJsonToApi as postJsonToApi5,
|
|
1620
1637
|
resolve as resolve8,
|
|
1621
|
-
zodSchema as
|
|
1638
|
+
zodSchema as zodSchema9
|
|
1622
1639
|
} from "@ai-sdk/provider-utils";
|
|
1623
|
-
import { z as
|
|
1640
|
+
import { z as z12 } from "zod/v4";
|
|
1624
1641
|
var GatewayRerankingModel = class {
|
|
1625
1642
|
constructor(modelId, config) {
|
|
1626
1643
|
this.modelId = modelId;
|
|
@@ -1663,7 +1680,7 @@ var GatewayRerankingModel = class {
|
|
|
1663
1680
|
gatewayRerankingResponseSchema
|
|
1664
1681
|
),
|
|
1665
1682
|
failedResponseHandler: createJsonErrorResponseHandler8({
|
|
1666
|
-
errorSchema:
|
|
1683
|
+
errorSchema: z12.any(),
|
|
1667
1684
|
errorToMessage: (data) => data
|
|
1668
1685
|
}),
|
|
1669
1686
|
...abortSignal && { abortSignal },
|
|
@@ -1692,38 +1709,38 @@ var GatewayRerankingModel = class {
|
|
|
1692
1709
|
};
|
|
1693
1710
|
}
|
|
1694
1711
|
};
|
|
1695
|
-
var gatewayRerankingWarningSchema =
|
|
1696
|
-
|
|
1697
|
-
type:
|
|
1698
|
-
feature:
|
|
1699
|
-
details:
|
|
1712
|
+
var gatewayRerankingWarningSchema = z12.discriminatedUnion("type", [
|
|
1713
|
+
z12.object({
|
|
1714
|
+
type: z12.literal("unsupported"),
|
|
1715
|
+
feature: z12.string(),
|
|
1716
|
+
details: z12.string().optional()
|
|
1700
1717
|
}),
|
|
1701
|
-
|
|
1702
|
-
type:
|
|
1703
|
-
feature:
|
|
1704
|
-
details:
|
|
1718
|
+
z12.object({
|
|
1719
|
+
type: z12.literal("compatibility"),
|
|
1720
|
+
feature: z12.string(),
|
|
1721
|
+
details: z12.string().optional()
|
|
1705
1722
|
}),
|
|
1706
|
-
|
|
1707
|
-
type:
|
|
1708
|
-
setting:
|
|
1709
|
-
message:
|
|
1723
|
+
z12.object({
|
|
1724
|
+
type: z12.literal("deprecated"),
|
|
1725
|
+
setting: z12.string(),
|
|
1726
|
+
message: z12.string()
|
|
1710
1727
|
}),
|
|
1711
|
-
|
|
1712
|
-
type:
|
|
1713
|
-
message:
|
|
1728
|
+
z12.object({
|
|
1729
|
+
type: z12.literal("other"),
|
|
1730
|
+
message: z12.string()
|
|
1714
1731
|
})
|
|
1715
1732
|
]);
|
|
1716
|
-
var gatewayRerankingResponseSchema =
|
|
1717
|
-
() =>
|
|
1718
|
-
|
|
1719
|
-
ranking:
|
|
1720
|
-
|
|
1721
|
-
index:
|
|
1722
|
-
relevanceScore:
|
|
1733
|
+
var gatewayRerankingResponseSchema = lazySchema9(
|
|
1734
|
+
() => zodSchema9(
|
|
1735
|
+
z12.object({
|
|
1736
|
+
ranking: z12.array(
|
|
1737
|
+
z12.object({
|
|
1738
|
+
index: z12.number(),
|
|
1739
|
+
relevanceScore: z12.number()
|
|
1723
1740
|
})
|
|
1724
1741
|
),
|
|
1725
|
-
warnings:
|
|
1726
|
-
providerMetadata:
|
|
1742
|
+
warnings: z12.array(gatewayRerankingWarningSchema).optional(),
|
|
1743
|
+
providerMetadata: z12.record(z12.string(), z12.record(z12.string(), z12.unknown())).optional()
|
|
1727
1744
|
})
|
|
1728
1745
|
)
|
|
1729
1746
|
);
|
|
@@ -1736,7 +1753,7 @@ import {
|
|
|
1736
1753
|
postJsonToApi as postJsonToApi6,
|
|
1737
1754
|
resolve as resolve9
|
|
1738
1755
|
} from "@ai-sdk/provider-utils";
|
|
1739
|
-
import { z as
|
|
1756
|
+
import { z as z13 } from "zod/v4";
|
|
1740
1757
|
var GatewaySpeechModel = class {
|
|
1741
1758
|
constructor(modelId, config) {
|
|
1742
1759
|
this.modelId = modelId;
|
|
@@ -1785,7 +1802,7 @@ var GatewaySpeechModel = class {
|
|
|
1785
1802
|
gatewaySpeechResponseSchema
|
|
1786
1803
|
),
|
|
1787
1804
|
failedResponseHandler: createJsonErrorResponseHandler9({
|
|
1788
|
-
errorSchema:
|
|
1805
|
+
errorSchema: z13.any(),
|
|
1789
1806
|
errorToMessage: (data) => data
|
|
1790
1807
|
}),
|
|
1791
1808
|
...abortSignal && { abortSignal },
|
|
@@ -1819,32 +1836,32 @@ var GatewaySpeechModel = class {
|
|
|
1819
1836
|
};
|
|
1820
1837
|
}
|
|
1821
1838
|
};
|
|
1822
|
-
var providerMetadataEntrySchema3 =
|
|
1823
|
-
var gatewaySpeechWarningSchema =
|
|
1824
|
-
|
|
1825
|
-
type:
|
|
1826
|
-
feature:
|
|
1827
|
-
details:
|
|
1839
|
+
var providerMetadataEntrySchema3 = z13.object({}).catchall(z13.unknown());
|
|
1840
|
+
var gatewaySpeechWarningSchema = z13.discriminatedUnion("type", [
|
|
1841
|
+
z13.object({
|
|
1842
|
+
type: z13.literal("unsupported"),
|
|
1843
|
+
feature: z13.string(),
|
|
1844
|
+
details: z13.string().optional()
|
|
1828
1845
|
}),
|
|
1829
|
-
|
|
1830
|
-
type:
|
|
1831
|
-
feature:
|
|
1832
|
-
details:
|
|
1846
|
+
z13.object({
|
|
1847
|
+
type: z13.literal("compatibility"),
|
|
1848
|
+
feature: z13.string(),
|
|
1849
|
+
details: z13.string().optional()
|
|
1833
1850
|
}),
|
|
1834
|
-
|
|
1835
|
-
type:
|
|
1836
|
-
setting:
|
|
1837
|
-
message:
|
|
1851
|
+
z13.object({
|
|
1852
|
+
type: z13.literal("deprecated"),
|
|
1853
|
+
setting: z13.string(),
|
|
1854
|
+
message: z13.string()
|
|
1838
1855
|
}),
|
|
1839
|
-
|
|
1840
|
-
type:
|
|
1841
|
-
message:
|
|
1856
|
+
z13.object({
|
|
1857
|
+
type: z13.literal("other"),
|
|
1858
|
+
message: z13.string()
|
|
1842
1859
|
})
|
|
1843
1860
|
]);
|
|
1844
|
-
var gatewaySpeechResponseSchema =
|
|
1845
|
-
audio:
|
|
1846
|
-
warnings:
|
|
1847
|
-
providerMetadata:
|
|
1861
|
+
var gatewaySpeechResponseSchema = z13.object({
|
|
1862
|
+
audio: z13.string(),
|
|
1863
|
+
warnings: z13.array(gatewaySpeechWarningSchema).optional(),
|
|
1864
|
+
providerMetadata: z13.record(z13.string(), providerMetadataEntrySchema3).optional()
|
|
1848
1865
|
});
|
|
1849
1866
|
|
|
1850
1867
|
// src/gateway-transcription-model.ts
|
|
@@ -1856,7 +1873,7 @@ import {
|
|
|
1856
1873
|
postJsonToApi as postJsonToApi7,
|
|
1857
1874
|
resolve as resolve10
|
|
1858
1875
|
} from "@ai-sdk/provider-utils";
|
|
1859
|
-
import { z as
|
|
1876
|
+
import { z as z14 } from "zod/v4";
|
|
1860
1877
|
var GatewayTranscriptionModel = class {
|
|
1861
1878
|
constructor(modelId, config) {
|
|
1862
1879
|
this.modelId = modelId;
|
|
@@ -1897,7 +1914,7 @@ var GatewayTranscriptionModel = class {
|
|
|
1897
1914
|
gatewayTranscriptionResponseSchema
|
|
1898
1915
|
),
|
|
1899
1916
|
failedResponseHandler: createJsonErrorResponseHandler10({
|
|
1900
|
-
errorSchema:
|
|
1917
|
+
errorSchema: z14.any(),
|
|
1901
1918
|
errorToMessage: (data) => data
|
|
1902
1919
|
}),
|
|
1903
1920
|
...abortSignal && { abortSignal },
|
|
@@ -1934,41 +1951,41 @@ var GatewayTranscriptionModel = class {
|
|
|
1934
1951
|
};
|
|
1935
1952
|
}
|
|
1936
1953
|
};
|
|
1937
|
-
var providerMetadataEntrySchema4 =
|
|
1938
|
-
var gatewayTranscriptionWarningSchema =
|
|
1939
|
-
|
|
1940
|
-
type:
|
|
1941
|
-
feature:
|
|
1942
|
-
details:
|
|
1954
|
+
var providerMetadataEntrySchema4 = z14.object({}).catchall(z14.unknown());
|
|
1955
|
+
var gatewayTranscriptionWarningSchema = z14.discriminatedUnion("type", [
|
|
1956
|
+
z14.object({
|
|
1957
|
+
type: z14.literal("unsupported"),
|
|
1958
|
+
feature: z14.string(),
|
|
1959
|
+
details: z14.string().optional()
|
|
1943
1960
|
}),
|
|
1944
|
-
|
|
1945
|
-
type:
|
|
1946
|
-
feature:
|
|
1947
|
-
details:
|
|
1961
|
+
z14.object({
|
|
1962
|
+
type: z14.literal("compatibility"),
|
|
1963
|
+
feature: z14.string(),
|
|
1964
|
+
details: z14.string().optional()
|
|
1948
1965
|
}),
|
|
1949
|
-
|
|
1950
|
-
type:
|
|
1951
|
-
setting:
|
|
1952
|
-
message:
|
|
1966
|
+
z14.object({
|
|
1967
|
+
type: z14.literal("deprecated"),
|
|
1968
|
+
setting: z14.string(),
|
|
1969
|
+
message: z14.string()
|
|
1953
1970
|
}),
|
|
1954
|
-
|
|
1955
|
-
type:
|
|
1956
|
-
message:
|
|
1971
|
+
z14.object({
|
|
1972
|
+
type: z14.literal("other"),
|
|
1973
|
+
message: z14.string()
|
|
1957
1974
|
})
|
|
1958
1975
|
]);
|
|
1959
|
-
var gatewayTranscriptionResponseSchema =
|
|
1960
|
-
text:
|
|
1961
|
-
segments:
|
|
1962
|
-
|
|
1963
|
-
text:
|
|
1964
|
-
startSecond:
|
|
1965
|
-
endSecond:
|
|
1976
|
+
var gatewayTranscriptionResponseSchema = z14.object({
|
|
1977
|
+
text: z14.string(),
|
|
1978
|
+
segments: z14.array(
|
|
1979
|
+
z14.object({
|
|
1980
|
+
text: z14.string(),
|
|
1981
|
+
startSecond: z14.number(),
|
|
1982
|
+
endSecond: z14.number()
|
|
1966
1983
|
})
|
|
1967
1984
|
).optional(),
|
|
1968
|
-
language:
|
|
1969
|
-
durationInSeconds:
|
|
1970
|
-
warnings:
|
|
1971
|
-
providerMetadata:
|
|
1985
|
+
language: z14.string().nullish(),
|
|
1986
|
+
durationInSeconds: z14.number().nullish(),
|
|
1987
|
+
warnings: z14.array(gatewayTranscriptionWarningSchema).optional(),
|
|
1988
|
+
providerMetadata: z14.record(z14.string(), providerMetadataEntrySchema4).optional()
|
|
1972
1989
|
});
|
|
1973
1990
|
|
|
1974
1991
|
// src/gateway-realtime-model.ts
|
|
@@ -2029,19 +2046,19 @@ function toGatewayRealtimeUrl(baseURL, modelId) {
|
|
|
2029
2046
|
// src/tool/exa-search.ts
|
|
2030
2047
|
import {
|
|
2031
2048
|
createProviderExecutedToolFactory,
|
|
2032
|
-
lazySchema as
|
|
2033
|
-
zodSchema as
|
|
2049
|
+
lazySchema as lazySchema10,
|
|
2050
|
+
zodSchema as zodSchema10
|
|
2034
2051
|
} from "@ai-sdk/provider-utils";
|
|
2035
|
-
import { z as
|
|
2036
|
-
var exaSearchInputSchema =
|
|
2037
|
-
() =>
|
|
2038
|
-
|
|
2039
|
-
query:
|
|
2040
|
-
type:
|
|
2052
|
+
import { z as z15 } from "zod/v4";
|
|
2053
|
+
var exaSearchInputSchema = lazySchema10(
|
|
2054
|
+
() => zodSchema10(
|
|
2055
|
+
z15.object({
|
|
2056
|
+
query: z15.string().describe("Natural-language web search query. This is required."),
|
|
2057
|
+
type: z15.enum(["auto", "fast", "instant"]).optional().describe(
|
|
2041
2058
|
"Search method. Use auto for the default balance of speed and quality."
|
|
2042
2059
|
),
|
|
2043
|
-
num_results:
|
|
2044
|
-
category:
|
|
2060
|
+
num_results: z15.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),
|
|
2061
|
+
category: z15.enum([
|
|
2045
2062
|
"company",
|
|
2046
2063
|
"people",
|
|
2047
2064
|
"research paper",
|
|
@@ -2049,20 +2066,20 @@ var exaSearchInputSchema = lazySchema9(
|
|
|
2049
2066
|
"personal site",
|
|
2050
2067
|
"financial report"
|
|
2051
2068
|
]).optional().describe("Optional content category to focus results."),
|
|
2052
|
-
user_location:
|
|
2053
|
-
include_domains:
|
|
2054
|
-
exclude_domains:
|
|
2055
|
-
start_published_date:
|
|
2056
|
-
end_published_date:
|
|
2057
|
-
contents:
|
|
2058
|
-
text:
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
max_characters:
|
|
2062
|
-
include_html_tags:
|
|
2063
|
-
verbosity:
|
|
2064
|
-
include_sections:
|
|
2065
|
-
|
|
2069
|
+
user_location: z15.string().optional().describe("Two-letter ISO country code such as 'US'."),
|
|
2070
|
+
include_domains: z15.array(z15.string()).optional().describe("Only return results from these domains."),
|
|
2071
|
+
exclude_domains: z15.array(z15.string()).optional().describe("Exclude results from these domains."),
|
|
2072
|
+
start_published_date: z15.string().optional().describe("Only return links published after this ISO 8601 date."),
|
|
2073
|
+
end_published_date: z15.string().optional().describe("Only return links published before this ISO 8601 date."),
|
|
2074
|
+
contents: z15.object({
|
|
2075
|
+
text: z15.union([
|
|
2076
|
+
z15.boolean(),
|
|
2077
|
+
z15.object({
|
|
2078
|
+
max_characters: z15.number().optional(),
|
|
2079
|
+
include_html_tags: z15.boolean().optional(),
|
|
2080
|
+
verbosity: z15.enum(["compact", "standard", "full"]).optional(),
|
|
2081
|
+
include_sections: z15.array(
|
|
2082
|
+
z15.enum([
|
|
2066
2083
|
"header",
|
|
2067
2084
|
"navigation",
|
|
2068
2085
|
"banner",
|
|
@@ -2072,8 +2089,8 @@ var exaSearchInputSchema = lazySchema9(
|
|
|
2072
2089
|
"metadata"
|
|
2073
2090
|
])
|
|
2074
2091
|
).optional(),
|
|
2075
|
-
exclude_sections:
|
|
2076
|
-
|
|
2092
|
+
exclude_sections: z15.array(
|
|
2093
|
+
z15.enum([
|
|
2077
2094
|
"header",
|
|
2078
2095
|
"navigation",
|
|
2079
2096
|
"banner",
|
|
@@ -2085,59 +2102,59 @@ var exaSearchInputSchema = lazySchema9(
|
|
|
2085
2102
|
).optional()
|
|
2086
2103
|
})
|
|
2087
2104
|
]).optional(),
|
|
2088
|
-
highlights:
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
query:
|
|
2092
|
-
max_characters:
|
|
2105
|
+
highlights: z15.union([
|
|
2106
|
+
z15.boolean(),
|
|
2107
|
+
z15.object({
|
|
2108
|
+
query: z15.string().optional(),
|
|
2109
|
+
max_characters: z15.number().optional()
|
|
2093
2110
|
})
|
|
2094
2111
|
]).optional(),
|
|
2095
|
-
max_age_hours:
|
|
2096
|
-
livecrawl_timeout:
|
|
2097
|
-
subpages:
|
|
2098
|
-
subpage_target:
|
|
2099
|
-
extras:
|
|
2100
|
-
links:
|
|
2101
|
-
image_links:
|
|
2112
|
+
max_age_hours: z15.number().optional(),
|
|
2113
|
+
livecrawl_timeout: z15.number().optional(),
|
|
2114
|
+
subpages: z15.number().optional(),
|
|
2115
|
+
subpage_target: z15.union([z15.string(), z15.array(z15.string())]).optional(),
|
|
2116
|
+
extras: z15.object({
|
|
2117
|
+
links: z15.number().optional(),
|
|
2118
|
+
image_links: z15.number().optional()
|
|
2102
2119
|
}).optional()
|
|
2103
2120
|
}).optional().describe("Controls extracted page content and freshness.")
|
|
2104
2121
|
})
|
|
2105
2122
|
)
|
|
2106
2123
|
);
|
|
2107
|
-
var exaSearchOutputSchema =
|
|
2108
|
-
() =>
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
requestId:
|
|
2112
|
-
searchType:
|
|
2113
|
-
resolvedSearchType:
|
|
2114
|
-
results:
|
|
2115
|
-
|
|
2116
|
-
title:
|
|
2117
|
-
url:
|
|
2118
|
-
id:
|
|
2119
|
-
publishedDate:
|
|
2120
|
-
author:
|
|
2121
|
-
image:
|
|
2122
|
-
favicon:
|
|
2123
|
-
text:
|
|
2124
|
-
highlights:
|
|
2125
|
-
highlightScores:
|
|
2126
|
-
summary:
|
|
2127
|
-
subpages:
|
|
2128
|
-
extras:
|
|
2129
|
-
links:
|
|
2130
|
-
imageLinks:
|
|
2124
|
+
var exaSearchOutputSchema = lazySchema10(
|
|
2125
|
+
() => zodSchema10(
|
|
2126
|
+
z15.union([
|
|
2127
|
+
z15.object({
|
|
2128
|
+
requestId: z15.string(),
|
|
2129
|
+
searchType: z15.string().optional(),
|
|
2130
|
+
resolvedSearchType: z15.string().optional(),
|
|
2131
|
+
results: z15.array(
|
|
2132
|
+
z15.object({
|
|
2133
|
+
title: z15.string(),
|
|
2134
|
+
url: z15.string(),
|
|
2135
|
+
id: z15.string(),
|
|
2136
|
+
publishedDate: z15.string().nullable().optional(),
|
|
2137
|
+
author: z15.string().nullable().optional(),
|
|
2138
|
+
image: z15.string().nullable().optional(),
|
|
2139
|
+
favicon: z15.string().nullable().optional(),
|
|
2140
|
+
text: z15.string().optional(),
|
|
2141
|
+
highlights: z15.array(z15.string()).optional(),
|
|
2142
|
+
highlightScores: z15.array(z15.number()).optional(),
|
|
2143
|
+
summary: z15.string().optional(),
|
|
2144
|
+
subpages: z15.array(z15.any()).optional(),
|
|
2145
|
+
extras: z15.object({
|
|
2146
|
+
links: z15.array(z15.string()).optional(),
|
|
2147
|
+
imageLinks: z15.array(z15.string()).optional()
|
|
2131
2148
|
}).optional()
|
|
2132
2149
|
})
|
|
2133
2150
|
),
|
|
2134
|
-
costDollars:
|
|
2135
|
-
total:
|
|
2136
|
-
search:
|
|
2151
|
+
costDollars: z15.object({
|
|
2152
|
+
total: z15.number().optional(),
|
|
2153
|
+
search: z15.record(z15.string(), z15.number()).optional()
|
|
2137
2154
|
}).optional()
|
|
2138
2155
|
}),
|
|
2139
|
-
|
|
2140
|
-
error:
|
|
2156
|
+
z15.object({
|
|
2157
|
+
error: z15.enum([
|
|
2141
2158
|
"api_error",
|
|
2142
2159
|
"rate_limit",
|
|
2143
2160
|
"timeout",
|
|
@@ -2146,8 +2163,8 @@ var exaSearchOutputSchema = lazySchema9(
|
|
|
2146
2163
|
"execution_error",
|
|
2147
2164
|
"unknown"
|
|
2148
2165
|
]),
|
|
2149
|
-
statusCode:
|
|
2150
|
-
message:
|
|
2166
|
+
statusCode: z15.number().optional(),
|
|
2167
|
+
message: z15.string()
|
|
2151
2168
|
})
|
|
2152
2169
|
])
|
|
2153
2170
|
)
|
|
@@ -2162,69 +2179,69 @@ var exaSearch = (config = {}) => exaSearchToolFactory(config);
|
|
|
2162
2179
|
// src/tool/parallel-search.ts
|
|
2163
2180
|
import {
|
|
2164
2181
|
createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
|
|
2165
|
-
lazySchema as
|
|
2166
|
-
zodSchema as
|
|
2182
|
+
lazySchema as lazySchema11,
|
|
2183
|
+
zodSchema as zodSchema11
|
|
2167
2184
|
} from "@ai-sdk/provider-utils";
|
|
2168
|
-
import { z as
|
|
2169
|
-
var parallelSearchInputSchema =
|
|
2170
|
-
() =>
|
|
2171
|
-
|
|
2172
|
-
objective:
|
|
2185
|
+
import { z as z16 } from "zod/v4";
|
|
2186
|
+
var parallelSearchInputSchema = lazySchema11(
|
|
2187
|
+
() => zodSchema11(
|
|
2188
|
+
z16.object({
|
|
2189
|
+
objective: z16.string().describe(
|
|
2173
2190
|
"Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."
|
|
2174
2191
|
),
|
|
2175
|
-
search_queries:
|
|
2192
|
+
search_queries: z16.array(z16.string()).optional().describe(
|
|
2176
2193
|
"Optional search queries to supplement the objective. Maximum 200 characters per query."
|
|
2177
2194
|
),
|
|
2178
|
-
mode:
|
|
2195
|
+
mode: z16.enum(["one-shot", "agentic"]).optional().describe(
|
|
2179
2196
|
'Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'
|
|
2180
2197
|
),
|
|
2181
|
-
max_results:
|
|
2198
|
+
max_results: z16.number().optional().describe(
|
|
2182
2199
|
"Maximum number of results to return (1-20). Defaults to 10 if not specified."
|
|
2183
2200
|
),
|
|
2184
|
-
source_policy:
|
|
2185
|
-
include_domains:
|
|
2201
|
+
source_policy: z16.object({
|
|
2202
|
+
include_domains: z16.array(z16.string()).optional().describe(
|
|
2186
2203
|
"Limit results to these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
|
|
2187
2204
|
),
|
|
2188
|
-
exclude_domains:
|
|
2205
|
+
exclude_domains: z16.array(z16.string()).optional().describe(
|
|
2189
2206
|
"Exclude results from these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
|
|
2190
2207
|
),
|
|
2191
|
-
after_date:
|
|
2208
|
+
after_date: z16.string().optional().describe(
|
|
2192
2209
|
"Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time."
|
|
2193
2210
|
)
|
|
2194
2211
|
}).optional().describe(
|
|
2195
2212
|
"Source policy for controlling which domains to include/exclude and freshness."
|
|
2196
2213
|
),
|
|
2197
|
-
excerpts:
|
|
2198
|
-
max_chars_per_result:
|
|
2199
|
-
max_chars_total:
|
|
2214
|
+
excerpts: z16.object({
|
|
2215
|
+
max_chars_per_result: z16.number().optional().describe("Maximum characters per result."),
|
|
2216
|
+
max_chars_total: z16.number().optional().describe("Maximum total characters across all results.")
|
|
2200
2217
|
}).optional().describe("Excerpt configuration for controlling result length."),
|
|
2201
|
-
fetch_policy:
|
|
2202
|
-
max_age_seconds:
|
|
2218
|
+
fetch_policy: z16.object({
|
|
2219
|
+
max_age_seconds: z16.number().optional().describe(
|
|
2203
2220
|
"Maximum age in seconds for cached content. Set to 0 to always fetch fresh content."
|
|
2204
2221
|
)
|
|
2205
2222
|
}).optional().describe("Fetch policy for controlling content freshness.")
|
|
2206
2223
|
})
|
|
2207
2224
|
)
|
|
2208
2225
|
);
|
|
2209
|
-
var parallelSearchOutputSchema =
|
|
2210
|
-
() =>
|
|
2211
|
-
|
|
2226
|
+
var parallelSearchOutputSchema = lazySchema11(
|
|
2227
|
+
() => zodSchema11(
|
|
2228
|
+
z16.union([
|
|
2212
2229
|
// Success response
|
|
2213
|
-
|
|
2214
|
-
searchId:
|
|
2215
|
-
results:
|
|
2216
|
-
|
|
2217
|
-
url:
|
|
2218
|
-
title:
|
|
2219
|
-
excerpt:
|
|
2220
|
-
publishDate:
|
|
2221
|
-
relevanceScore:
|
|
2230
|
+
z16.object({
|
|
2231
|
+
searchId: z16.string(),
|
|
2232
|
+
results: z16.array(
|
|
2233
|
+
z16.object({
|
|
2234
|
+
url: z16.string(),
|
|
2235
|
+
title: z16.string(),
|
|
2236
|
+
excerpt: z16.string(),
|
|
2237
|
+
publishDate: z16.string().nullable().optional(),
|
|
2238
|
+
relevanceScore: z16.number().optional()
|
|
2222
2239
|
})
|
|
2223
2240
|
)
|
|
2224
2241
|
}),
|
|
2225
2242
|
// Error response
|
|
2226
|
-
|
|
2227
|
-
error:
|
|
2243
|
+
z16.object({
|
|
2244
|
+
error: z16.enum([
|
|
2228
2245
|
"api_error",
|
|
2229
2246
|
"rate_limit",
|
|
2230
2247
|
"timeout",
|
|
@@ -2232,8 +2249,8 @@ var parallelSearchOutputSchema = lazySchema10(
|
|
|
2232
2249
|
"configuration_error",
|
|
2233
2250
|
"unknown"
|
|
2234
2251
|
]),
|
|
2235
|
-
statusCode:
|
|
2236
|
-
message:
|
|
2252
|
+
statusCode: z16.number().optional(),
|
|
2253
|
+
message: z16.string()
|
|
2237
2254
|
})
|
|
2238
2255
|
])
|
|
2239
2256
|
)
|
|
@@ -2248,79 +2265,79 @@ var parallelSearch = (config = {}) => parallelSearchToolFactory(config);
|
|
|
2248
2265
|
// src/tool/perplexity-search.ts
|
|
2249
2266
|
import {
|
|
2250
2267
|
createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
|
|
2251
|
-
lazySchema as
|
|
2252
|
-
zodSchema as
|
|
2268
|
+
lazySchema as lazySchema12,
|
|
2269
|
+
zodSchema as zodSchema12
|
|
2253
2270
|
} from "@ai-sdk/provider-utils";
|
|
2254
|
-
import { z as
|
|
2255
|
-
var perplexitySearchInputSchema =
|
|
2256
|
-
() =>
|
|
2257
|
-
|
|
2258
|
-
query:
|
|
2271
|
+
import { z as z17 } from "zod/v4";
|
|
2272
|
+
var perplexitySearchInputSchema = lazySchema12(
|
|
2273
|
+
() => zodSchema12(
|
|
2274
|
+
z17.object({
|
|
2275
|
+
query: z17.union([z17.string(), z17.array(z17.string())]).describe(
|
|
2259
2276
|
"Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."
|
|
2260
2277
|
),
|
|
2261
|
-
max_results:
|
|
2278
|
+
max_results: z17.number().optional().describe(
|
|
2262
2279
|
"Maximum number of search results to return (1-20, default: 10)"
|
|
2263
2280
|
),
|
|
2264
|
-
max_tokens_per_page:
|
|
2281
|
+
max_tokens_per_page: z17.number().optional().describe(
|
|
2265
2282
|
"Maximum number of tokens to extract per search result page (256-2048, default: 2048)"
|
|
2266
2283
|
),
|
|
2267
|
-
max_tokens:
|
|
2284
|
+
max_tokens: z17.number().optional().describe(
|
|
2268
2285
|
"Maximum total tokens across all search results (default: 25000, max: 1000000)"
|
|
2269
2286
|
),
|
|
2270
|
-
country:
|
|
2287
|
+
country: z17.string().optional().describe(
|
|
2271
2288
|
"Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"
|
|
2272
2289
|
),
|
|
2273
|
-
search_domain_filter:
|
|
2290
|
+
search_domain_filter: z17.array(z17.string()).optional().describe(
|
|
2274
2291
|
"List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"
|
|
2275
2292
|
),
|
|
2276
|
-
search_language_filter:
|
|
2293
|
+
search_language_filter: z17.array(z17.string()).optional().describe(
|
|
2277
2294
|
"List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"
|
|
2278
2295
|
),
|
|
2279
|
-
search_after_date:
|
|
2296
|
+
search_after_date: z17.string().optional().describe(
|
|
2280
2297
|
"Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
|
|
2281
2298
|
),
|
|
2282
|
-
search_before_date:
|
|
2299
|
+
search_before_date: z17.string().optional().describe(
|
|
2283
2300
|
"Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
|
|
2284
2301
|
),
|
|
2285
|
-
last_updated_after_filter:
|
|
2302
|
+
last_updated_after_filter: z17.string().optional().describe(
|
|
2286
2303
|
"Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
|
|
2287
2304
|
),
|
|
2288
|
-
last_updated_before_filter:
|
|
2305
|
+
last_updated_before_filter: z17.string().optional().describe(
|
|
2289
2306
|
"Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
|
|
2290
2307
|
),
|
|
2291
|
-
search_recency_filter:
|
|
2308
|
+
search_recency_filter: z17.enum(["day", "week", "month", "year"]).optional().describe(
|
|
2292
2309
|
"Filter results by relative time period. Cannot be used with search_after_date or search_before_date."
|
|
2293
2310
|
)
|
|
2294
2311
|
})
|
|
2295
2312
|
)
|
|
2296
2313
|
);
|
|
2297
|
-
var perplexitySearchOutputSchema =
|
|
2298
|
-
() =>
|
|
2299
|
-
|
|
2314
|
+
var perplexitySearchOutputSchema = lazySchema12(
|
|
2315
|
+
() => zodSchema12(
|
|
2316
|
+
z17.union([
|
|
2300
2317
|
// Success response
|
|
2301
|
-
|
|
2302
|
-
results:
|
|
2303
|
-
|
|
2304
|
-
title:
|
|
2305
|
-
url:
|
|
2306
|
-
snippet:
|
|
2307
|
-
date:
|
|
2308
|
-
lastUpdated:
|
|
2318
|
+
z17.object({
|
|
2319
|
+
results: z17.array(
|
|
2320
|
+
z17.object({
|
|
2321
|
+
title: z17.string(),
|
|
2322
|
+
url: z17.string(),
|
|
2323
|
+
snippet: z17.string(),
|
|
2324
|
+
date: z17.string().optional(),
|
|
2325
|
+
lastUpdated: z17.string().optional()
|
|
2309
2326
|
})
|
|
2310
2327
|
),
|
|
2311
|
-
id:
|
|
2328
|
+
id: z17.string()
|
|
2312
2329
|
}),
|
|
2313
2330
|
// Error response
|
|
2314
|
-
|
|
2315
|
-
error:
|
|
2331
|
+
z17.object({
|
|
2332
|
+
error: z17.enum([
|
|
2316
2333
|
"api_error",
|
|
2317
2334
|
"rate_limit",
|
|
2318
2335
|
"timeout",
|
|
2319
2336
|
"invalid_input",
|
|
2320
2337
|
"unknown"
|
|
2321
2338
|
]),
|
|
2322
|
-
statusCode:
|
|
2323
|
-
message:
|
|
2339
|
+
statusCode: z17.number().optional(),
|
|
2340
|
+
message: z17.string()
|
|
2324
2341
|
})
|
|
2325
2342
|
])
|
|
2326
2343
|
)
|
|
@@ -2370,13 +2387,13 @@ async function getVercelRequestId() {
|
|
|
2370
2387
|
}
|
|
2371
2388
|
|
|
2372
2389
|
// src/version.ts
|
|
2373
|
-
var VERSION = true ? "4.0.
|
|
2390
|
+
var VERSION = true ? "4.0.16" : "0.0.0-test";
|
|
2374
2391
|
|
|
2375
2392
|
// src/gateway-provider.ts
|
|
2376
2393
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
|
2377
|
-
var gatewayClientSecretResponseSchema =
|
|
2378
|
-
token:
|
|
2379
|
-
expiresAt:
|
|
2394
|
+
var gatewayClientSecretResponseSchema = z18.object({
|
|
2395
|
+
token: z18.string(),
|
|
2396
|
+
expiresAt: z18.number().nullish()
|
|
2380
2397
|
});
|
|
2381
2398
|
function createGateway(options = {}) {
|
|
2382
2399
|
var _a11, _b11;
|
|
@@ -2438,7 +2455,7 @@ function createGateway(options = {}) {
|
|
|
2438
2455
|
gatewayClientSecretResponseSchema
|
|
2439
2456
|
),
|
|
2440
2457
|
failedResponseHandler: createJsonErrorResponseHandler11({
|
|
2441
|
-
errorSchema:
|
|
2458
|
+
errorSchema: z18.any(),
|
|
2442
2459
|
errorToMessage: (data) => data
|
|
2443
2460
|
}),
|
|
2444
2461
|
fetch: options.fetch
|