@hebo-ai/gateway 0.4.0-beta.3 → 0.4.0
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/README.md +40 -5
- package/dist/config.js +21 -7
- package/dist/endpoints/chat-completions/converters.d.ts +3 -3
- package/dist/endpoints/chat-completions/converters.js +16 -8
- package/dist/endpoints/chat-completions/handler.js +34 -27
- package/dist/endpoints/chat-completions/otel.d.ts +6 -0
- package/dist/endpoints/chat-completions/otel.js +127 -0
- package/dist/endpoints/embeddings/handler.js +19 -10
- package/dist/endpoints/embeddings/otel.d.ts +6 -0
- package/dist/endpoints/embeddings/otel.js +35 -0
- package/dist/endpoints/models/handler.js +3 -4
- package/dist/errors/gateway.d.ts +1 -1
- package/dist/errors/gateway.js +3 -4
- package/dist/errors/openai.js +11 -12
- package/dist/errors/utils.d.ts +3 -4
- package/dist/errors/utils.js +6 -6
- package/dist/gateway.js +1 -1
- package/dist/lifecycle.js +71 -29
- package/dist/middleware/matcher.js +1 -1
- package/dist/models/amazon/presets.d.ts +37 -37
- package/dist/models/amazon/presets.js +1 -1
- package/dist/models/anthropic/presets.d.ts +56 -56
- package/dist/models/cohere/presets.d.ts +54 -54
- package/dist/models/cohere/presets.js +2 -2
- package/dist/models/google/presets.d.ts +31 -31
- package/dist/models/google/presets.js +1 -1
- package/dist/models/meta/presets.d.ts +42 -42
- package/dist/models/openai/presets.d.ts +96 -96
- package/dist/models/openai/presets.js +1 -1
- package/dist/models/types.d.ts +1 -1
- package/dist/models/voyage/presets.d.ts +92 -92
- package/dist/models/voyage/presets.js +1 -1
- package/dist/providers/registry.js +2 -2
- package/dist/telemetry/baggage.d.ts +1 -0
- package/dist/telemetry/baggage.js +24 -0
- package/dist/telemetry/fetch.d.ts +2 -1
- package/dist/telemetry/fetch.js +13 -3
- package/dist/telemetry/gen-ai.d.ts +5 -0
- package/dist/telemetry/gen-ai.js +60 -0
- package/dist/telemetry/http.d.ts +3 -0
- package/dist/telemetry/http.js +57 -0
- package/dist/telemetry/memory.d.ts +2 -0
- package/dist/telemetry/memory.js +27 -0
- package/dist/telemetry/span.d.ts +6 -3
- package/dist/telemetry/span.js +24 -36
- package/dist/telemetry/stream.d.ts +3 -7
- package/dist/telemetry/stream.js +26 -29
- package/dist/types.d.ts +16 -15
- package/dist/utils/headers.d.ts +1 -1
- package/dist/utils/headers.js +7 -9
- package/dist/utils/request.d.ts +0 -4
- package/dist/utils/request.js +0 -9
- package/dist/utils/response.js +1 -1
- package/package.json +5 -2
- package/src/config.ts +28 -7
- package/src/endpoints/chat-completions/converters.ts +18 -11
- package/src/endpoints/chat-completions/handler.ts +46 -28
- package/src/endpoints/chat-completions/otel.ts +161 -0
- package/src/endpoints/embeddings/handler.test.ts +2 -2
- package/src/endpoints/embeddings/handler.ts +28 -10
- package/src/endpoints/embeddings/otel.ts +56 -0
- package/src/endpoints/models/handler.ts +3 -5
- package/src/errors/gateway.ts +5 -5
- package/src/errors/openai.ts +25 -17
- package/src/errors/utils.ts +6 -7
- package/src/gateway.ts +1 -1
- package/src/lifecycle.ts +85 -32
- package/src/middleware/matcher.ts +1 -1
- package/src/models/amazon/presets.ts +1 -1
- package/src/models/cohere/presets.ts +2 -2
- package/src/models/google/presets.ts +1 -1
- package/src/models/openai/presets.ts +1 -1
- package/src/models/types.ts +1 -1
- package/src/models/voyage/presets.ts +1 -1
- package/src/providers/registry.ts +2 -2
- package/src/telemetry/baggage.ts +27 -0
- package/src/telemetry/fetch.ts +15 -3
- package/src/telemetry/gen-ai.ts +88 -0
- package/src/telemetry/http.ts +65 -0
- package/src/telemetry/memory.ts +36 -0
- package/src/telemetry/span.ts +28 -40
- package/src/telemetry/stream.ts +36 -40
- package/src/types.ts +18 -18
- package/src/utils/headers.ts +8 -19
- package/src/utils/request.ts +0 -11
- package/src/utils/response.ts +1 -1
- package/dist/telemetry/otel.d.ts +0 -2
- package/dist/telemetry/otel.js +0 -50
- package/dist/telemetry/utils.d.ts +0 -4
- package/dist/telemetry/utils.js +0 -223
- package/src/telemetry/otel.ts +0 -91
- package/src/telemetry/utils.ts +0 -273
|
@@ -4,7 +4,7 @@ export declare const commandA: <const O extends {
|
|
|
4
4
|
knowledge?: string | undefined;
|
|
5
5
|
modalities?: {
|
|
6
6
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
7
|
-
output?: readonly ("text" | "
|
|
7
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
context?: number | undefined;
|
|
10
10
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -82,7 +82,7 @@ export declare const commandAReasoning: <const O extends {
|
|
|
82
82
|
knowledge?: string | undefined;
|
|
83
83
|
modalities?: {
|
|
84
84
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
85
|
-
output?: readonly ("text" | "
|
|
85
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
86
86
|
} | undefined;
|
|
87
87
|
context?: number | undefined;
|
|
88
88
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -160,7 +160,7 @@ export declare const commandATranslate: <const O extends {
|
|
|
160
160
|
knowledge?: string | undefined;
|
|
161
161
|
modalities?: {
|
|
162
162
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
163
|
-
output?: readonly ("text" | "
|
|
163
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
164
164
|
} | undefined;
|
|
165
165
|
context?: number | undefined;
|
|
166
166
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -238,7 +238,7 @@ export declare const commandAVision: <const O extends {
|
|
|
238
238
|
knowledge?: string | undefined;
|
|
239
239
|
modalities?: {
|
|
240
240
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
241
|
-
output?: readonly ("text" | "
|
|
241
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
242
242
|
} | undefined;
|
|
243
243
|
context?: number | undefined;
|
|
244
244
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -316,7 +316,7 @@ export declare const commandR: <const O extends {
|
|
|
316
316
|
knowledge?: string | undefined;
|
|
317
317
|
modalities?: {
|
|
318
318
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
319
|
-
output?: readonly ("text" | "
|
|
319
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
320
320
|
} | undefined;
|
|
321
321
|
context?: number | undefined;
|
|
322
322
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -394,7 +394,7 @@ export declare const commandRPlus: <const O extends {
|
|
|
394
394
|
knowledge?: string | undefined;
|
|
395
395
|
modalities?: {
|
|
396
396
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
397
|
-
output?: readonly ("text" | "
|
|
397
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
398
398
|
} | undefined;
|
|
399
399
|
context?: number | undefined;
|
|
400
400
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -472,7 +472,7 @@ export declare const commandR7b: <const O extends {
|
|
|
472
472
|
knowledge?: string | undefined;
|
|
473
473
|
modalities?: {
|
|
474
474
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
475
|
-
output?: readonly ("text" | "
|
|
475
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
476
476
|
} | undefined;
|
|
477
477
|
context?: number | undefined;
|
|
478
478
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -550,7 +550,7 @@ export declare const embed4: <const O extends {
|
|
|
550
550
|
knowledge?: string | undefined;
|
|
551
551
|
modalities?: {
|
|
552
552
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
553
|
-
output?: readonly ("text" | "
|
|
553
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
context?: number | undefined;
|
|
556
556
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -617,7 +617,7 @@ export declare const embed4: <const O extends {
|
|
|
617
617
|
providers: ("bedrock" | "cohere")[];
|
|
618
618
|
modalities: {
|
|
619
619
|
input: readonly ["text", "image", "pdf"];
|
|
620
|
-
output: readonly ["
|
|
620
|
+
output: readonly ["embedding"];
|
|
621
621
|
};
|
|
622
622
|
} & O>;
|
|
623
623
|
export declare const embedEnglishV3: <const O extends {
|
|
@@ -626,7 +626,7 @@ export declare const embedEnglishV3: <const O extends {
|
|
|
626
626
|
knowledge?: string | undefined;
|
|
627
627
|
modalities?: {
|
|
628
628
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
629
|
-
output?: readonly ("text" | "
|
|
629
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
630
630
|
} | undefined;
|
|
631
631
|
context?: number | undefined;
|
|
632
632
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -693,7 +693,7 @@ export declare const embedEnglishV3: <const O extends {
|
|
|
693
693
|
providers: ("bedrock" | "cohere")[];
|
|
694
694
|
modalities: {
|
|
695
695
|
input: readonly ["text", "image"];
|
|
696
|
-
output: readonly ["
|
|
696
|
+
output: readonly ["embedding"];
|
|
697
697
|
};
|
|
698
698
|
} & O>;
|
|
699
699
|
export declare const embedEnglishLightV3: <const O extends {
|
|
@@ -702,7 +702,7 @@ export declare const embedEnglishLightV3: <const O extends {
|
|
|
702
702
|
knowledge?: string | undefined;
|
|
703
703
|
modalities?: {
|
|
704
704
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
705
|
-
output?: readonly ("text" | "
|
|
705
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
706
706
|
} | undefined;
|
|
707
707
|
context?: number | undefined;
|
|
708
708
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -769,7 +769,7 @@ export declare const embedEnglishLightV3: <const O extends {
|
|
|
769
769
|
providers: "cohere"[];
|
|
770
770
|
modalities: {
|
|
771
771
|
input: readonly ["text", "image"];
|
|
772
|
-
output: readonly ["
|
|
772
|
+
output: readonly ["embedding"];
|
|
773
773
|
};
|
|
774
774
|
} & O>;
|
|
775
775
|
export declare const embedMultilingualV3: <const O extends {
|
|
@@ -778,7 +778,7 @@ export declare const embedMultilingualV3: <const O extends {
|
|
|
778
778
|
knowledge?: string | undefined;
|
|
779
779
|
modalities?: {
|
|
780
780
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
781
|
-
output?: readonly ("text" | "
|
|
781
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
782
782
|
} | undefined;
|
|
783
783
|
context?: number | undefined;
|
|
784
784
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -845,7 +845,7 @@ export declare const embedMultilingualV3: <const O extends {
|
|
|
845
845
|
providers: ("bedrock" | "cohere")[];
|
|
846
846
|
modalities: {
|
|
847
847
|
input: readonly ["text", "image"];
|
|
848
|
-
output: readonly ["
|
|
848
|
+
output: readonly ["embedding"];
|
|
849
849
|
};
|
|
850
850
|
} & O>;
|
|
851
851
|
export declare const embedMultilingualLightV3: <const O extends {
|
|
@@ -854,7 +854,7 @@ export declare const embedMultilingualLightV3: <const O extends {
|
|
|
854
854
|
knowledge?: string | undefined;
|
|
855
855
|
modalities?: {
|
|
856
856
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
857
|
-
output?: readonly ("text" | "
|
|
857
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
858
858
|
} | undefined;
|
|
859
859
|
context?: number | undefined;
|
|
860
860
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -921,7 +921,7 @@ export declare const embedMultilingualLightV3: <const O extends {
|
|
|
921
921
|
providers: "cohere"[];
|
|
922
922
|
modalities: {
|
|
923
923
|
input: readonly ["text", "image"];
|
|
924
|
-
output: readonly ["
|
|
924
|
+
output: readonly ["embedding"];
|
|
925
925
|
};
|
|
926
926
|
} & O>;
|
|
927
927
|
export declare const command: {
|
|
@@ -931,7 +931,7 @@ export declare const command: {
|
|
|
931
931
|
knowledge?: string | undefined;
|
|
932
932
|
modalities?: {
|
|
933
933
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
934
|
-
output?: readonly ("text" | "
|
|
934
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
935
935
|
} | undefined;
|
|
936
936
|
context?: number | undefined;
|
|
937
937
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1009,7 +1009,7 @@ export declare const command: {
|
|
|
1009
1009
|
knowledge?: string | undefined;
|
|
1010
1010
|
modalities?: {
|
|
1011
1011
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1012
|
-
output?: readonly ("text" | "
|
|
1012
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1013
1013
|
} | undefined;
|
|
1014
1014
|
context?: number | undefined;
|
|
1015
1015
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1086,7 +1086,7 @@ export declare const command: {
|
|
|
1086
1086
|
knowledge?: string | undefined;
|
|
1087
1087
|
modalities?: {
|
|
1088
1088
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1089
|
-
output?: readonly ("text" | "
|
|
1089
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1090
1090
|
} | undefined;
|
|
1091
1091
|
context?: number | undefined;
|
|
1092
1092
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1163,7 +1163,7 @@ export declare const command: {
|
|
|
1163
1163
|
knowledge?: string | undefined;
|
|
1164
1164
|
modalities?: {
|
|
1165
1165
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1166
|
-
output?: readonly ("text" | "
|
|
1166
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1167
1167
|
} | undefined;
|
|
1168
1168
|
context?: number | undefined;
|
|
1169
1169
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1240,7 +1240,7 @@ export declare const command: {
|
|
|
1240
1240
|
knowledge?: string | undefined;
|
|
1241
1241
|
modalities?: {
|
|
1242
1242
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1243
|
-
output?: readonly ("text" | "
|
|
1243
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1244
1244
|
} | undefined;
|
|
1245
1245
|
context?: number | undefined;
|
|
1246
1246
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1317,7 +1317,7 @@ export declare const command: {
|
|
|
1317
1317
|
knowledge?: string | undefined;
|
|
1318
1318
|
modalities?: {
|
|
1319
1319
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1320
|
-
output?: readonly ("text" | "
|
|
1320
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1321
1321
|
} | undefined;
|
|
1322
1322
|
context?: number | undefined;
|
|
1323
1323
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1394,7 +1394,7 @@ export declare const command: {
|
|
|
1394
1394
|
knowledge?: string | undefined;
|
|
1395
1395
|
modalities?: {
|
|
1396
1396
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1397
|
-
output?: readonly ("text" | "
|
|
1397
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1398
1398
|
} | undefined;
|
|
1399
1399
|
context?: number | undefined;
|
|
1400
1400
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1471,7 +1471,7 @@ export declare const command: {
|
|
|
1471
1471
|
knowledge?: string | undefined;
|
|
1472
1472
|
modalities?: {
|
|
1473
1473
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1474
|
-
output?: readonly ("text" | "
|
|
1474
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1475
1475
|
} | undefined;
|
|
1476
1476
|
context?: number | undefined;
|
|
1477
1477
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1549,7 +1549,7 @@ export declare const command: {
|
|
|
1549
1549
|
knowledge?: string | undefined;
|
|
1550
1550
|
modalities?: {
|
|
1551
1551
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1552
|
-
output?: readonly ("text" | "
|
|
1552
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1553
1553
|
} | undefined;
|
|
1554
1554
|
context?: number | undefined;
|
|
1555
1555
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1626,7 +1626,7 @@ export declare const command: {
|
|
|
1626
1626
|
knowledge?: string | undefined;
|
|
1627
1627
|
modalities?: {
|
|
1628
1628
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1629
|
-
output?: readonly ("text" | "
|
|
1629
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1630
1630
|
} | undefined;
|
|
1631
1631
|
context?: number | undefined;
|
|
1632
1632
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1703,7 +1703,7 @@ export declare const command: {
|
|
|
1703
1703
|
knowledge?: string | undefined;
|
|
1704
1704
|
modalities?: {
|
|
1705
1705
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1706
|
-
output?: readonly ("text" | "
|
|
1706
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1707
1707
|
} | undefined;
|
|
1708
1708
|
context?: number | undefined;
|
|
1709
1709
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1780,7 +1780,7 @@ export declare const command: {
|
|
|
1780
1780
|
knowledge?: string | undefined;
|
|
1781
1781
|
modalities?: {
|
|
1782
1782
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1783
|
-
output?: readonly ("text" | "
|
|
1783
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1784
1784
|
} | undefined;
|
|
1785
1785
|
context?: number | undefined;
|
|
1786
1786
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1858,7 +1858,7 @@ export declare const command: {
|
|
|
1858
1858
|
knowledge?: string | undefined;
|
|
1859
1859
|
modalities?: {
|
|
1860
1860
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1861
|
-
output?: readonly ("text" | "
|
|
1861
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1862
1862
|
} | undefined;
|
|
1863
1863
|
context?: number | undefined;
|
|
1864
1864
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -1935,7 +1935,7 @@ export declare const command: {
|
|
|
1935
1935
|
knowledge?: string | undefined;
|
|
1936
1936
|
modalities?: {
|
|
1937
1937
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1938
|
-
output?: readonly ("text" | "
|
|
1938
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
1939
1939
|
} | undefined;
|
|
1940
1940
|
context?: number | undefined;
|
|
1941
1941
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2012,7 +2012,7 @@ export declare const command: {
|
|
|
2012
2012
|
knowledge?: string | undefined;
|
|
2013
2013
|
modalities?: {
|
|
2014
2014
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2015
|
-
output?: readonly ("text" | "
|
|
2015
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2016
2016
|
} | undefined;
|
|
2017
2017
|
context?: number | undefined;
|
|
2018
2018
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2092,7 +2092,7 @@ export declare const embed: {
|
|
|
2092
2092
|
knowledge?: string | undefined;
|
|
2093
2093
|
modalities?: {
|
|
2094
2094
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2095
|
-
output?: readonly ("text" | "
|
|
2095
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2096
2096
|
} | undefined;
|
|
2097
2097
|
context?: number | undefined;
|
|
2098
2098
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2159,7 +2159,7 @@ export declare const embed: {
|
|
|
2159
2159
|
providers: ("bedrock" | "cohere")[];
|
|
2160
2160
|
modalities: {
|
|
2161
2161
|
input: readonly ["text", "image", "pdf"];
|
|
2162
|
-
output: readonly ["
|
|
2162
|
+
output: readonly ["embedding"];
|
|
2163
2163
|
};
|
|
2164
2164
|
} & O>];
|
|
2165
2165
|
readonly all: ((<const O extends {
|
|
@@ -2168,7 +2168,7 @@ export declare const embed: {
|
|
|
2168
2168
|
knowledge?: string | undefined;
|
|
2169
2169
|
modalities?: {
|
|
2170
2170
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2171
|
-
output?: readonly ("text" | "
|
|
2171
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2172
2172
|
} | undefined;
|
|
2173
2173
|
context?: number | undefined;
|
|
2174
2174
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2235,7 +2235,7 @@ export declare const embed: {
|
|
|
2235
2235
|
providers: ("bedrock" | "cohere")[];
|
|
2236
2236
|
modalities: {
|
|
2237
2237
|
input: readonly ["text", "image", "pdf"];
|
|
2238
|
-
output: readonly ["
|
|
2238
|
+
output: readonly ["embedding"];
|
|
2239
2239
|
};
|
|
2240
2240
|
} & O>) | (<const O extends {
|
|
2241
2241
|
name?: string | undefined;
|
|
@@ -2243,7 +2243,7 @@ export declare const embed: {
|
|
|
2243
2243
|
knowledge?: string | undefined;
|
|
2244
2244
|
modalities?: {
|
|
2245
2245
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2246
|
-
output?: readonly ("text" | "
|
|
2246
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2247
2247
|
} | undefined;
|
|
2248
2248
|
context?: number | undefined;
|
|
2249
2249
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2310,7 +2310,7 @@ export declare const embed: {
|
|
|
2310
2310
|
providers: ("bedrock" | "cohere")[];
|
|
2311
2311
|
modalities: {
|
|
2312
2312
|
input: readonly ["text", "image"];
|
|
2313
|
-
output: readonly ["
|
|
2313
|
+
output: readonly ["embedding"];
|
|
2314
2314
|
};
|
|
2315
2315
|
} & O>) | (<const O extends {
|
|
2316
2316
|
name?: string | undefined;
|
|
@@ -2318,7 +2318,7 @@ export declare const embed: {
|
|
|
2318
2318
|
knowledge?: string | undefined;
|
|
2319
2319
|
modalities?: {
|
|
2320
2320
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2321
|
-
output?: readonly ("text" | "
|
|
2321
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2322
2322
|
} | undefined;
|
|
2323
2323
|
context?: number | undefined;
|
|
2324
2324
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2385,7 +2385,7 @@ export declare const embed: {
|
|
|
2385
2385
|
providers: "cohere"[];
|
|
2386
2386
|
modalities: {
|
|
2387
2387
|
input: readonly ["text", "image"];
|
|
2388
|
-
output: readonly ["
|
|
2388
|
+
output: readonly ["embedding"];
|
|
2389
2389
|
};
|
|
2390
2390
|
} & O>) | (<const O extends {
|
|
2391
2391
|
name?: string | undefined;
|
|
@@ -2393,7 +2393,7 @@ export declare const embed: {
|
|
|
2393
2393
|
knowledge?: string | undefined;
|
|
2394
2394
|
modalities?: {
|
|
2395
2395
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2396
|
-
output?: readonly ("text" | "
|
|
2396
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2397
2397
|
} | undefined;
|
|
2398
2398
|
context?: number | undefined;
|
|
2399
2399
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2460,7 +2460,7 @@ export declare const embed: {
|
|
|
2460
2460
|
providers: ("bedrock" | "cohere")[];
|
|
2461
2461
|
modalities: {
|
|
2462
2462
|
input: readonly ["text", "image"];
|
|
2463
|
-
output: readonly ["
|
|
2463
|
+
output: readonly ["embedding"];
|
|
2464
2464
|
};
|
|
2465
2465
|
} & O>) | (<const O extends {
|
|
2466
2466
|
name?: string | undefined;
|
|
@@ -2468,7 +2468,7 @@ export declare const embed: {
|
|
|
2468
2468
|
knowledge?: string | undefined;
|
|
2469
2469
|
modalities?: {
|
|
2470
2470
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2471
|
-
output?: readonly ("text" | "
|
|
2471
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2472
2472
|
} | undefined;
|
|
2473
2473
|
context?: number | undefined;
|
|
2474
2474
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2535,7 +2535,7 @@ export declare const embed: {
|
|
|
2535
2535
|
providers: "cohere"[];
|
|
2536
2536
|
modalities: {
|
|
2537
2537
|
input: readonly ["text", "image"];
|
|
2538
|
-
output: readonly ["
|
|
2538
|
+
output: readonly ["embedding"];
|
|
2539
2539
|
};
|
|
2540
2540
|
} & O>))[];
|
|
2541
2541
|
readonly v4: readonly [<const O extends {
|
|
@@ -2544,7 +2544,7 @@ export declare const embed: {
|
|
|
2544
2544
|
knowledge?: string | undefined;
|
|
2545
2545
|
modalities?: {
|
|
2546
2546
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2547
|
-
output?: readonly ("text" | "
|
|
2547
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2548
2548
|
} | undefined;
|
|
2549
2549
|
context?: number | undefined;
|
|
2550
2550
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2611,7 +2611,7 @@ export declare const embed: {
|
|
|
2611
2611
|
providers: ("bedrock" | "cohere")[];
|
|
2612
2612
|
modalities: {
|
|
2613
2613
|
input: readonly ["text", "image", "pdf"];
|
|
2614
|
-
output: readonly ["
|
|
2614
|
+
output: readonly ["embedding"];
|
|
2615
2615
|
};
|
|
2616
2616
|
} & O>];
|
|
2617
2617
|
readonly v3: readonly [<const O extends {
|
|
@@ -2620,7 +2620,7 @@ export declare const embed: {
|
|
|
2620
2620
|
knowledge?: string | undefined;
|
|
2621
2621
|
modalities?: {
|
|
2622
2622
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2623
|
-
output?: readonly ("text" | "
|
|
2623
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2624
2624
|
} | undefined;
|
|
2625
2625
|
context?: number | undefined;
|
|
2626
2626
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2687,7 +2687,7 @@ export declare const embed: {
|
|
|
2687
2687
|
providers: ("bedrock" | "cohere")[];
|
|
2688
2688
|
modalities: {
|
|
2689
2689
|
input: readonly ["text", "image"];
|
|
2690
|
-
output: readonly ["
|
|
2690
|
+
output: readonly ["embedding"];
|
|
2691
2691
|
};
|
|
2692
2692
|
} & O>, <const O extends {
|
|
2693
2693
|
name?: string | undefined;
|
|
@@ -2695,7 +2695,7 @@ export declare const embed: {
|
|
|
2695
2695
|
knowledge?: string | undefined;
|
|
2696
2696
|
modalities?: {
|
|
2697
2697
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2698
|
-
output?: readonly ("text" | "
|
|
2698
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2699
2699
|
} | undefined;
|
|
2700
2700
|
context?: number | undefined;
|
|
2701
2701
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2762,7 +2762,7 @@ export declare const embed: {
|
|
|
2762
2762
|
providers: "cohere"[];
|
|
2763
2763
|
modalities: {
|
|
2764
2764
|
input: readonly ["text", "image"];
|
|
2765
|
-
output: readonly ["
|
|
2765
|
+
output: readonly ["embedding"];
|
|
2766
2766
|
};
|
|
2767
2767
|
} & O>, <const O extends {
|
|
2768
2768
|
name?: string | undefined;
|
|
@@ -2770,7 +2770,7 @@ export declare const embed: {
|
|
|
2770
2770
|
knowledge?: string | undefined;
|
|
2771
2771
|
modalities?: {
|
|
2772
2772
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2773
|
-
output?: readonly ("text" | "
|
|
2773
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2774
2774
|
} | undefined;
|
|
2775
2775
|
context?: number | undefined;
|
|
2776
2776
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2837,7 +2837,7 @@ export declare const embed: {
|
|
|
2837
2837
|
providers: ("bedrock" | "cohere")[];
|
|
2838
2838
|
modalities: {
|
|
2839
2839
|
input: readonly ["text", "image"];
|
|
2840
|
-
output: readonly ["
|
|
2840
|
+
output: readonly ["embedding"];
|
|
2841
2841
|
};
|
|
2842
2842
|
} & O>, <const O extends {
|
|
2843
2843
|
name?: string | undefined;
|
|
@@ -2845,7 +2845,7 @@ export declare const embed: {
|
|
|
2845
2845
|
knowledge?: string | undefined;
|
|
2846
2846
|
modalities?: {
|
|
2847
2847
|
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2848
|
-
output?: readonly ("text" | "
|
|
2848
|
+
output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
|
|
2849
2849
|
} | undefined;
|
|
2850
2850
|
context?: number | undefined;
|
|
2851
2851
|
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
@@ -2912,7 +2912,7 @@ export declare const embed: {
|
|
|
2912
2912
|
providers: "cohere"[];
|
|
2913
2913
|
modalities: {
|
|
2914
2914
|
input: readonly ["text", "image"];
|
|
2915
|
-
output: readonly ["
|
|
2915
|
+
output: readonly ["embedding"];
|
|
2916
2916
|
};
|
|
2917
2917
|
} & O>];
|
|
2918
2918
|
};
|
|
@@ -20,14 +20,14 @@ const COMMAND_VISION_BASE = {
|
|
|
20
20
|
const EMBED_V3_BASE = {
|
|
21
21
|
modalities: {
|
|
22
22
|
input: ["text", "image"],
|
|
23
|
-
output: ["
|
|
23
|
+
output: ["embedding"],
|
|
24
24
|
},
|
|
25
25
|
providers: ["cohere"],
|
|
26
26
|
};
|
|
27
27
|
const EMBED_V4_BASE = {
|
|
28
28
|
modalities: {
|
|
29
29
|
input: ["text", "image", "pdf"],
|
|
30
|
-
output: ["
|
|
30
|
+
output: ["embedding"],
|
|
31
31
|
},
|
|
32
32
|
providers: ["cohere"],
|
|
33
33
|
};
|