@chainfuse/types 4.1.2 → 4.1.4
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/dist/ai-tools/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export declare const ZodLanguageModelValues: zm.ZodMiniEnum<{
|
|
|
112
112
|
"workersai:@cf/tiiuae/falcon-7b-instruct": "workersai:@cf/tiiuae/falcon-7b-instruct";
|
|
113
113
|
"workersai:@hf/nousresearch/hermes-2-pro-mistral-7b": "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b";
|
|
114
114
|
"workersai:@cf/aisingapore/gemma-sea-lion-v4-27b-it": "workersai:@cf/aisingapore/gemma-sea-lion-v4-27b-it";
|
|
115
|
+
"workersai:@cf/qwen/qwen3-30b-a3b-fp8": "workersai:@cf/qwen/qwen3-30b-a3b-fp8";
|
|
115
116
|
"workersai:@cf/meta/llama-3.1-8b-instruct-awq": "workersai:@cf/meta/llama-3.1-8b-instruct-awq";
|
|
116
117
|
"workersai:@hf/thebloke/zephyr-7b-beta-awq": "workersai:@hf/thebloke/zephyr-7b-beta-awq";
|
|
117
118
|
"workersai:@cf/google/gemma-7b-it-lora": "workersai:@cf/google/gemma-7b-it-lora";
|
|
@@ -189,6 +190,7 @@ export declare const ZodLanguageModelValues4: z4.ZodEnum<{
|
|
|
189
190
|
"workersai:@cf/tiiuae/falcon-7b-instruct": "workersai:@cf/tiiuae/falcon-7b-instruct";
|
|
190
191
|
"workersai:@hf/nousresearch/hermes-2-pro-mistral-7b": "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b";
|
|
191
192
|
"workersai:@cf/aisingapore/gemma-sea-lion-v4-27b-it": "workersai:@cf/aisingapore/gemma-sea-lion-v4-27b-it";
|
|
193
|
+
"workersai:@cf/qwen/qwen3-30b-a3b-fp8": "workersai:@cf/qwen/qwen3-30b-a3b-fp8";
|
|
192
194
|
"workersai:@cf/meta/llama-3.1-8b-instruct-awq": "workersai:@cf/meta/llama-3.1-8b-instruct-awq";
|
|
193
195
|
"workersai:@hf/thebloke/zephyr-7b-beta-awq": "workersai:@hf/thebloke/zephyr-7b-beta-awq";
|
|
194
196
|
"workersai:@cf/google/gemma-7b-it-lora": "workersai:@cf/google/gemma-7b-it-lora";
|
|
@@ -263,6 +265,7 @@ export declare const ZodImageModelValues4: z4.ZodEnum<{
|
|
|
263
265
|
export type ImageModelValues = zm.infer<typeof ZodImageModelValues>;
|
|
264
266
|
export declare const ZodTextEmbeddingModelValues: zm.ZodMiniEnum<{
|
|
265
267
|
"workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
|
|
268
|
+
"workersai:@cf/qwen/qwen3-embedding-0.6b": "workersai:@cf/qwen/qwen3-embedding-0.6b";
|
|
266
269
|
"workersai:@cf/pfnet/plamo-embedding-1b": "workersai:@cf/pfnet/plamo-embedding-1b";
|
|
267
270
|
"workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
|
|
268
271
|
"workersai:@cf/baai/bge-base-en-v1.5": "workersai:@cf/baai/bge-base-en-v1.5";
|
|
@@ -276,6 +279,7 @@ export declare const ZodTextEmbeddingModelValues: zm.ZodMiniEnum<{
|
|
|
276
279
|
}>;
|
|
277
280
|
export declare const ZodTextEmbeddingModelValues4: z4.ZodEnum<{
|
|
278
281
|
"workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
|
|
282
|
+
"workersai:@cf/qwen/qwen3-embedding-0.6b": "workersai:@cf/qwen/qwen3-embedding-0.6b";
|
|
279
283
|
"workersai:@cf/pfnet/plamo-embedding-1b": "workersai:@cf/pfnet/plamo-embedding-1b";
|
|
280
284
|
"workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
|
|
281
285
|
"workersai:@cf/baai/bge-base-en-v1.5": "workersai:@cf/baai/bge-base-en-v1.5";
|
|
@@ -158,6 +158,7 @@ export declare const workersAiCatalog: {
|
|
|
158
158
|
readonly created_at: "2025-01-22 23:26:23.495";
|
|
159
159
|
readonly tags: readonly [];
|
|
160
160
|
readonly properties: {
|
|
161
|
+
readonly context_window: 131072;
|
|
161
162
|
readonly price: readonly [{
|
|
162
163
|
readonly unit: "per M input tokens";
|
|
163
164
|
readonly price: 0.48;
|
|
@@ -451,6 +452,7 @@ export declare const workersAiCatalog: {
|
|
|
451
452
|
readonly price: 0.11;
|
|
452
453
|
readonly currency: "USD";
|
|
453
454
|
}];
|
|
455
|
+
readonly function_calling: true;
|
|
454
456
|
};
|
|
455
457
|
}, {
|
|
456
458
|
readonly id: "673c56cc-8553-49a1-b179-dd549ec9209a";
|
|
@@ -556,6 +558,27 @@ export declare const workersAiCatalog: {
|
|
|
556
558
|
readonly currency: "USD";
|
|
557
559
|
}];
|
|
558
560
|
};
|
|
561
|
+
}, {
|
|
562
|
+
readonly id: "4090e54c-eee4-4221-b410-10c1c0f92f17";
|
|
563
|
+
readonly source: 1;
|
|
564
|
+
readonly name: "@cf/qwen/qwen3-30b-a3b-fp8";
|
|
565
|
+
readonly description: "Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support.";
|
|
566
|
+
readonly created_at: "2025-04-30 21:36:10.009";
|
|
567
|
+
readonly tags: readonly [];
|
|
568
|
+
readonly properties: {
|
|
569
|
+
readonly async_queue: true;
|
|
570
|
+
readonly context_window: 32768;
|
|
571
|
+
readonly price: readonly [{
|
|
572
|
+
readonly unit: "per M input tokens";
|
|
573
|
+
readonly price: 0.051;
|
|
574
|
+
readonly currency: "USD";
|
|
575
|
+
}, {
|
|
576
|
+
readonly unit: "per M output tokens";
|
|
577
|
+
readonly price: 0.34;
|
|
578
|
+
readonly currency: "USD";
|
|
579
|
+
}];
|
|
580
|
+
readonly function_calling: true;
|
|
581
|
+
};
|
|
559
582
|
}, {
|
|
560
583
|
readonly id: "3dcb4f2d-26a8-412b-b6e3-2a368beff66b";
|
|
561
584
|
readonly source: 1;
|
|
@@ -844,6 +867,20 @@ export declare const workersAiCatalog: {
|
|
|
844
867
|
readonly currency: "USD";
|
|
845
868
|
}];
|
|
846
869
|
};
|
|
870
|
+
}, {
|
|
871
|
+
readonly id: "cb254e3b-372b-4d4e-8526-ada79940427a";
|
|
872
|
+
readonly source: 1;
|
|
873
|
+
readonly name: "@cf/qwen/qwen3-embedding-0.6b";
|
|
874
|
+
readonly description: "The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks. ";
|
|
875
|
+
readonly created_at: "2025-06-18 20:23:22.086";
|
|
876
|
+
readonly tags: readonly [];
|
|
877
|
+
readonly properties: {
|
|
878
|
+
readonly price: readonly [{
|
|
879
|
+
readonly unit: "per M input tokens";
|
|
880
|
+
readonly price: 0.012;
|
|
881
|
+
readonly currency: "USD";
|
|
882
|
+
}];
|
|
883
|
+
};
|
|
847
884
|
}, {
|
|
848
885
|
readonly id: "bc2b61f6-7eb3-4cdf-94f5-ffc128bd6aa4";
|
|
849
886
|
readonly source: 1;
|
|
@@ -988,6 +1025,7 @@ export declare const workersAiCatalog: {
|
|
|
988
1025
|
readonly currency: "USD";
|
|
989
1026
|
}];
|
|
990
1027
|
readonly partner: true;
|
|
1028
|
+
readonly terms: "https://deepgram.com/terms";
|
|
991
1029
|
readonly realtime: true;
|
|
992
1030
|
};
|
|
993
1031
|
}, {
|
|
@@ -1005,6 +1043,7 @@ export declare const workersAiCatalog: {
|
|
|
1005
1043
|
readonly currency: "USD";
|
|
1006
1044
|
}];
|
|
1007
1045
|
readonly partner: true;
|
|
1046
|
+
readonly terms: "https://deepgram.com/terms";
|
|
1008
1047
|
readonly realtime: true;
|
|
1009
1048
|
};
|
|
1010
1049
|
}, {
|
|
@@ -1022,6 +1061,7 @@ export declare const workersAiCatalog: {
|
|
|
1022
1061
|
readonly currency: "USD";
|
|
1023
1062
|
}];
|
|
1024
1063
|
readonly partner: true;
|
|
1064
|
+
readonly terms: "https://deepgram.com/terms";
|
|
1025
1065
|
readonly realtime: true;
|
|
1026
1066
|
};
|
|
1027
1067
|
}];
|
|
@@ -1052,7 +1092,13 @@ export declare const workersAiCatalog: {
|
|
|
1052
1092
|
readonly created_at: "2025-09-29 21:07:55.114";
|
|
1053
1093
|
readonly tags: readonly [];
|
|
1054
1094
|
readonly properties: {
|
|
1095
|
+
readonly price: readonly [{
|
|
1096
|
+
readonly unit: "per audio minute (websocket)";
|
|
1097
|
+
readonly price: 0;
|
|
1098
|
+
readonly currency: "USD";
|
|
1099
|
+
}];
|
|
1055
1100
|
readonly partner: true;
|
|
1101
|
+
readonly terms: "https://deepgram.com/terms";
|
|
1056
1102
|
readonly realtime: true;
|
|
1057
1103
|
};
|
|
1058
1104
|
}, {
|
|
@@ -1074,6 +1120,7 @@ export declare const workersAiCatalog: {
|
|
|
1074
1120
|
readonly currency: "USD";
|
|
1075
1121
|
}];
|
|
1076
1122
|
readonly partner: true;
|
|
1123
|
+
readonly terms: "https://deepgram.com/terms";
|
|
1077
1124
|
readonly realtime: true;
|
|
1078
1125
|
};
|
|
1079
1126
|
}, {
|
|
@@ -1165,6 +1212,7 @@ export declare const workersAiCatalog: {
|
|
|
1165
1212
|
readonly price: 0.00011;
|
|
1166
1213
|
readonly currency: "USD";
|
|
1167
1214
|
}];
|
|
1215
|
+
readonly terms: "https://bfl.ai/legal/terms-of-service";
|
|
1168
1216
|
};
|
|
1169
1217
|
}, {
|
|
1170
1218
|
readonly id: "7f797b20-3eb0-44fd-b571-6cbbaa3c423b";
|
|
@@ -1210,6 +1258,7 @@ export declare const workersAiCatalog: {
|
|
|
1210
1258
|
readonly currency: "USD";
|
|
1211
1259
|
}];
|
|
1212
1260
|
readonly partner: true;
|
|
1261
|
+
readonly terms: "https://leonardo.ai/terms-of-service/";
|
|
1213
1262
|
};
|
|
1214
1263
|
}, {
|
|
1215
1264
|
readonly id: "6d52253a-b731-4a03-b203-cde2d4fae871";
|
|
@@ -1263,6 +1312,7 @@ export declare const workersAiCatalog: {
|
|
|
1263
1312
|
readonly currency: "USD";
|
|
1264
1313
|
}];
|
|
1265
1314
|
readonly partner: true;
|
|
1315
|
+
readonly terms: "https://leonardo.ai/terms-of-service/";
|
|
1266
1316
|
};
|
|
1267
1317
|
}];
|
|
1268
1318
|
};
|
|
@@ -180,6 +180,7 @@ export const workersAiCatalog = {
|
|
|
180
180
|
created_at: '2025-01-22 23:26:23.495',
|
|
181
181
|
tags: [],
|
|
182
182
|
properties: {
|
|
183
|
+
context_window: 131072,
|
|
183
184
|
price: [
|
|
184
185
|
{
|
|
185
186
|
unit: 'per M input tokens',
|
|
@@ -515,6 +516,7 @@ export const workersAiCatalog = {
|
|
|
515
516
|
currency: 'USD',
|
|
516
517
|
},
|
|
517
518
|
],
|
|
519
|
+
function_calling: true,
|
|
518
520
|
},
|
|
519
521
|
},
|
|
520
522
|
{
|
|
@@ -634,6 +636,31 @@ export const workersAiCatalog = {
|
|
|
634
636
|
],
|
|
635
637
|
},
|
|
636
638
|
},
|
|
639
|
+
{
|
|
640
|
+
id: '4090e54c-eee4-4221-b410-10c1c0f92f17',
|
|
641
|
+
source: 1,
|
|
642
|
+
name: '@cf/qwen/qwen3-30b-a3b-fp8',
|
|
643
|
+
description: 'Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support.',
|
|
644
|
+
created_at: '2025-04-30 21:36:10.009',
|
|
645
|
+
tags: [],
|
|
646
|
+
properties: {
|
|
647
|
+
async_queue: true,
|
|
648
|
+
context_window: 32768,
|
|
649
|
+
price: [
|
|
650
|
+
{
|
|
651
|
+
unit: 'per M input tokens',
|
|
652
|
+
price: 0.051,
|
|
653
|
+
currency: 'USD',
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
unit: 'per M output tokens',
|
|
657
|
+
price: 0.34,
|
|
658
|
+
currency: 'USD',
|
|
659
|
+
},
|
|
660
|
+
],
|
|
661
|
+
function_calling: true,
|
|
662
|
+
},
|
|
663
|
+
},
|
|
637
664
|
{
|
|
638
665
|
id: '3dcb4f2d-26a8-412b-b6e3-2a368beff66b',
|
|
639
666
|
source: 1,
|
|
@@ -966,6 +993,23 @@ export const workersAiCatalog = {
|
|
|
966
993
|
],
|
|
967
994
|
},
|
|
968
995
|
},
|
|
996
|
+
{
|
|
997
|
+
id: 'cb254e3b-372b-4d4e-8526-ada79940427a',
|
|
998
|
+
source: 1,
|
|
999
|
+
name: '@cf/qwen/qwen3-embedding-0.6b',
|
|
1000
|
+
description: 'The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks. ',
|
|
1001
|
+
created_at: '2025-06-18 20:23:22.086',
|
|
1002
|
+
tags: [],
|
|
1003
|
+
properties: {
|
|
1004
|
+
price: [
|
|
1005
|
+
{
|
|
1006
|
+
unit: 'per M input tokens',
|
|
1007
|
+
price: 0.012,
|
|
1008
|
+
currency: 'USD',
|
|
1009
|
+
},
|
|
1010
|
+
],
|
|
1011
|
+
},
|
|
1012
|
+
},
|
|
969
1013
|
{
|
|
970
1014
|
id: 'bc2b61f6-7eb3-4cdf-94f5-ffc128bd6aa4',
|
|
971
1015
|
source: 1,
|
|
@@ -1136,6 +1180,7 @@ export const workersAiCatalog = {
|
|
|
1136
1180
|
},
|
|
1137
1181
|
],
|
|
1138
1182
|
partner: true,
|
|
1183
|
+
terms: 'https://deepgram.com/terms',
|
|
1139
1184
|
realtime: true,
|
|
1140
1185
|
},
|
|
1141
1186
|
},
|
|
@@ -1156,6 +1201,7 @@ export const workersAiCatalog = {
|
|
|
1156
1201
|
},
|
|
1157
1202
|
],
|
|
1158
1203
|
partner: true,
|
|
1204
|
+
terms: 'https://deepgram.com/terms',
|
|
1159
1205
|
realtime: true,
|
|
1160
1206
|
},
|
|
1161
1207
|
},
|
|
@@ -1176,6 +1222,7 @@ export const workersAiCatalog = {
|
|
|
1176
1222
|
},
|
|
1177
1223
|
],
|
|
1178
1224
|
partner: true,
|
|
1225
|
+
terms: 'https://deepgram.com/terms',
|
|
1179
1226
|
realtime: true,
|
|
1180
1227
|
},
|
|
1181
1228
|
},
|
|
@@ -1211,7 +1258,15 @@ export const workersAiCatalog = {
|
|
|
1211
1258
|
created_at: '2025-09-29 21:07:55.114',
|
|
1212
1259
|
tags: [],
|
|
1213
1260
|
properties: {
|
|
1261
|
+
price: [
|
|
1262
|
+
{
|
|
1263
|
+
unit: 'per audio minute (websocket)',
|
|
1264
|
+
price: 0,
|
|
1265
|
+
currency: 'USD',
|
|
1266
|
+
},
|
|
1267
|
+
],
|
|
1214
1268
|
partner: true,
|
|
1269
|
+
terms: 'https://deepgram.com/terms',
|
|
1215
1270
|
realtime: true,
|
|
1216
1271
|
},
|
|
1217
1272
|
},
|
|
@@ -1237,6 +1292,7 @@ export const workersAiCatalog = {
|
|
|
1237
1292
|
},
|
|
1238
1293
|
],
|
|
1239
1294
|
partner: true,
|
|
1295
|
+
terms: 'https://deepgram.com/terms',
|
|
1240
1296
|
realtime: true,
|
|
1241
1297
|
},
|
|
1242
1298
|
},
|
|
@@ -1343,6 +1399,7 @@ export const workersAiCatalog = {
|
|
|
1343
1399
|
currency: 'USD',
|
|
1344
1400
|
},
|
|
1345
1401
|
],
|
|
1402
|
+
terms: 'https://bfl.ai/legal/terms-of-service',
|
|
1346
1403
|
},
|
|
1347
1404
|
},
|
|
1348
1405
|
{
|
|
@@ -1396,6 +1453,7 @@ export const workersAiCatalog = {
|
|
|
1396
1453
|
},
|
|
1397
1454
|
],
|
|
1398
1455
|
partner: true,
|
|
1456
|
+
terms: 'https://leonardo.ai/terms-of-service/',
|
|
1399
1457
|
},
|
|
1400
1458
|
},
|
|
1401
1459
|
{
|
|
@@ -1459,6 +1517,7 @@ export const workersAiCatalog = {
|
|
|
1459
1517
|
},
|
|
1460
1518
|
],
|
|
1461
1519
|
partner: true,
|
|
1520
|
+
terms: 'https://leonardo.ai/terms-of-service/',
|
|
1462
1521
|
},
|
|
1463
1522
|
},
|
|
1464
1523
|
],
|
|
@@ -12,7 +12,7 @@ type cloudflareFilteredModelPossibilitiesRaw<M extends cloudflareModelTypes = cl
|
|
|
12
12
|
type cloudflareFilteredModelPossibilities<M extends cloudflareModelTypes = cloudflareModelTypes, K extends cloudflareModelPossibilitiesProperties<M> = cloudflareModelPossibilitiesProperties<M>, V extends cloudflareModelPossibilitiesRaw<M>['properties'][K] = any> = cloudflareFilteredModelPossibilitiesRaw<M, K, V>['name'];
|
|
13
13
|
export declare const enabledCloudflareLlmEmbeddingProviders: cloudflareModelPossibilities<'Text Embeddings'>[];
|
|
14
14
|
export declare const enabledCloudflareLlmProviders: cloudflareModelPossibilities<'Text Generation'>[];
|
|
15
|
-
export declare const enabledCloudflareLlmFunctionProviders: ("@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@cf/mistralai/mistral-small-3.1-24b-instruct" | "@cf/meta/llama-4-scout-17b-16e-instruct")[];
|
|
15
|
+
export declare const enabledCloudflareLlmFunctionProviders: ("@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/ibm-granite/granite-4.0-h-micro" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/mistralai/mistral-small-3.1-24b-instruct" | "@cf/meta/llama-4-scout-17b-16e-instruct")[];
|
|
16
16
|
export declare const enabledCloudflareLlmImageProviders: cloudflareModelPossibilities<'Text-to-Image'>[];
|
|
17
17
|
export type CloudflareModelsEnum<M extends cloudflareModelTypes = cloudflareModelTypes> = {
|
|
18
18
|
[K in cloudflareModelPossibilities<M>]: `workersai:${K}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"zod": "^4.1.12"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
106
|
-
"@types/validator": "^13.15.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20251120.0",
|
|
106
|
+
"@types/validator": "^13.15.10"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "21113c29503fc2d9e46c5cce17bb2bfe4ad3919a"
|
|
109
109
|
}
|