@chainfuse/types 2.8.0 → 2.9.1

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.
@@ -122,6 +122,7 @@ export declare const workersAiCatalog: {
122
122
  readonly price: 0.03;
123
123
  readonly currency: "USD";
124
124
  }];
125
+ readonly lora: true;
125
126
  };
126
127
  }, {
127
128
  readonly id: "ca54bcd6-0d98-4739-9b3b-5c8b4402193d";
@@ -224,6 +225,7 @@ export declare const workersAiCatalog: {
224
225
  readonly created_at: "2025-01-22 19:48:55.776";
225
226
  readonly tags: readonly [];
226
227
  readonly properties: {
228
+ readonly context_window: 80000;
227
229
  readonly price: readonly [{
228
230
  readonly unit: "per M input tokens";
229
231
  readonly price: 0.5;
@@ -365,6 +367,7 @@ export declare const workersAiCatalog: {
365
367
  readonly created_at: "2024-12-06 17:09:18.338";
366
368
  readonly tags: readonly [];
367
369
  readonly properties: {
370
+ readonly context_window: 24000;
368
371
  readonly price: readonly [{
369
372
  readonly unit: "per M input tokens";
370
373
  readonly price: 0.29;
@@ -374,7 +377,6 @@ export declare const workersAiCatalog: {
374
377
  readonly price: 2.25;
375
378
  readonly currency: "USD";
376
379
  }];
377
- readonly context_window: 24000;
378
380
  readonly function_calling: true;
379
381
  readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_3/LICENSE";
380
382
  };
@@ -553,6 +555,7 @@ export declare const workersAiCatalog: {
553
555
  readonly price: 0.68;
554
556
  readonly currency: "USD";
555
557
  }];
558
+ readonly lora: true;
556
559
  readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE";
557
560
  };
558
561
  }, {
@@ -636,6 +639,7 @@ export declare const workersAiCatalog: {
636
639
  readonly created_at: "2025-04-05 20:25:56.137";
637
640
  readonly tags: readonly [];
638
641
  readonly properties: {
642
+ readonly context_window: 131000;
639
643
  readonly price: readonly [{
640
644
  readonly unit: "per M input tokens";
641
645
  readonly price: 0;
@@ -660,6 +664,7 @@ export declare const workersAiCatalog: {
660
664
  readonly created_at: "2024-05-22 19:27:09.781";
661
665
  readonly tags: readonly [];
662
666
  readonly properties: {
667
+ readonly async_queue: true;
663
668
  readonly price: readonly [{
664
669
  readonly unit: "per M input tokens";
665
670
  readonly price: 0.012;
@@ -674,6 +679,7 @@ export declare const workersAiCatalog: {
674
679
  readonly created_at: "2023-11-07 15:43:58.042";
675
680
  readonly tags: readonly [];
676
681
  readonly properties: {
682
+ readonly async_queue: true;
677
683
  readonly price: readonly [{
678
684
  readonly unit: "per M input tokens";
679
685
  readonly price: 0.02;
@@ -691,6 +697,7 @@ export declare const workersAiCatalog: {
691
697
  readonly created_at: "2023-09-25 19:21:11.898";
692
698
  readonly tags: readonly [];
693
699
  readonly properties: {
700
+ readonly async_queue: true;
694
701
  readonly price: readonly [{
695
702
  readonly unit: "per M input tokens";
696
703
  readonly price: 0.067;
@@ -708,12 +715,13 @@ export declare const workersAiCatalog: {
708
715
  readonly created_at: "2023-11-07 15:43:58.042";
709
716
  readonly tags: readonly [];
710
717
  readonly properties: {
718
+ readonly async_queue: true;
711
719
  readonly price: readonly [{
712
720
  readonly unit: "per M input tokens";
713
721
  readonly price: 0.2;
714
722
  readonly currency: "USD";
715
723
  }];
716
- readonly info: "https://huggingface.co/BAAI/bge-base-en-v1.5";
724
+ readonly info: "https://huggingface.co/BAAI/bge-large-en-v1.5";
717
725
  readonly max_input_tokens: 512;
718
726
  readonly output_dimensions: 1024;
719
727
  };
@@ -744,7 +752,13 @@ export declare const workersAiCatalog: {
744
752
  readonly description: "Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding. You can get a relevance score by inputting query and passage to the reranker. And the score can be mapped to a float value in [0,1] by sigmoid function.\n\n";
745
753
  readonly created_at: "2025-02-14 12:28:19.009";
746
754
  readonly tags: readonly [];
747
- readonly properties: {};
755
+ readonly properties: {
756
+ readonly price: readonly [{
757
+ readonly unit: "per M input tokens";
758
+ readonly price: 0.0031;
759
+ readonly currency: "USD";
760
+ }];
761
+ };
748
762
  }];
749
763
  };
750
764
  readonly 'Object Detection': {
@@ -759,6 +773,11 @@ export declare const workersAiCatalog: {
759
773
  readonly tags: readonly [];
760
774
  readonly properties: {
761
775
  readonly beta: true;
776
+ readonly price: readonly [{
777
+ readonly unit: "per inference request";
778
+ readonly price: 0.0000075;
779
+ readonly currency: "USD";
780
+ }];
762
781
  };
763
782
  }];
764
783
  };
@@ -772,7 +791,13 @@ export declare const workersAiCatalog: {
772
791
  readonly description: "MeloTTS is a high-quality multi-lingual text-to-speech library by MyShell.ai.";
773
792
  readonly created_at: "2024-07-19 15:51:04.819";
774
793
  readonly tags: readonly [];
775
- readonly properties: {};
794
+ readonly properties: {
795
+ readonly price: readonly [{
796
+ readonly unit: "per audio minute";
797
+ readonly price: 0.0002;
798
+ readonly currency: "USD";
799
+ }];
800
+ };
776
801
  }];
777
802
  };
778
803
  readonly 'Automatic Speech Recognition': {
@@ -857,6 +882,11 @@ export declare const workersAiCatalog: {
857
882
  readonly tags: readonly [];
858
883
  readonly properties: {
859
884
  readonly beta: true;
885
+ readonly price: readonly [{
886
+ readonly unit: "per step";
887
+ readonly price: 0;
888
+ readonly currency: "USD";
889
+ }];
860
890
  readonly info: "https://huggingface.co/runwayml/stable-diffusion-inpainting";
861
891
  readonly terms: "https://github.com/runwayml/stable-diffusion/blob/main/LICENSE";
862
892
  };
@@ -887,6 +917,11 @@ export declare const workersAiCatalog: {
887
917
  readonly tags: readonly [];
888
918
  readonly properties: {
889
919
  readonly beta: true;
920
+ readonly price: readonly [{
921
+ readonly unit: "per step";
922
+ readonly price: 0;
923
+ readonly currency: "USD";
924
+ }];
890
925
  readonly info: "https://huggingface.co/ByteDance/SDXL-Lightning";
891
926
  };
892
927
  }, {
@@ -909,6 +944,11 @@ export declare const workersAiCatalog: {
909
944
  readonly tags: readonly [];
910
945
  readonly properties: {
911
946
  readonly beta: true;
947
+ readonly price: readonly [{
948
+ readonly unit: "per step";
949
+ readonly price: 0;
950
+ readonly currency: "USD";
951
+ }];
912
952
  readonly info: "https://stability.ai/stable-diffusion";
913
953
  readonly terms: "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md";
914
954
  };
@@ -921,6 +961,11 @@ export declare const workersAiCatalog: {
921
961
  readonly tags: readonly [];
922
962
  readonly properties: {
923
963
  readonly beta: true;
964
+ readonly price: readonly [{
965
+ readonly unit: "per step";
966
+ readonly price: 0;
967
+ readonly currency: "USD";
968
+ }];
924
969
  readonly info: "https://huggingface.co/runwayml/stable-diffusion-v1-5";
925
970
  readonly terms: "https://github.com/runwayml/stable-diffusion/blob/main/LICENSE";
926
971
  };
@@ -957,6 +1002,7 @@ export declare const workersAiCatalog: {
957
1002
  readonly created_at: "2023-09-25 19:21:11.898";
958
1003
  readonly tags: readonly [];
959
1004
  readonly properties: {
1005
+ readonly async_queue: true;
960
1006
  readonly price: readonly [{
961
1007
  readonly unit: "per M input tokens";
962
1008
  readonly price: 0.34;
@@ -984,6 +1030,11 @@ export declare const workersAiCatalog: {
984
1030
  readonly tags: readonly [];
985
1031
  readonly properties: {
986
1032
  readonly beta: true;
1033
+ readonly price: readonly [{
1034
+ readonly unit: "per M input tokens";
1035
+ readonly price: 0;
1036
+ readonly currency: "USD";
1037
+ }];
987
1038
  };
988
1039
  }];
989
1040
  };
@@ -139,6 +139,7 @@ export const workersAiCatalog = {
139
139
  currency: 'USD',
140
140
  },
141
141
  ],
142
+ lora: true,
142
143
  },
143
144
  },
144
145
  {
@@ -254,6 +255,7 @@ export const workersAiCatalog = {
254
255
  created_at: '2025-01-22 19:48:55.776',
255
256
  tags: [],
256
257
  properties: {
258
+ context_window: 80000,
257
259
  price: [
258
260
  {
259
261
  unit: 'per M input tokens',
@@ -414,6 +416,7 @@ export const workersAiCatalog = {
414
416
  created_at: '2024-12-06 17:09:18.338',
415
417
  tags: [],
416
418
  properties: {
419
+ context_window: 24000,
417
420
  price: [
418
421
  {
419
422
  unit: 'per M input tokens',
@@ -426,7 +429,6 @@ export const workersAiCatalog = {
426
429
  currency: 'USD',
427
430
  },
428
431
  ],
429
- context_window: 24000,
430
432
  function_calling: true,
431
433
  terms: 'https://github.com/meta-llama/llama-models/blob/main/models/llama3_3/LICENSE',
432
434
  },
@@ -629,6 +631,7 @@ export const workersAiCatalog = {
629
631
  currency: 'USD',
630
632
  },
631
633
  ],
634
+ lora: true,
632
635
  terms: 'https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE',
633
636
  },
634
637
  },
@@ -719,6 +722,7 @@ export const workersAiCatalog = {
719
722
  created_at: '2025-04-05 20:25:56.137',
720
723
  tags: [],
721
724
  properties: {
725
+ context_window: 131000,
722
726
  price: [
723
727
  {
724
728
  unit: 'per M input tokens',
@@ -748,6 +752,7 @@ export const workersAiCatalog = {
748
752
  created_at: '2024-05-22 19:27:09.781',
749
753
  tags: [],
750
754
  properties: {
755
+ async_queue: true,
751
756
  price: [
752
757
  {
753
758
  unit: 'per M input tokens',
@@ -765,6 +770,7 @@ export const workersAiCatalog = {
765
770
  created_at: '2023-11-07 15:43:58.042',
766
771
  tags: [],
767
772
  properties: {
773
+ async_queue: true,
768
774
  price: [
769
775
  {
770
776
  unit: 'per M input tokens',
@@ -785,6 +791,7 @@ export const workersAiCatalog = {
785
791
  created_at: '2023-09-25 19:21:11.898',
786
792
  tags: [],
787
793
  properties: {
794
+ async_queue: true,
788
795
  price: [
789
796
  {
790
797
  unit: 'per M input tokens',
@@ -805,6 +812,7 @@ export const workersAiCatalog = {
805
812
  created_at: '2023-11-07 15:43:58.042',
806
813
  tags: [],
807
814
  properties: {
815
+ async_queue: true,
808
816
  price: [
809
817
  {
810
818
  unit: 'per M input tokens',
@@ -812,7 +820,7 @@ export const workersAiCatalog = {
812
820
  currency: 'USD',
813
821
  },
814
822
  ],
815
- info: 'https://huggingface.co/BAAI/bge-base-en-v1.5',
823
+ info: 'https://huggingface.co/BAAI/bge-large-en-v1.5',
816
824
  max_input_tokens: 512,
817
825
  output_dimensions: 1024,
818
826
  },
@@ -848,7 +856,15 @@ export const workersAiCatalog = {
848
856
  description: 'Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding. You can get a relevance score by inputting query and passage to the reranker. And the score can be mapped to a float value in [0,1] by sigmoid function.\n\n',
849
857
  created_at: '2025-02-14 12:28:19.009',
850
858
  tags: [],
851
- properties: {},
859
+ properties: {
860
+ price: [
861
+ {
862
+ unit: 'per M input tokens',
863
+ price: 0.0031,
864
+ currency: 'USD',
865
+ },
866
+ ],
867
+ },
852
868
  },
853
869
  ],
854
870
  },
@@ -865,6 +881,13 @@ export const workersAiCatalog = {
865
881
  tags: [],
866
882
  properties: {
867
883
  beta: true,
884
+ price: [
885
+ {
886
+ unit: 'per inference request',
887
+ price: 0.0000075,
888
+ currency: 'USD',
889
+ },
890
+ ],
868
891
  },
869
892
  },
870
893
  ],
@@ -880,7 +903,15 @@ export const workersAiCatalog = {
880
903
  description: 'MeloTTS is a high-quality multi-lingual text-to-speech library by MyShell.ai.',
881
904
  created_at: '2024-07-19 15:51:04.819',
882
905
  tags: [],
883
- properties: {},
906
+ properties: {
907
+ price: [
908
+ {
909
+ unit: 'per audio minute',
910
+ price: 0.0002,
911
+ currency: 'USD',
912
+ },
913
+ ],
914
+ },
884
915
  },
885
916
  ],
886
917
  },
@@ -978,6 +1009,13 @@ export const workersAiCatalog = {
978
1009
  tags: [],
979
1010
  properties: {
980
1011
  beta: true,
1012
+ price: [
1013
+ {
1014
+ unit: 'per step',
1015
+ price: 0,
1016
+ currency: 'USD',
1017
+ },
1018
+ ],
981
1019
  info: 'https://huggingface.co/runwayml/stable-diffusion-inpainting',
982
1020
  terms: 'https://github.com/runwayml/stable-diffusion/blob/main/LICENSE',
983
1021
  },
@@ -1013,6 +1051,13 @@ export const workersAiCatalog = {
1013
1051
  tags: [],
1014
1052
  properties: {
1015
1053
  beta: true,
1054
+ price: [
1055
+ {
1056
+ unit: 'per step',
1057
+ price: 0,
1058
+ currency: 'USD',
1059
+ },
1060
+ ],
1016
1061
  info: 'https://huggingface.co/ByteDance/SDXL-Lightning',
1017
1062
  },
1018
1063
  },
@@ -1037,6 +1082,13 @@ export const workersAiCatalog = {
1037
1082
  tags: [],
1038
1083
  properties: {
1039
1084
  beta: true,
1085
+ price: [
1086
+ {
1087
+ unit: 'per step',
1088
+ price: 0,
1089
+ currency: 'USD',
1090
+ },
1091
+ ],
1040
1092
  info: 'https://stability.ai/stable-diffusion',
1041
1093
  terms: 'https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md',
1042
1094
  },
@@ -1050,6 +1102,13 @@ export const workersAiCatalog = {
1050
1102
  tags: [],
1051
1103
  properties: {
1052
1104
  beta: true,
1105
+ price: [
1106
+ {
1107
+ unit: 'per step',
1108
+ price: 0,
1109
+ currency: 'USD',
1110
+ },
1111
+ ],
1053
1112
  info: 'https://huggingface.co/runwayml/stable-diffusion-v1-5',
1054
1113
  terms: 'https://github.com/runwayml/stable-diffusion/blob/main/LICENSE',
1055
1114
  },
@@ -1092,6 +1151,7 @@ export const workersAiCatalog = {
1092
1151
  created_at: '2023-09-25 19:21:11.898',
1093
1152
  tags: [],
1094
1153
  properties: {
1154
+ async_queue: true,
1095
1155
  price: [
1096
1156
  {
1097
1157
  unit: 'per M input tokens',
@@ -1124,6 +1184,13 @@ export const workersAiCatalog = {
1124
1184
  tags: [],
1125
1185
  properties: {
1126
1186
  beta: true,
1187
+ price: [
1188
+ {
1189
+ unit: 'per M input tokens',
1190
+ price: 0,
1191
+ currency: 'USD',
1192
+ },
1193
+ ],
1127
1194
  },
1128
1195
  },
1129
1196
  ],
package/dist/index.d.ts CHANGED
@@ -55,9 +55,14 @@ export type CustomLoging = boolean | CustomLogCallback;
55
55
  /**
56
56
  * @link https://developers.cloudflare.com/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction
57
57
  */
58
- export declare enum DOLocations {
58
+ export declare enum DOJurisdictions {
59
59
  'The European Union' = "eu",
60
- 'FedRAMP-compliant data centers' = "fedramp",
60
+ 'FedRAMP-compliant data centers' = "fedramp"
61
+ }
62
+ /**
63
+ * @link https://developers.cloudflare.com/durable-objects/reference/data-location/#provide-a-location-hint
64
+ */
65
+ export declare enum DOLocations {
61
66
  'Western North America' = "wnam",
62
67
  'Eastern North America' = "enam",
63
68
  'South America' = "sam",
package/dist/index.js CHANGED
@@ -5,10 +5,16 @@ export * from './discourse/index.js';
5
5
  /**
6
6
  * @link https://developers.cloudflare.com/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction
7
7
  */
8
+ export var DOJurisdictions;
9
+ (function (DOJurisdictions) {
10
+ DOJurisdictions["The European Union"] = "eu";
11
+ DOJurisdictions["FedRAMP-compliant data centers"] = "fedramp";
12
+ })(DOJurisdictions || (DOJurisdictions = {}));
13
+ /**
14
+ * @link https://developers.cloudflare.com/durable-objects/reference/data-location/#provide-a-location-hint
15
+ */
8
16
  export var DOLocations;
9
17
  (function (DOLocations) {
10
- DOLocations["The European Union"] = "eu";
11
- DOLocations["FedRAMP-compliant data centers"] = "fedramp";
12
18
  DOLocations["Western North America"] = "wnam";
13
19
  DOLocations["Eastern North America"] = "enam";
14
20
  DOLocations["South America"] = "sam";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -94,8 +94,8 @@
94
94
  "zod": "^3.24.2"
95
95
  },
96
96
  "devDependencies": {
97
- "@cloudflare/workers-types": "^4.20250409.0",
97
+ "@cloudflare/workers-types": "^4.20250410.0",
98
98
  "@types/validator": "^13.12.3"
99
99
  },
100
- "gitHead": "726051ba6c7f31753cdd6e4c86ee5e2e5c132601"
100
+ "gitHead": "e7ec0b382add48d991bacd096563691bc74f9a46"
101
101
  }