@chainfuse/types 2.10.5 → 2.10.7
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,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { EnumOrEnumLike } from '../index.js';
|
|
3
2
|
import type { ZodCoordinate } from '../zod/index.js';
|
|
4
3
|
import { type CloudflareFunctionModelsEnum, type CloudflareModelsEnum } from './workers-ai/index.js';
|
|
5
4
|
export interface Coordinate {
|
|
@@ -70,11 +69,11 @@ export declare namespace AiModels {
|
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
|
-
export declare const ZodLanguageModelValues: z.ZodEnum<[
|
|
72
|
+
export declare const ZodLanguageModelValues: z.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" | "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" | "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)[]]>;
|
|
74
73
|
export type LanguageModelValues = z.infer<typeof ZodLanguageModelValues>;
|
|
75
|
-
export declare const ZodImageModelValues: z.ZodEnum<[
|
|
74
|
+
export declare const ZodImageModelValues: z.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)[]]>;
|
|
76
75
|
export type ImageModelValues = z.infer<typeof ZodImageModelValues>;
|
|
77
|
-
export declare const ZodTextEmbeddingModelValues: z.ZodEnum<[
|
|
76
|
+
export declare const ZodTextEmbeddingModelValues: z.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)[]]>;
|
|
78
77
|
export type TextEmbeddingModelValues = z.infer<typeof ZodTextEmbeddingModelValues>;
|
|
79
78
|
export declare const default_mc_generic: LanguageModelValues;
|
|
80
79
|
export declare const default_mc_summary: LanguageModelValues;
|
package/dist/ai-tools/index.js
CHANGED
|
@@ -84,17 +84,17 @@ const ZodLanguageModelValuesRaw = Object.entries(AiModels.LanguageModels).reduce
|
|
|
84
84
|
acc.push(value);
|
|
85
85
|
return acc;
|
|
86
86
|
}, []);
|
|
87
|
-
export const ZodLanguageModelValues = z.enum(ZodLanguageModelValuesRaw);
|
|
87
|
+
export const ZodLanguageModelValues = z.enum(Object.values(Object.assign({}, ...ZodLanguageModelValuesRaw)));
|
|
88
88
|
const ZodImageModelValuesRaw = Object.entries(AiModels.ImageModels).reduce((acc, [, value]) => {
|
|
89
89
|
acc.push(value);
|
|
90
90
|
return acc;
|
|
91
91
|
}, []);
|
|
92
|
-
export const ZodImageModelValues = z.enum(ZodImageModelValuesRaw);
|
|
92
|
+
export const ZodImageModelValues = z.enum(Object.values(Object.assign({}, ...ZodImageModelValuesRaw)));
|
|
93
93
|
const ZodTextEmbeddingModelValuesRaw = Object.entries(AiModels.TextEmbeddingModels).reduce((acc, [, value]) => {
|
|
94
94
|
acc.push(value);
|
|
95
95
|
return acc;
|
|
96
96
|
}, []);
|
|
97
|
-
export const ZodTextEmbeddingModelValues = z.enum(ZodTextEmbeddingModelValuesRaw);
|
|
97
|
+
export const ZodTextEmbeddingModelValues = z.enum(Object.values(Object.assign({}, ...ZodTextEmbeddingModelValuesRaw)));
|
|
98
98
|
export const default_mc_generic = AiModels.LanguageModels.Azure.gpt4o_mini;
|
|
99
99
|
export const default_mc_summary = AiModels.LanguageModels.Azure.gpt4o;
|
|
100
100
|
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.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"prettier": "@demosjarco/prettier-config",
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"validator": "^13.15.0",
|
|
102
|
-
"zod": "^3.24.
|
|
102
|
+
"zod": "^3.24.4"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20250507.0",
|
|
106
106
|
"@types/validator": "^13.15.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "df33b4c01a3d6f5f3ec2296965e8f8c0358c3c8d"
|
|
109
109
|
}
|