@chainfuse/types 2.10.13 → 2.10.14
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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z as z3 } from 'zod/v3';
|
|
2
|
+
import { z as z4 } from 'zod/v4';
|
|
2
3
|
import type { ZodCoordinate } from '../zod/index.js';
|
|
3
4
|
import { type CloudflareFunctionModelsEnum, type CloudflareModelsEnum } from './workers-ai/index.js';
|
|
4
5
|
export interface Coordinate {
|
|
@@ -69,7 +70,7 @@ export declare namespace AiModels {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
export declare const ZodLanguageModelValues3:
|
|
73
|
+
export declare const ZodLanguageModelValues3: z3.ZodEnum<["workersai:@cf/qwen/qwen1.5-0.5b-chat" | "workersai:@cf/google/gemma-2b-it-lora" | "workersai:@hf/nexusflow/starling-lm-7b-beta" | "workersai:@cf/meta/llama-3-8b-instruct" | "workersai:@cf/meta/llama-3.2-3b-instruct" | "workersai:@hf/thebloke/llamaguard-7b-awq" | "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq" | "workersai:@cf/meta/llama-guard-3-8b" | "workersai:@cf/meta/llama-2-7b-chat-fp16" | "workersai:@cf/mistral/mistral-7b-instruct-v0.1" | "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora" | "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0" | "workersai:@hf/mistral/mistral-7b-instruct-v0.2" | "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16" | "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "workersai:@cf/thebloke/discolm-german-7b-v1-awq" | "workersai:@cf/meta/llama-2-7b-chat-int8" | "workersai:@cf/meta/llama-3.1-8b-instruct-fp8" | "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq" | "workersai:@cf/qwen/qwen1.5-7b-chat-awq" | "workersai:@cf/meta/llama-3.2-1b-instruct" | "workersai:@hf/thebloke/llama-2-13b-chat-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq" | "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora" | "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq" | "workersai:@cf/qwen/qwen2.5-coder-32b-instruct" | "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct" | "workersai:@cf/tiiuae/falcon-7b-instruct" | "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b" | "workersai:@cf/meta/llama-3.1-8b-instruct-awq" | "workersai:@hf/thebloke/zephyr-7b-beta-awq" | "workersai:@cf/google/gemma-7b-it-lora" | "workersai:@cf/qwen/qwen1.5-1.8b-chat" | "workersai:@cf/mistralai/mistral-small-3.1-24b-instruct" | "workersai:@cf/meta/llama-3-8b-instruct-awq" | "workersai:@cf/meta/llama-3.2-11b-vision-instruct" | "workersai:@cf/defog/sqlcoder-7b-2" | "workersai:@cf/microsoft/phi-2" | "workersai:@hf/meta-llama/meta-llama-3-8b-instruct" | "workersai:@hf/google/gemma-7b-it" | "workersai:@cf/qwen/qwen1.5-14b-chat-awq" | "workersai:@cf/openchat/openchat-3.5-0106" | "workersai:@cf/meta/llama-4-scout-17b-16e-instruct" | "workersai:@cf/google/gemma-3-12b-it" | "workersai:@cf/qwen/qwq-32b" | AiModels.LanguageModels.Azure | AiModels.LanguageModels.Anthropic | AiModels.LanguageModels.GoogleGenerativeAi | AiModels.LanguageModels.OpenAi, ...("workersai:@cf/qwen/qwen1.5-0.5b-chat" | "workersai:@cf/google/gemma-2b-it-lora" | "workersai:@hf/nexusflow/starling-lm-7b-beta" | "workersai:@cf/meta/llama-3-8b-instruct" | "workersai:@cf/meta/llama-3.2-3b-instruct" | "workersai:@hf/thebloke/llamaguard-7b-awq" | "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq" | "workersai:@cf/meta/llama-guard-3-8b" | "workersai:@cf/meta/llama-2-7b-chat-fp16" | "workersai:@cf/mistral/mistral-7b-instruct-v0.1" | "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora" | "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0" | "workersai:@hf/mistral/mistral-7b-instruct-v0.2" | "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16" | "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "workersai:@cf/thebloke/discolm-german-7b-v1-awq" | "workersai:@cf/meta/llama-2-7b-chat-int8" | "workersai:@cf/meta/llama-3.1-8b-instruct-fp8" | "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq" | "workersai:@cf/qwen/qwen1.5-7b-chat-awq" | "workersai:@cf/meta/llama-3.2-1b-instruct" | "workersai:@hf/thebloke/llama-2-13b-chat-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq" | "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora" | "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq" | "workersai:@cf/qwen/qwen2.5-coder-32b-instruct" | "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct" | "workersai:@cf/tiiuae/falcon-7b-instruct" | "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b" | "workersai:@cf/meta/llama-3.1-8b-instruct-awq" | "workersai:@hf/thebloke/zephyr-7b-beta-awq" | "workersai:@cf/google/gemma-7b-it-lora" | "workersai:@cf/qwen/qwen1.5-1.8b-chat" | "workersai:@cf/mistralai/mistral-small-3.1-24b-instruct" | "workersai:@cf/meta/llama-3-8b-instruct-awq" | "workersai:@cf/meta/llama-3.2-11b-vision-instruct" | "workersai:@cf/defog/sqlcoder-7b-2" | "workersai:@cf/microsoft/phi-2" | "workersai:@hf/meta-llama/meta-llama-3-8b-instruct" | "workersai:@hf/google/gemma-7b-it" | "workersai:@cf/qwen/qwen1.5-14b-chat-awq" | "workersai:@cf/openchat/openchat-3.5-0106" | "workersai:@cf/meta/llama-4-scout-17b-16e-instruct" | "workersai:@cf/google/gemma-3-12b-it" | "workersai:@cf/qwen/qwq-32b" | AiModels.LanguageModels.Azure | AiModels.LanguageModels.Anthropic | AiModels.LanguageModels.GoogleGenerativeAi | AiModels.LanguageModels.OpenAi)[]]>;
|
|
73
74
|
export declare const ZodLanguageModelValues: z4.ZodEnum<{
|
|
74
75
|
"workersai:@cf/qwen/qwen1.5-0.5b-chat": "workersai:@cf/qwen/qwen1.5-0.5b-chat";
|
|
75
76
|
"workersai:@cf/google/gemma-2b-it-lora": "workersai:@cf/google/gemma-2b-it-lora";
|
|
@@ -138,7 +139,7 @@ export declare const ZodLanguageModelValues: z4.ZodEnum<{
|
|
|
138
139
|
"openai:o1-preview": AiModels.LanguageModels.OpenAi.o1;
|
|
139
140
|
}>;
|
|
140
141
|
export type LanguageModelValues = z4.infer<typeof ZodLanguageModelValues>;
|
|
141
|
-
export declare const ZodImageModelValues3:
|
|
142
|
+
export declare const ZodImageModelValues3: z3.ZodEnum<["workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting" | "workersai:@cf/black-forest-labs/flux-1-schnell" | "workersai:@cf/bytedance/stable-diffusion-xl-lightning" | "workersai:@cf/lykon/dreamshaper-8-lcm" | "workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0" | "workersai:@cf/runwayml/stable-diffusion-v1-5-img2img" | AiModels.ImageModels.Azure | AiModels.ImageModels.GoogleGenerativeAi | AiModels.ImageModels.OpenAi, ...("workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting" | "workersai:@cf/black-forest-labs/flux-1-schnell" | "workersai:@cf/bytedance/stable-diffusion-xl-lightning" | "workersai:@cf/lykon/dreamshaper-8-lcm" | "workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0" | "workersai:@cf/runwayml/stable-diffusion-v1-5-img2img" | AiModels.ImageModels.Azure | AiModels.ImageModels.GoogleGenerativeAi | AiModels.ImageModels.OpenAi)[]]>;
|
|
142
143
|
export declare const ZodImageModelValues: z4.ZodEnum<{
|
|
143
144
|
"workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting": "workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting";
|
|
144
145
|
"workersai:@cf/black-forest-labs/flux-1-schnell": "workersai:@cf/black-forest-labs/flux-1-schnell";
|
|
@@ -154,7 +155,7 @@ export declare const ZodImageModelValues: z4.ZodEnum<{
|
|
|
154
155
|
"openai:dall-e-2": AiModels.ImageModels.OpenAi.dalle2;
|
|
155
156
|
}>;
|
|
156
157
|
export type ImageModelValues = z4.infer<typeof ZodImageModelValues>;
|
|
157
|
-
export declare const ZodTextEmbeddingModelValues3:
|
|
158
|
+
export declare const ZodTextEmbeddingModelValues3: z3.ZodEnum<["workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi, ...("workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi)[]]>;
|
|
158
159
|
export declare const ZodTextEmbeddingModelValues: z4.ZodEnum<{
|
|
159
160
|
"workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
|
|
160
161
|
"workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
|
package/dist/ai-tools/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z as z3 } from 'zod/v3';
|
|
2
|
+
import { z as z4 } from 'zod/v4';
|
|
1
3
|
import { enabledCloudflareLlmEmbeddingProviders, enabledCloudflareLlmFunctionProviders, enabledCloudflareLlmImageProviders, enabledCloudflareLlmProviders } from './workers-ai/index.js';
|
|
2
4
|
export var AiModels;
|
|
3
5
|
(function (AiModels) {
|
|
@@ -83,20 +85,20 @@ const ZodLanguageModelValuesRaw = Object.entries(AiModels.LanguageModels).reduce
|
|
|
83
85
|
acc.push(value);
|
|
84
86
|
return acc;
|
|
85
87
|
}, []);
|
|
86
|
-
export const ZodLanguageModelValues3 =
|
|
87
|
-
export const ZodLanguageModelValues =
|
|
88
|
+
export const ZodLanguageModelValues3 = z3.enum(Object.values(Object.assign({}, ...ZodLanguageModelValuesRaw)));
|
|
89
|
+
export const ZodLanguageModelValues = z4.enum(Object.values(Object.assign({}, ...ZodLanguageModelValuesRaw)));
|
|
88
90
|
const ZodImageModelValuesRaw = Object.entries(AiModels.ImageModels).reduce((acc, [, value]) => {
|
|
89
91
|
acc.push(value);
|
|
90
92
|
return acc;
|
|
91
93
|
}, []);
|
|
92
|
-
export const ZodImageModelValues3 =
|
|
93
|
-
export const ZodImageModelValues =
|
|
94
|
+
export const ZodImageModelValues3 = z3.enum(Object.values(Object.assign({}, ...ZodImageModelValuesRaw)));
|
|
95
|
+
export const ZodImageModelValues = z4.enum(Object.values(Object.assign({}, ...ZodImageModelValuesRaw)));
|
|
94
96
|
const ZodTextEmbeddingModelValuesRaw = Object.entries(AiModels.TextEmbeddingModels).reduce((acc, [, value]) => {
|
|
95
97
|
acc.push(value);
|
|
96
98
|
return acc;
|
|
97
99
|
}, []);
|
|
98
|
-
export const ZodTextEmbeddingModelValues3 =
|
|
99
|
-
export const ZodTextEmbeddingModelValues =
|
|
100
|
+
export const ZodTextEmbeddingModelValues3 = z3.enum(Object.values(Object.assign({}, ...ZodTextEmbeddingModelValuesRaw)));
|
|
101
|
+
export const ZodTextEmbeddingModelValues = z4.enum(Object.values(Object.assign({}, ...ZodTextEmbeddingModelValuesRaw)));
|
|
100
102
|
export const default_mc_generic = AiModels.LanguageModels.Azure.gpt4o_mini;
|
|
101
103
|
export const default_mc_summary = AiModels.LanguageModels.Azure.gpt4o;
|
|
102
104
|
export const default_mc_extraction = AiModels.LanguageModels.Azure.gpt4o_mini;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"@cloudflare/workers-types": "^4.20250521.0",
|
|
106
106
|
"@types/validator": "^13.15.1"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "327d4610ce4ab70dcf7f7559c887daf761bf9f37"
|
|
109
109
|
}
|