@cloudflare/workers-types 5.20260826.1 → 5.20260828.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.
- package/experimental/index.d.ts +164 -0
- package/experimental/index.ts +164 -0
- package/index.d.ts +164 -0
- package/index.ts +164 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -11789,6 +11789,163 @@ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
|
|
|
11789
11789
|
inputs: ChatCompletionsInput;
|
|
11790
11790
|
postProcessedOutputs: ChatCompletionsOutput;
|
|
11791
11791
|
}
|
|
11792
|
+
declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
|
|
11793
|
+
inputs: ChatCompletionsInput;
|
|
11794
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11795
|
+
}
|
|
11796
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
|
|
11797
|
+
inputs: ChatCompletionsInput;
|
|
11798
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11799
|
+
}
|
|
11800
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
|
|
11801
|
+
/**
|
|
11802
|
+
* Which Moondream skill to run.
|
|
11803
|
+
*/
|
|
11804
|
+
task?: "query" | "caption" | "point" | "detect";
|
|
11805
|
+
/**
|
|
11806
|
+
* Input image as a public HTTPS URL or base64 data URI. Optional for `query`; required for `caption`, `point`, and `detect`.
|
|
11807
|
+
*/
|
|
11808
|
+
image?: string;
|
|
11809
|
+
/**
|
|
11810
|
+
* Question for the `query` task.
|
|
11811
|
+
*/
|
|
11812
|
+
question?: string;
|
|
11813
|
+
/**
|
|
11814
|
+
* Caption length for the `caption` task.
|
|
11815
|
+
*/
|
|
11816
|
+
caption_length?: "short" | "normal" | "long";
|
|
11817
|
+
/**
|
|
11818
|
+
* Object phrase to locate for `point` and `detect` tasks (e.g. 'person wearing a red shirt').
|
|
11819
|
+
*/
|
|
11820
|
+
target?: string;
|
|
11821
|
+
/**
|
|
11822
|
+
* Enable reasoning trace for the `query` task.
|
|
11823
|
+
*/
|
|
11824
|
+
reasoning?: boolean;
|
|
11825
|
+
/**
|
|
11826
|
+
* Sampling temperature.
|
|
11827
|
+
*/
|
|
11828
|
+
temperature?: number;
|
|
11829
|
+
/**
|
|
11830
|
+
* Top-p (nucleus) sampling.
|
|
11831
|
+
*/
|
|
11832
|
+
top_p?: number;
|
|
11833
|
+
/**
|
|
11834
|
+
* Max tokens to generate for `query` and `caption`.
|
|
11835
|
+
*/
|
|
11836
|
+
max_tokens?: number;
|
|
11837
|
+
/**
|
|
11838
|
+
* Max objects to return for `point` and `detect`.
|
|
11839
|
+
*/
|
|
11840
|
+
max_objects?: number;
|
|
11841
|
+
/**
|
|
11842
|
+
* Return incremental tokens for `query` and `caption`. `point` and `detect` do not support streaming.
|
|
11843
|
+
*/
|
|
11844
|
+
stream?: boolean;
|
|
11845
|
+
}
|
|
11846
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output {
|
|
11847
|
+
/**
|
|
11848
|
+
* Reason the generation finished.
|
|
11849
|
+
*/
|
|
11850
|
+
finish_reason: string;
|
|
11851
|
+
metrics: {
|
|
11852
|
+
/**
|
|
11853
|
+
* Number of input tokens consumed.
|
|
11854
|
+
*/
|
|
11855
|
+
input_tokens: number;
|
|
11856
|
+
/**
|
|
11857
|
+
* Number of output tokens generated.
|
|
11858
|
+
*/
|
|
11859
|
+
output_tokens: number;
|
|
11860
|
+
/**
|
|
11861
|
+
* Prefill time in milliseconds.
|
|
11862
|
+
*/
|
|
11863
|
+
prefill_time_ms: number;
|
|
11864
|
+
/**
|
|
11865
|
+
* Decode time in milliseconds.
|
|
11866
|
+
*/
|
|
11867
|
+
decode_time_ms: number;
|
|
11868
|
+
/**
|
|
11869
|
+
* Time to first token in milliseconds.
|
|
11870
|
+
*/
|
|
11871
|
+
ttft_ms: number;
|
|
11872
|
+
};
|
|
11873
|
+
/**
|
|
11874
|
+
* Answer text for the `query` task. Null for other tasks.
|
|
11875
|
+
*/
|
|
11876
|
+
answer?: string;
|
|
11877
|
+
/**
|
|
11878
|
+
* Caption text for the `caption` task. Null for other tasks.
|
|
11879
|
+
*/
|
|
11880
|
+
caption?: string;
|
|
11881
|
+
/**
|
|
11882
|
+
* Located points for the `point` task. Null for other tasks.
|
|
11883
|
+
*/
|
|
11884
|
+
points?: {
|
|
11885
|
+
/**
|
|
11886
|
+
* X coordinate.
|
|
11887
|
+
*/
|
|
11888
|
+
x: number;
|
|
11889
|
+
/**
|
|
11890
|
+
* Y coordinate.
|
|
11891
|
+
*/
|
|
11892
|
+
y: number;
|
|
11893
|
+
}[];
|
|
11894
|
+
/**
|
|
11895
|
+
* Detected bounding boxes for the `detect` task. Null for other tasks.
|
|
11896
|
+
*/
|
|
11897
|
+
objects?: {
|
|
11898
|
+
/**
|
|
11899
|
+
* Minimum X coordinate.
|
|
11900
|
+
*/
|
|
11901
|
+
x_min: number;
|
|
11902
|
+
/**
|
|
11903
|
+
* Minimum Y coordinate.
|
|
11904
|
+
*/
|
|
11905
|
+
y_min: number;
|
|
11906
|
+
/**
|
|
11907
|
+
* Maximum X coordinate.
|
|
11908
|
+
*/
|
|
11909
|
+
x_max: number;
|
|
11910
|
+
/**
|
|
11911
|
+
* Maximum Y coordinate.
|
|
11912
|
+
*/
|
|
11913
|
+
y_max: number;
|
|
11914
|
+
}[];
|
|
11915
|
+
/**
|
|
11916
|
+
* Reasoning trace for the `query` task when reasoning=true. Null otherwise.
|
|
11917
|
+
*/
|
|
11918
|
+
reasoning?: {
|
|
11919
|
+
/**
|
|
11920
|
+
* Reasoning text.
|
|
11921
|
+
*/
|
|
11922
|
+
text: string;
|
|
11923
|
+
/**
|
|
11924
|
+
* Grounding information.
|
|
11925
|
+
*/
|
|
11926
|
+
grounding?: {}[];
|
|
11927
|
+
};
|
|
11928
|
+
}
|
|
11929
|
+
declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
|
|
11930
|
+
inputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input;
|
|
11931
|
+
postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
|
|
11932
|
+
}
|
|
11933
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
|
|
11934
|
+
inputs: ChatCompletionsInput;
|
|
11935
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11936
|
+
}
|
|
11937
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
|
|
11938
|
+
inputs: ChatCompletionsInput;
|
|
11939
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11940
|
+
}
|
|
11941
|
+
declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
|
|
11942
|
+
inputs: ChatCompletionsInput;
|
|
11943
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11944
|
+
}
|
|
11945
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
|
|
11946
|
+
inputs: ChatCompletionsInput;
|
|
11947
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11948
|
+
}
|
|
11792
11949
|
interface AiModels {
|
|
11793
11950
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
11794
11951
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -11881,6 +12038,13 @@ interface AiModels {
|
|
|
11881
12038
|
"@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
|
|
11882
12039
|
"@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
|
|
11883
12040
|
"@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
|
|
12041
|
+
"@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
|
|
12042
|
+
"@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
|
|
12043
|
+
"@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
|
|
12044
|
+
"@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
|
|
12045
|
+
"@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
|
|
12046
|
+
"@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
|
|
12047
|
+
"@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
|
|
11884
12048
|
}
|
|
11885
12049
|
type AiOptions = {
|
|
11886
12050
|
/**
|
package/experimental/index.ts
CHANGED
|
@@ -11801,6 +11801,163 @@ export declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
|
|
|
11801
11801
|
inputs: ChatCompletionsInput;
|
|
11802
11802
|
postProcessedOutputs: ChatCompletionsOutput;
|
|
11803
11803
|
}
|
|
11804
|
+
export declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
|
|
11805
|
+
inputs: ChatCompletionsInput;
|
|
11806
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11807
|
+
}
|
|
11808
|
+
export declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
|
|
11809
|
+
inputs: ChatCompletionsInput;
|
|
11810
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11811
|
+
}
|
|
11812
|
+
export interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
|
|
11813
|
+
/**
|
|
11814
|
+
* Which Moondream skill to run.
|
|
11815
|
+
*/
|
|
11816
|
+
task?: "query" | "caption" | "point" | "detect";
|
|
11817
|
+
/**
|
|
11818
|
+
* Input image as a public HTTPS URL or base64 data URI. Optional for `query`; required for `caption`, `point`, and `detect`.
|
|
11819
|
+
*/
|
|
11820
|
+
image?: string;
|
|
11821
|
+
/**
|
|
11822
|
+
* Question for the `query` task.
|
|
11823
|
+
*/
|
|
11824
|
+
question?: string;
|
|
11825
|
+
/**
|
|
11826
|
+
* Caption length for the `caption` task.
|
|
11827
|
+
*/
|
|
11828
|
+
caption_length?: "short" | "normal" | "long";
|
|
11829
|
+
/**
|
|
11830
|
+
* Object phrase to locate for `point` and `detect` tasks (e.g. 'person wearing a red shirt').
|
|
11831
|
+
*/
|
|
11832
|
+
target?: string;
|
|
11833
|
+
/**
|
|
11834
|
+
* Enable reasoning trace for the `query` task.
|
|
11835
|
+
*/
|
|
11836
|
+
reasoning?: boolean;
|
|
11837
|
+
/**
|
|
11838
|
+
* Sampling temperature.
|
|
11839
|
+
*/
|
|
11840
|
+
temperature?: number;
|
|
11841
|
+
/**
|
|
11842
|
+
* Top-p (nucleus) sampling.
|
|
11843
|
+
*/
|
|
11844
|
+
top_p?: number;
|
|
11845
|
+
/**
|
|
11846
|
+
* Max tokens to generate for `query` and `caption`.
|
|
11847
|
+
*/
|
|
11848
|
+
max_tokens?: number;
|
|
11849
|
+
/**
|
|
11850
|
+
* Max objects to return for `point` and `detect`.
|
|
11851
|
+
*/
|
|
11852
|
+
max_objects?: number;
|
|
11853
|
+
/**
|
|
11854
|
+
* Return incremental tokens for `query` and `caption`. `point` and `detect` do not support streaming.
|
|
11855
|
+
*/
|
|
11856
|
+
stream?: boolean;
|
|
11857
|
+
}
|
|
11858
|
+
export interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output {
|
|
11859
|
+
/**
|
|
11860
|
+
* Reason the generation finished.
|
|
11861
|
+
*/
|
|
11862
|
+
finish_reason: string;
|
|
11863
|
+
metrics: {
|
|
11864
|
+
/**
|
|
11865
|
+
* Number of input tokens consumed.
|
|
11866
|
+
*/
|
|
11867
|
+
input_tokens: number;
|
|
11868
|
+
/**
|
|
11869
|
+
* Number of output tokens generated.
|
|
11870
|
+
*/
|
|
11871
|
+
output_tokens: number;
|
|
11872
|
+
/**
|
|
11873
|
+
* Prefill time in milliseconds.
|
|
11874
|
+
*/
|
|
11875
|
+
prefill_time_ms: number;
|
|
11876
|
+
/**
|
|
11877
|
+
* Decode time in milliseconds.
|
|
11878
|
+
*/
|
|
11879
|
+
decode_time_ms: number;
|
|
11880
|
+
/**
|
|
11881
|
+
* Time to first token in milliseconds.
|
|
11882
|
+
*/
|
|
11883
|
+
ttft_ms: number;
|
|
11884
|
+
};
|
|
11885
|
+
/**
|
|
11886
|
+
* Answer text for the `query` task. Null for other tasks.
|
|
11887
|
+
*/
|
|
11888
|
+
answer?: string;
|
|
11889
|
+
/**
|
|
11890
|
+
* Caption text for the `caption` task. Null for other tasks.
|
|
11891
|
+
*/
|
|
11892
|
+
caption?: string;
|
|
11893
|
+
/**
|
|
11894
|
+
* Located points for the `point` task. Null for other tasks.
|
|
11895
|
+
*/
|
|
11896
|
+
points?: {
|
|
11897
|
+
/**
|
|
11898
|
+
* X coordinate.
|
|
11899
|
+
*/
|
|
11900
|
+
x: number;
|
|
11901
|
+
/**
|
|
11902
|
+
* Y coordinate.
|
|
11903
|
+
*/
|
|
11904
|
+
y: number;
|
|
11905
|
+
}[];
|
|
11906
|
+
/**
|
|
11907
|
+
* Detected bounding boxes for the `detect` task. Null for other tasks.
|
|
11908
|
+
*/
|
|
11909
|
+
objects?: {
|
|
11910
|
+
/**
|
|
11911
|
+
* Minimum X coordinate.
|
|
11912
|
+
*/
|
|
11913
|
+
x_min: number;
|
|
11914
|
+
/**
|
|
11915
|
+
* Minimum Y coordinate.
|
|
11916
|
+
*/
|
|
11917
|
+
y_min: number;
|
|
11918
|
+
/**
|
|
11919
|
+
* Maximum X coordinate.
|
|
11920
|
+
*/
|
|
11921
|
+
x_max: number;
|
|
11922
|
+
/**
|
|
11923
|
+
* Maximum Y coordinate.
|
|
11924
|
+
*/
|
|
11925
|
+
y_max: number;
|
|
11926
|
+
}[];
|
|
11927
|
+
/**
|
|
11928
|
+
* Reasoning trace for the `query` task when reasoning=true. Null otherwise.
|
|
11929
|
+
*/
|
|
11930
|
+
reasoning?: {
|
|
11931
|
+
/**
|
|
11932
|
+
* Reasoning text.
|
|
11933
|
+
*/
|
|
11934
|
+
text: string;
|
|
11935
|
+
/**
|
|
11936
|
+
* Grounding information.
|
|
11937
|
+
*/
|
|
11938
|
+
grounding?: {}[];
|
|
11939
|
+
};
|
|
11940
|
+
}
|
|
11941
|
+
export declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
|
|
11942
|
+
inputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input;
|
|
11943
|
+
postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
|
|
11944
|
+
}
|
|
11945
|
+
export declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
|
|
11946
|
+
inputs: ChatCompletionsInput;
|
|
11947
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11948
|
+
}
|
|
11949
|
+
export declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
|
|
11950
|
+
inputs: ChatCompletionsInput;
|
|
11951
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11952
|
+
}
|
|
11953
|
+
export declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
|
|
11954
|
+
inputs: ChatCompletionsInput;
|
|
11955
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11956
|
+
}
|
|
11957
|
+
export declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
|
|
11958
|
+
inputs: ChatCompletionsInput;
|
|
11959
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11960
|
+
}
|
|
11804
11961
|
export interface AiModels {
|
|
11805
11962
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
11806
11963
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -11893,6 +12050,13 @@ export interface AiModels {
|
|
|
11893
12050
|
"@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
|
|
11894
12051
|
"@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
|
|
11895
12052
|
"@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
|
|
12053
|
+
"@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
|
|
12054
|
+
"@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
|
|
12055
|
+
"@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
|
|
12056
|
+
"@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
|
|
12057
|
+
"@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
|
|
12058
|
+
"@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
|
|
12059
|
+
"@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
|
|
11896
12060
|
}
|
|
11897
12061
|
export type AiOptions = {
|
|
11898
12062
|
/**
|
package/index.d.ts
CHANGED
|
@@ -11514,6 +11514,163 @@ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
|
|
|
11514
11514
|
inputs: ChatCompletionsInput;
|
|
11515
11515
|
postProcessedOutputs: ChatCompletionsOutput;
|
|
11516
11516
|
}
|
|
11517
|
+
declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
|
|
11518
|
+
inputs: ChatCompletionsInput;
|
|
11519
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11520
|
+
}
|
|
11521
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
|
|
11522
|
+
inputs: ChatCompletionsInput;
|
|
11523
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11524
|
+
}
|
|
11525
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
|
|
11526
|
+
/**
|
|
11527
|
+
* Which Moondream skill to run.
|
|
11528
|
+
*/
|
|
11529
|
+
task?: "query" | "caption" | "point" | "detect";
|
|
11530
|
+
/**
|
|
11531
|
+
* Input image as a public HTTPS URL or base64 data URI. Optional for `query`; required for `caption`, `point`, and `detect`.
|
|
11532
|
+
*/
|
|
11533
|
+
image?: string;
|
|
11534
|
+
/**
|
|
11535
|
+
* Question for the `query` task.
|
|
11536
|
+
*/
|
|
11537
|
+
question?: string;
|
|
11538
|
+
/**
|
|
11539
|
+
* Caption length for the `caption` task.
|
|
11540
|
+
*/
|
|
11541
|
+
caption_length?: "short" | "normal" | "long";
|
|
11542
|
+
/**
|
|
11543
|
+
* Object phrase to locate for `point` and `detect` tasks (e.g. 'person wearing a red shirt').
|
|
11544
|
+
*/
|
|
11545
|
+
target?: string;
|
|
11546
|
+
/**
|
|
11547
|
+
* Enable reasoning trace for the `query` task.
|
|
11548
|
+
*/
|
|
11549
|
+
reasoning?: boolean;
|
|
11550
|
+
/**
|
|
11551
|
+
* Sampling temperature.
|
|
11552
|
+
*/
|
|
11553
|
+
temperature?: number;
|
|
11554
|
+
/**
|
|
11555
|
+
* Top-p (nucleus) sampling.
|
|
11556
|
+
*/
|
|
11557
|
+
top_p?: number;
|
|
11558
|
+
/**
|
|
11559
|
+
* Max tokens to generate for `query` and `caption`.
|
|
11560
|
+
*/
|
|
11561
|
+
max_tokens?: number;
|
|
11562
|
+
/**
|
|
11563
|
+
* Max objects to return for `point` and `detect`.
|
|
11564
|
+
*/
|
|
11565
|
+
max_objects?: number;
|
|
11566
|
+
/**
|
|
11567
|
+
* Return incremental tokens for `query` and `caption`. `point` and `detect` do not support streaming.
|
|
11568
|
+
*/
|
|
11569
|
+
stream?: boolean;
|
|
11570
|
+
}
|
|
11571
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output {
|
|
11572
|
+
/**
|
|
11573
|
+
* Reason the generation finished.
|
|
11574
|
+
*/
|
|
11575
|
+
finish_reason: string;
|
|
11576
|
+
metrics: {
|
|
11577
|
+
/**
|
|
11578
|
+
* Number of input tokens consumed.
|
|
11579
|
+
*/
|
|
11580
|
+
input_tokens: number;
|
|
11581
|
+
/**
|
|
11582
|
+
* Number of output tokens generated.
|
|
11583
|
+
*/
|
|
11584
|
+
output_tokens: number;
|
|
11585
|
+
/**
|
|
11586
|
+
* Prefill time in milliseconds.
|
|
11587
|
+
*/
|
|
11588
|
+
prefill_time_ms: number;
|
|
11589
|
+
/**
|
|
11590
|
+
* Decode time in milliseconds.
|
|
11591
|
+
*/
|
|
11592
|
+
decode_time_ms: number;
|
|
11593
|
+
/**
|
|
11594
|
+
* Time to first token in milliseconds.
|
|
11595
|
+
*/
|
|
11596
|
+
ttft_ms: number;
|
|
11597
|
+
};
|
|
11598
|
+
/**
|
|
11599
|
+
* Answer text for the `query` task. Null for other tasks.
|
|
11600
|
+
*/
|
|
11601
|
+
answer?: string;
|
|
11602
|
+
/**
|
|
11603
|
+
* Caption text for the `caption` task. Null for other tasks.
|
|
11604
|
+
*/
|
|
11605
|
+
caption?: string;
|
|
11606
|
+
/**
|
|
11607
|
+
* Located points for the `point` task. Null for other tasks.
|
|
11608
|
+
*/
|
|
11609
|
+
points?: {
|
|
11610
|
+
/**
|
|
11611
|
+
* X coordinate.
|
|
11612
|
+
*/
|
|
11613
|
+
x: number;
|
|
11614
|
+
/**
|
|
11615
|
+
* Y coordinate.
|
|
11616
|
+
*/
|
|
11617
|
+
y: number;
|
|
11618
|
+
}[];
|
|
11619
|
+
/**
|
|
11620
|
+
* Detected bounding boxes for the `detect` task. Null for other tasks.
|
|
11621
|
+
*/
|
|
11622
|
+
objects?: {
|
|
11623
|
+
/**
|
|
11624
|
+
* Minimum X coordinate.
|
|
11625
|
+
*/
|
|
11626
|
+
x_min: number;
|
|
11627
|
+
/**
|
|
11628
|
+
* Minimum Y coordinate.
|
|
11629
|
+
*/
|
|
11630
|
+
y_min: number;
|
|
11631
|
+
/**
|
|
11632
|
+
* Maximum X coordinate.
|
|
11633
|
+
*/
|
|
11634
|
+
x_max: number;
|
|
11635
|
+
/**
|
|
11636
|
+
* Maximum Y coordinate.
|
|
11637
|
+
*/
|
|
11638
|
+
y_max: number;
|
|
11639
|
+
}[];
|
|
11640
|
+
/**
|
|
11641
|
+
* Reasoning trace for the `query` task when reasoning=true. Null otherwise.
|
|
11642
|
+
*/
|
|
11643
|
+
reasoning?: {
|
|
11644
|
+
/**
|
|
11645
|
+
* Reasoning text.
|
|
11646
|
+
*/
|
|
11647
|
+
text: string;
|
|
11648
|
+
/**
|
|
11649
|
+
* Grounding information.
|
|
11650
|
+
*/
|
|
11651
|
+
grounding?: {}[];
|
|
11652
|
+
};
|
|
11653
|
+
}
|
|
11654
|
+
declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
|
|
11655
|
+
inputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input;
|
|
11656
|
+
postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
|
|
11657
|
+
}
|
|
11658
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
|
|
11659
|
+
inputs: ChatCompletionsInput;
|
|
11660
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11661
|
+
}
|
|
11662
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
|
|
11663
|
+
inputs: ChatCompletionsInput;
|
|
11664
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11665
|
+
}
|
|
11666
|
+
declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
|
|
11667
|
+
inputs: ChatCompletionsInput;
|
|
11668
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11669
|
+
}
|
|
11670
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
|
|
11671
|
+
inputs: ChatCompletionsInput;
|
|
11672
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11673
|
+
}
|
|
11517
11674
|
interface AiModels {
|
|
11518
11675
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
11519
11676
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -11606,6 +11763,13 @@ interface AiModels {
|
|
|
11606
11763
|
"@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
|
|
11607
11764
|
"@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
|
|
11608
11765
|
"@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
|
|
11766
|
+
"@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
|
|
11767
|
+
"@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
|
|
11768
|
+
"@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
|
|
11769
|
+
"@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
|
|
11770
|
+
"@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
|
|
11771
|
+
"@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
|
|
11772
|
+
"@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
|
|
11609
11773
|
}
|
|
11610
11774
|
type AiOptions = {
|
|
11611
11775
|
/**
|
package/index.ts
CHANGED
|
@@ -11526,6 +11526,163 @@ export declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
|
|
|
11526
11526
|
inputs: ChatCompletionsInput;
|
|
11527
11527
|
postProcessedOutputs: ChatCompletionsOutput;
|
|
11528
11528
|
}
|
|
11529
|
+
export declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
|
|
11530
|
+
inputs: ChatCompletionsInput;
|
|
11531
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11532
|
+
}
|
|
11533
|
+
export declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
|
|
11534
|
+
inputs: ChatCompletionsInput;
|
|
11535
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11536
|
+
}
|
|
11537
|
+
export interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
|
|
11538
|
+
/**
|
|
11539
|
+
* Which Moondream skill to run.
|
|
11540
|
+
*/
|
|
11541
|
+
task?: "query" | "caption" | "point" | "detect";
|
|
11542
|
+
/**
|
|
11543
|
+
* Input image as a public HTTPS URL or base64 data URI. Optional for `query`; required for `caption`, `point`, and `detect`.
|
|
11544
|
+
*/
|
|
11545
|
+
image?: string;
|
|
11546
|
+
/**
|
|
11547
|
+
* Question for the `query` task.
|
|
11548
|
+
*/
|
|
11549
|
+
question?: string;
|
|
11550
|
+
/**
|
|
11551
|
+
* Caption length for the `caption` task.
|
|
11552
|
+
*/
|
|
11553
|
+
caption_length?: "short" | "normal" | "long";
|
|
11554
|
+
/**
|
|
11555
|
+
* Object phrase to locate for `point` and `detect` tasks (e.g. 'person wearing a red shirt').
|
|
11556
|
+
*/
|
|
11557
|
+
target?: string;
|
|
11558
|
+
/**
|
|
11559
|
+
* Enable reasoning trace for the `query` task.
|
|
11560
|
+
*/
|
|
11561
|
+
reasoning?: boolean;
|
|
11562
|
+
/**
|
|
11563
|
+
* Sampling temperature.
|
|
11564
|
+
*/
|
|
11565
|
+
temperature?: number;
|
|
11566
|
+
/**
|
|
11567
|
+
* Top-p (nucleus) sampling.
|
|
11568
|
+
*/
|
|
11569
|
+
top_p?: number;
|
|
11570
|
+
/**
|
|
11571
|
+
* Max tokens to generate for `query` and `caption`.
|
|
11572
|
+
*/
|
|
11573
|
+
max_tokens?: number;
|
|
11574
|
+
/**
|
|
11575
|
+
* Max objects to return for `point` and `detect`.
|
|
11576
|
+
*/
|
|
11577
|
+
max_objects?: number;
|
|
11578
|
+
/**
|
|
11579
|
+
* Return incremental tokens for `query` and `caption`. `point` and `detect` do not support streaming.
|
|
11580
|
+
*/
|
|
11581
|
+
stream?: boolean;
|
|
11582
|
+
}
|
|
11583
|
+
export interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output {
|
|
11584
|
+
/**
|
|
11585
|
+
* Reason the generation finished.
|
|
11586
|
+
*/
|
|
11587
|
+
finish_reason: string;
|
|
11588
|
+
metrics: {
|
|
11589
|
+
/**
|
|
11590
|
+
* Number of input tokens consumed.
|
|
11591
|
+
*/
|
|
11592
|
+
input_tokens: number;
|
|
11593
|
+
/**
|
|
11594
|
+
* Number of output tokens generated.
|
|
11595
|
+
*/
|
|
11596
|
+
output_tokens: number;
|
|
11597
|
+
/**
|
|
11598
|
+
* Prefill time in milliseconds.
|
|
11599
|
+
*/
|
|
11600
|
+
prefill_time_ms: number;
|
|
11601
|
+
/**
|
|
11602
|
+
* Decode time in milliseconds.
|
|
11603
|
+
*/
|
|
11604
|
+
decode_time_ms: number;
|
|
11605
|
+
/**
|
|
11606
|
+
* Time to first token in milliseconds.
|
|
11607
|
+
*/
|
|
11608
|
+
ttft_ms: number;
|
|
11609
|
+
};
|
|
11610
|
+
/**
|
|
11611
|
+
* Answer text for the `query` task. Null for other tasks.
|
|
11612
|
+
*/
|
|
11613
|
+
answer?: string;
|
|
11614
|
+
/**
|
|
11615
|
+
* Caption text for the `caption` task. Null for other tasks.
|
|
11616
|
+
*/
|
|
11617
|
+
caption?: string;
|
|
11618
|
+
/**
|
|
11619
|
+
* Located points for the `point` task. Null for other tasks.
|
|
11620
|
+
*/
|
|
11621
|
+
points?: {
|
|
11622
|
+
/**
|
|
11623
|
+
* X coordinate.
|
|
11624
|
+
*/
|
|
11625
|
+
x: number;
|
|
11626
|
+
/**
|
|
11627
|
+
* Y coordinate.
|
|
11628
|
+
*/
|
|
11629
|
+
y: number;
|
|
11630
|
+
}[];
|
|
11631
|
+
/**
|
|
11632
|
+
* Detected bounding boxes for the `detect` task. Null for other tasks.
|
|
11633
|
+
*/
|
|
11634
|
+
objects?: {
|
|
11635
|
+
/**
|
|
11636
|
+
* Minimum X coordinate.
|
|
11637
|
+
*/
|
|
11638
|
+
x_min: number;
|
|
11639
|
+
/**
|
|
11640
|
+
* Minimum Y coordinate.
|
|
11641
|
+
*/
|
|
11642
|
+
y_min: number;
|
|
11643
|
+
/**
|
|
11644
|
+
* Maximum X coordinate.
|
|
11645
|
+
*/
|
|
11646
|
+
x_max: number;
|
|
11647
|
+
/**
|
|
11648
|
+
* Maximum Y coordinate.
|
|
11649
|
+
*/
|
|
11650
|
+
y_max: number;
|
|
11651
|
+
}[];
|
|
11652
|
+
/**
|
|
11653
|
+
* Reasoning trace for the `query` task when reasoning=true. Null otherwise.
|
|
11654
|
+
*/
|
|
11655
|
+
reasoning?: {
|
|
11656
|
+
/**
|
|
11657
|
+
* Reasoning text.
|
|
11658
|
+
*/
|
|
11659
|
+
text: string;
|
|
11660
|
+
/**
|
|
11661
|
+
* Grounding information.
|
|
11662
|
+
*/
|
|
11663
|
+
grounding?: {}[];
|
|
11664
|
+
};
|
|
11665
|
+
}
|
|
11666
|
+
export declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
|
|
11667
|
+
inputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input;
|
|
11668
|
+
postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
|
|
11669
|
+
}
|
|
11670
|
+
export declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
|
|
11671
|
+
inputs: ChatCompletionsInput;
|
|
11672
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11673
|
+
}
|
|
11674
|
+
export declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
|
|
11675
|
+
inputs: ChatCompletionsInput;
|
|
11676
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11677
|
+
}
|
|
11678
|
+
export declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
|
|
11679
|
+
inputs: ChatCompletionsInput;
|
|
11680
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11681
|
+
}
|
|
11682
|
+
export declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
|
|
11683
|
+
inputs: ChatCompletionsInput;
|
|
11684
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
11685
|
+
}
|
|
11529
11686
|
export interface AiModels {
|
|
11530
11687
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
11531
11688
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -11618,6 +11775,13 @@ export interface AiModels {
|
|
|
11618
11775
|
"@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
|
|
11619
11776
|
"@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
|
|
11620
11777
|
"@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
|
|
11778
|
+
"@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
|
|
11779
|
+
"@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
|
|
11780
|
+
"@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
|
|
11781
|
+
"@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
|
|
11782
|
+
"@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
|
|
11783
|
+
"@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
|
|
11784
|
+
"@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
|
|
11621
11785
|
}
|
|
11622
11786
|
export type AiOptions = {
|
|
11623
11787
|
/**
|
package/package.json
CHANGED