@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.
Files changed (92) hide show
  1. package/README.md +40 -5
  2. package/dist/config.js +21 -7
  3. package/dist/endpoints/chat-completions/converters.d.ts +3 -3
  4. package/dist/endpoints/chat-completions/converters.js +16 -8
  5. package/dist/endpoints/chat-completions/handler.js +34 -27
  6. package/dist/endpoints/chat-completions/otel.d.ts +6 -0
  7. package/dist/endpoints/chat-completions/otel.js +127 -0
  8. package/dist/endpoints/embeddings/handler.js +19 -10
  9. package/dist/endpoints/embeddings/otel.d.ts +6 -0
  10. package/dist/endpoints/embeddings/otel.js +35 -0
  11. package/dist/endpoints/models/handler.js +3 -4
  12. package/dist/errors/gateway.d.ts +1 -1
  13. package/dist/errors/gateway.js +3 -4
  14. package/dist/errors/openai.js +11 -12
  15. package/dist/errors/utils.d.ts +3 -4
  16. package/dist/errors/utils.js +6 -6
  17. package/dist/gateway.js +1 -1
  18. package/dist/lifecycle.js +71 -29
  19. package/dist/middleware/matcher.js +1 -1
  20. package/dist/models/amazon/presets.d.ts +37 -37
  21. package/dist/models/amazon/presets.js +1 -1
  22. package/dist/models/anthropic/presets.d.ts +56 -56
  23. package/dist/models/cohere/presets.d.ts +54 -54
  24. package/dist/models/cohere/presets.js +2 -2
  25. package/dist/models/google/presets.d.ts +31 -31
  26. package/dist/models/google/presets.js +1 -1
  27. package/dist/models/meta/presets.d.ts +42 -42
  28. package/dist/models/openai/presets.d.ts +96 -96
  29. package/dist/models/openai/presets.js +1 -1
  30. package/dist/models/types.d.ts +1 -1
  31. package/dist/models/voyage/presets.d.ts +92 -92
  32. package/dist/models/voyage/presets.js +1 -1
  33. package/dist/providers/registry.js +2 -2
  34. package/dist/telemetry/baggage.d.ts +1 -0
  35. package/dist/telemetry/baggage.js +24 -0
  36. package/dist/telemetry/fetch.d.ts +2 -1
  37. package/dist/telemetry/fetch.js +13 -3
  38. package/dist/telemetry/gen-ai.d.ts +5 -0
  39. package/dist/telemetry/gen-ai.js +60 -0
  40. package/dist/telemetry/http.d.ts +3 -0
  41. package/dist/telemetry/http.js +57 -0
  42. package/dist/telemetry/memory.d.ts +2 -0
  43. package/dist/telemetry/memory.js +27 -0
  44. package/dist/telemetry/span.d.ts +6 -3
  45. package/dist/telemetry/span.js +24 -36
  46. package/dist/telemetry/stream.d.ts +3 -7
  47. package/dist/telemetry/stream.js +26 -29
  48. package/dist/types.d.ts +16 -15
  49. package/dist/utils/headers.d.ts +1 -1
  50. package/dist/utils/headers.js +7 -9
  51. package/dist/utils/request.d.ts +0 -4
  52. package/dist/utils/request.js +0 -9
  53. package/dist/utils/response.js +1 -1
  54. package/package.json +5 -2
  55. package/src/config.ts +28 -7
  56. package/src/endpoints/chat-completions/converters.ts +18 -11
  57. package/src/endpoints/chat-completions/handler.ts +46 -28
  58. package/src/endpoints/chat-completions/otel.ts +161 -0
  59. package/src/endpoints/embeddings/handler.test.ts +2 -2
  60. package/src/endpoints/embeddings/handler.ts +28 -10
  61. package/src/endpoints/embeddings/otel.ts +56 -0
  62. package/src/endpoints/models/handler.ts +3 -5
  63. package/src/errors/gateway.ts +5 -5
  64. package/src/errors/openai.ts +25 -17
  65. package/src/errors/utils.ts +6 -7
  66. package/src/gateway.ts +1 -1
  67. package/src/lifecycle.ts +85 -32
  68. package/src/middleware/matcher.ts +1 -1
  69. package/src/models/amazon/presets.ts +1 -1
  70. package/src/models/cohere/presets.ts +2 -2
  71. package/src/models/google/presets.ts +1 -1
  72. package/src/models/openai/presets.ts +1 -1
  73. package/src/models/types.ts +1 -1
  74. package/src/models/voyage/presets.ts +1 -1
  75. package/src/providers/registry.ts +2 -2
  76. package/src/telemetry/baggage.ts +27 -0
  77. package/src/telemetry/fetch.ts +15 -3
  78. package/src/telemetry/gen-ai.ts +88 -0
  79. package/src/telemetry/http.ts +65 -0
  80. package/src/telemetry/memory.ts +36 -0
  81. package/src/telemetry/span.ts +28 -40
  82. package/src/telemetry/stream.ts +36 -40
  83. package/src/types.ts +18 -18
  84. package/src/utils/headers.ts +8 -19
  85. package/src/utils/request.ts +0 -11
  86. package/src/utils/response.ts +1 -1
  87. package/dist/telemetry/otel.d.ts +0 -2
  88. package/dist/telemetry/otel.js +0 -50
  89. package/dist/telemetry/utils.d.ts +0 -4
  90. package/dist/telemetry/utils.js +0 -223
  91. package/src/telemetry/otel.ts +0 -91
  92. package/src/telemetry/utils.ts +0 -273
@@ -4,7 +4,7 @@ export declare const geminiEmbedding001: <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" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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;
@@ -70,7 +70,7 @@ export declare const geminiEmbedding001: <const O extends {
70
70
  context: number;
71
71
  modalities: {
72
72
  input: readonly ["text"];
73
- output: readonly ["embeddings"];
73
+ output: readonly ["embedding"];
74
74
  };
75
75
  providers: readonly ["vertex"];
76
76
  } & O>;
@@ -80,7 +80,7 @@ export declare const gemini3FlashPreview: <const O extends {
80
80
  knowledge?: string | undefined;
81
81
  modalities?: {
82
82
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
83
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
83
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
84
84
  } | undefined;
85
85
  context?: number | undefined;
86
86
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -158,7 +158,7 @@ export declare const gemini3ProPreview: <const O extends {
158
158
  knowledge?: string | undefined;
159
159
  modalities?: {
160
160
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
161
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
161
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
162
162
  } | undefined;
163
163
  context?: number | undefined;
164
164
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -236,7 +236,7 @@ export declare const gemini25FlashLite: <const O extends {
236
236
  knowledge?: string | undefined;
237
237
  modalities?: {
238
238
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
239
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
239
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
240
240
  } | undefined;
241
241
  context?: number | undefined;
242
242
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -314,7 +314,7 @@ export declare const gemini25Flash: <const O extends {
314
314
  knowledge?: string | undefined;
315
315
  modalities?: {
316
316
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
317
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
317
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
318
318
  } | undefined;
319
319
  context?: number | undefined;
320
320
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -392,7 +392,7 @@ export declare const gemini25Pro: <const O extends {
392
392
  knowledge?: string | undefined;
393
393
  modalities?: {
394
394
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
395
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
395
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
396
396
  } | undefined;
397
397
  context?: number | undefined;
398
398
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -471,7 +471,7 @@ export declare const gemini: {
471
471
  knowledge?: string | undefined;
472
472
  modalities?: {
473
473
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
474
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
474
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
475
475
  } | undefined;
476
476
  context?: number | undefined;
477
477
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -548,7 +548,7 @@ export declare const gemini: {
548
548
  knowledge?: string | undefined;
549
549
  modalities?: {
550
550
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
551
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
551
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
552
552
  } | undefined;
553
553
  context?: number | undefined;
554
554
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -625,7 +625,7 @@ export declare const gemini: {
625
625
  knowledge?: string | undefined;
626
626
  modalities?: {
627
627
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
628
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
628
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
629
629
  } | undefined;
630
630
  context?: number | undefined;
631
631
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -703,7 +703,7 @@ export declare const gemini: {
703
703
  knowledge?: string | undefined;
704
704
  modalities?: {
705
705
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
706
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
706
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
707
707
  } | undefined;
708
708
  context?: number | undefined;
709
709
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -780,7 +780,7 @@ export declare const gemini: {
780
780
  knowledge?: string | undefined;
781
781
  modalities?: {
782
782
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
783
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
783
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
784
784
  } | undefined;
785
785
  context?: number | undefined;
786
786
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -858,7 +858,7 @@ export declare const gemini: {
858
858
  knowledge?: string | undefined;
859
859
  modalities?: {
860
860
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
861
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
861
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
862
862
  } | undefined;
863
863
  context?: number | undefined;
864
864
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -924,7 +924,7 @@ export declare const gemini: {
924
924
  context: number;
925
925
  modalities: {
926
926
  input: readonly ["text"];
927
- output: readonly ["embeddings"];
927
+ output: readonly ["embedding"];
928
928
  };
929
929
  providers: readonly ["vertex"];
930
930
  } & O>];
@@ -934,7 +934,7 @@ export declare const gemini: {
934
934
  knowledge?: string | undefined;
935
935
  modalities?: {
936
936
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
937
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
937
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
938
938
  } | undefined;
939
939
  context?: number | undefined;
940
940
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1000,7 +1000,7 @@ export declare const gemini: {
1000
1000
  context: number;
1001
1001
  modalities: {
1002
1002
  input: readonly ["text"];
1003
- output: readonly ["embeddings"];
1003
+ output: readonly ["embedding"];
1004
1004
  };
1005
1005
  providers: readonly ["vertex"];
1006
1006
  } & O>) | (<const O extends {
@@ -1009,7 +1009,7 @@ export declare const gemini: {
1009
1009
  knowledge?: string | undefined;
1010
1010
  modalities?: {
1011
1011
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1012
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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 gemini: {
1086
1086
  knowledge?: string | undefined;
1087
1087
  modalities?: {
1088
1088
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1089
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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 gemini: {
1163
1163
  knowledge?: string | undefined;
1164
1164
  modalities?: {
1165
1165
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1166
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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 gemini: {
1240
1240
  knowledge?: string | undefined;
1241
1241
  modalities?: {
1242
1242
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1243
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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 gemini: {
1317
1317
  knowledge?: string | undefined;
1318
1318
  modalities?: {
1319
1319
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1320
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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;
@@ -1395,7 +1395,7 @@ export declare const gemini: {
1395
1395
  knowledge?: string | undefined;
1396
1396
  modalities?: {
1397
1397
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1398
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1398
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1399
1399
  } | undefined;
1400
1400
  context?: number | undefined;
1401
1401
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1472,7 +1472,7 @@ export declare const gemini: {
1472
1472
  knowledge?: string | undefined;
1473
1473
  modalities?: {
1474
1474
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1475
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1475
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1476
1476
  } | undefined;
1477
1477
  context?: number | undefined;
1478
1478
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1549,7 +1549,7 @@ export declare const gemini: {
1549
1549
  knowledge?: string | undefined;
1550
1550
  modalities?: {
1551
1551
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1552
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
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;
@@ -1627,7 +1627,7 @@ export declare const gemini: {
1627
1627
  knowledge?: string | undefined;
1628
1628
  modalities?: {
1629
1629
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1630
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1630
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1631
1631
  } | undefined;
1632
1632
  context?: number | undefined;
1633
1633
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1704,7 +1704,7 @@ export declare const gemini: {
1704
1704
  knowledge?: string | undefined;
1705
1705
  modalities?: {
1706
1706
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1707
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1707
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1708
1708
  } | undefined;
1709
1709
  context?: number | undefined;
1710
1710
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1782,7 +1782,7 @@ export declare const gemini: {
1782
1782
  knowledge?: string | undefined;
1783
1783
  modalities?: {
1784
1784
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1785
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1785
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1786
1786
  } | undefined;
1787
1787
  context?: number | undefined;
1788
1788
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1859,7 +1859,7 @@ export declare const gemini: {
1859
1859
  knowledge?: string | undefined;
1860
1860
  modalities?: {
1861
1861
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1862
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1862
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1863
1863
  } | undefined;
1864
1864
  context?: number | undefined;
1865
1865
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -1936,7 +1936,7 @@ export declare const gemini: {
1936
1936
  knowledge?: string | undefined;
1937
1937
  modalities?: {
1938
1938
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
1939
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
1939
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
1940
1940
  } | undefined;
1941
1941
  context?: number | undefined;
1942
1942
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -2014,7 +2014,7 @@ export declare const gemini: {
2014
2014
  knowledge?: string | undefined;
2015
2015
  modalities?: {
2016
2016
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
2017
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
2017
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
2018
2018
  } | undefined;
2019
2019
  context?: number | undefined;
2020
2020
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -2091,7 +2091,7 @@ export declare const gemini: {
2091
2091
  knowledge?: string | undefined;
2092
2092
  modalities?: {
2093
2093
  input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
2094
- output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
2094
+ output?: readonly ("text" | "embedding" | "image" | "audio" | "video")[] | undefined;
2095
2095
  } | undefined;
2096
2096
  context?: number | undefined;
2097
2097
  capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
@@ -17,7 +17,7 @@ const GEMINI_BASE = {
17
17
  const GEMINI_EMBEDDINGS_BASE = {
18
18
  modalities: {
19
19
  input: ["text"],
20
- output: ["embeddings"],
20
+ output: ["embedding"],
21
21
  },
22
22
  providers: ["vertex"],
23
23
  };