@chainfuse/types 2.10.0 → 2.10.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.
@@ -556,6 +556,7 @@ export declare const workersAiCatalog: {
556
556
  readonly price: 0.56;
557
557
  readonly currency: "USD";
558
558
  }];
559
+ readonly function_calling: true;
559
560
  };
560
561
  }, {
561
562
  readonly id: "31097538-a3ff-4e6e-bb56-ad0e1f428b61";
@@ -682,13 +683,14 @@ export declare const workersAiCatalog: {
682
683
  readonly context_window: 131000;
683
684
  readonly price: readonly [{
684
685
  readonly unit: "per M input tokens";
685
- readonly price: 0;
686
+ readonly price: 0.27;
686
687
  readonly currency: "USD";
687
688
  }, {
688
689
  readonly unit: "per M output tokens";
689
- readonly price: 0;
690
+ readonly price: 0.85;
690
691
  readonly currency: "USD";
691
692
  }];
693
+ readonly function_calling: true;
692
694
  readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama4/LICENSE";
693
695
  };
694
696
  }, {
@@ -699,7 +701,7 @@ export declare const workersAiCatalog: {
699
701
  readonly created_at: "2025-03-18 03:58:02.423";
700
702
  readonly tags: readonly [];
701
703
  readonly properties: {
702
- readonly context_window: 1280000;
704
+ readonly context_window: 80000;
703
705
  readonly price: readonly [{
704
706
  readonly unit: "per M input tokens";
705
707
  readonly price: 0.35;
@@ -632,6 +632,7 @@ export const workersAiCatalog = {
632
632
  currency: 'USD',
633
633
  },
634
634
  ],
635
+ function_calling: true,
635
636
  },
636
637
  },
637
638
  {
@@ -774,15 +775,16 @@ export const workersAiCatalog = {
774
775
  price: [
775
776
  {
776
777
  unit: 'per M input tokens',
777
- price: 0,
778
+ price: 0.27,
778
779
  currency: 'USD',
779
780
  },
780
781
  {
781
782
  unit: 'per M output tokens',
782
- price: 0,
783
+ price: 0.85,
783
784
  currency: 'USD',
784
785
  },
785
786
  ],
787
+ function_calling: true,
786
788
  terms: 'https://github.com/meta-llama/llama-models/blob/main/models/llama4/LICENSE',
787
789
  },
788
790
  },
@@ -794,7 +796,7 @@ export const workersAiCatalog = {
794
796
  created_at: '2025-03-18 03:58:02.423',
795
797
  tags: [],
796
798
  properties: {
797
- context_window: 1280000,
799
+ context_window: 80000,
798
800
  price: [
799
801
  {
800
802
  unit: 'per M input tokens',
@@ -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")[];
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")[];
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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export * from './ai-tools/index.js';
2
3
  export * from './d0/index.js';
3
4
  export * from './d1/index.js';
@@ -73,3 +74,11 @@ export declare enum DOLocations {
73
74
  'Africa' = "afr",
74
75
  'Middle East' = "me"
75
76
  }
77
+ /**
78
+ * @link https://zod.dev/?id=json-type
79
+ */
80
+ declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
81
+ type Json = z.infer<typeof literalSchema> | {
82
+ [key: string]: Json;
83
+ } | Json[];
84
+ export declare const jsonSchema: z.ZodType<Json>;
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export * from './ai-tools/index.js';
2
3
  export * from './d0/index.js';
3
4
  export * from './d1/index.js';
@@ -25,3 +26,8 @@ export var DOLocations;
25
26
  DOLocations["Africa"] = "afr";
26
27
  DOLocations["Middle East"] = "me";
27
28
  })(DOLocations || (DOLocations = {}));
29
+ /**
30
+ * @link https://zod.dev/?id=json-type
31
+ */
32
+ const literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
33
+ export const jsonSchema = z.lazy(() => z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -91,11 +91,11 @@
91
91
  "prettier": "@demosjarco/prettier-config",
92
92
  "dependencies": {
93
93
  "validator": "^13.15.0",
94
- "zod": "^3.24.2"
94
+ "zod": "^3.24.3"
95
95
  },
96
96
  "devDependencies": {
97
- "@cloudflare/workers-types": "^4.20250410.0",
98
- "@types/validator": "^13.12.3"
97
+ "@cloudflare/workers-types": "^4.20250417.0",
98
+ "@types/validator": "^13.15.0"
99
99
  },
100
- "gitHead": "c480462d073b3d89c915eb003b0ba789fe79d414"
100
+ "gitHead": "ed937523841735fb5d944dfe1a5bc8d396a601c5"
101
101
  }