@cloudflare/workers-types 4.20240605.0 → 4.20240620.0

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.
@@ -862,6 +862,7 @@ declare class Blob {
862
862
  slice(start?: number, end?: number, type?: string): Blob;
863
863
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
864
864
  arrayBuffer(): Promise<ArrayBuffer>;
865
+ bytes(): Promise<Uint8Array>;
865
866
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
866
867
  text(): Promise<string>;
867
868
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
@@ -1342,6 +1343,7 @@ declare abstract class Body {
1342
1343
  readonly body: ReadableStream | null;
1343
1344
  readonly bodyUsed: boolean;
1344
1345
  arrayBuffer(): Promise<ArrayBuffer>;
1346
+ bytes(): Promise<Uint8Array>;
1345
1347
  text(): Promise<string>;
1346
1348
  json<T>(): Promise<T>;
1347
1349
  formData(): Promise<FormData>;
@@ -3000,6 +3002,12 @@ declare type AiImageToTextInput = {
3000
3002
  prompt?: string;
3001
3003
  max_tokens?: number;
3002
3004
  temperature?: number;
3005
+ top_p?: number;
3006
+ top_k?: number;
3007
+ seed?: number;
3008
+ repetition_penalty?: number;
3009
+ frequency_penalty?: number;
3010
+ presence_penalty?: number;
3003
3011
  raw?: boolean;
3004
3012
  messages?: RoleScopedChatInput[];
3005
3013
  };
@@ -3080,19 +3088,48 @@ declare abstract class BaseAiTextEmbeddings {
3080
3088
  postProcessedOutputs: AiTextEmbeddingsOutput;
3081
3089
  }
3082
3090
  declare type RoleScopedChatInput = {
3083
- role: string;
3091
+ role: "user" | "assistant" | "system" | "tool";
3084
3092
  content: string;
3085
3093
  };
3094
+ declare type AiTextGenerationToolInput = {
3095
+ type: "function";
3096
+ function: {
3097
+ name: string;
3098
+ description: string;
3099
+ parameters?: {
3100
+ type: "object";
3101
+ properties: {
3102
+ [key: string]: {
3103
+ type: string;
3104
+ description?: string;
3105
+ };
3106
+ };
3107
+ required: string[];
3108
+ };
3109
+ };
3110
+ };
3086
3111
  declare type AiTextGenerationInput = {
3087
3112
  prompt?: string;
3088
3113
  raw?: boolean;
3089
3114
  stream?: boolean;
3090
3115
  max_tokens?: number;
3116
+ temperature?: number;
3117
+ top_p?: number;
3118
+ top_k?: number;
3119
+ seed?: number;
3120
+ repetition_penalty?: number;
3121
+ frequency_penalty?: number;
3122
+ presence_penalty?: number;
3091
3123
  messages?: RoleScopedChatInput[];
3124
+ tools?: AiTextGenerationToolInput[];
3092
3125
  };
3093
3126
  declare type AiTextGenerationOutput =
3094
3127
  | {
3095
3128
  response?: string;
3129
+ tool_calls?: {
3130
+ name: string;
3131
+ arguments: unknown;
3132
+ }[];
3096
3133
  }
3097
3134
  | ReadableStream;
3098
3135
  declare abstract class BaseAiTextGeneration {
@@ -3135,108 +3172,113 @@ declare type AiOptions = {
3135
3172
  prefix?: string;
3136
3173
  extraHeaders?: object;
3137
3174
  };
3175
+ declare type BaseAiTextClassificationModels =
3176
+ "@cf/huggingface/distilbert-sst-2-int8";
3177
+ declare type BaseAiTextToImageModels =
3178
+ | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3179
+ | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3180
+ | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3181
+ | "@cf/lykon/dreamshaper-8-lcm"
3182
+ | "@cf/bytedance/stable-diffusion-xl-lightning";
3183
+ declare type BaseAiTextEmbeddingsModels =
3184
+ | "@cf/baai/bge-small-en-v1.5"
3185
+ | "@cf/baai/bge-base-en-v1.5"
3186
+ | "@cf/baai/bge-large-en-v1.5";
3187
+ declare type BaseAiSpeechRecognitionModels =
3188
+ | "@cf/openai/whisper"
3189
+ | "@cf/openai/whisper-tiny-en"
3190
+ | "@cf/openai/whisper-sherpa";
3191
+ declare type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
3192
+ declare type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
3193
+ declare type BaseAiTextGenerationModels =
3194
+ | "@cf/meta/llama-3-8b-instruct"
3195
+ | "@cf/meta/llama-3-8b-instruct-awq"
3196
+ | "@cf/meta/llama-2-7b-chat-int8"
3197
+ | "@cf/mistral/mistral-7b-instruct-v0.1"
3198
+ | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3199
+ | "@cf/meta/llama-2-7b-chat-fp16"
3200
+ | "@hf/thebloke/llama-2-13b-chat-awq"
3201
+ | "@hf/thebloke/zephyr-7b-beta-awq"
3202
+ | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3203
+ | "@hf/thebloke/codellama-7b-instruct-awq"
3204
+ | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3205
+ | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3206
+ | "@hf/thebloke/llamaguard-7b-awq"
3207
+ | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3208
+ | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3209
+ | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3210
+ | "@hf/mistral/mistral-7b-instruct-v0.2"
3211
+ | "@hf/google/gemma-7b-it"
3212
+ | "@hf/nexusflow/starling-lm-7b-beta"
3213
+ | "@cf/deepseek-ai/deepseek-math-7b-instruct"
3214
+ | "@cf/defog/sqlcoder-7b-2"
3215
+ | "@cf/openchat/openchat-3.5-0106"
3216
+ | "@cf/tiiuae/falcon-7b-instruct"
3217
+ | "@cf/thebloke/discolm-german-7b-v1-awq"
3218
+ | "@cf/qwen/qwen1.5-0.5b-chat"
3219
+ | "@cf/qwen/qwen1.5-1.8b-chat"
3220
+ | "@cf/qwen/qwen1.5-7b-chat-awq"
3221
+ | "@cf/qwen/qwen1.5-14b-chat-awq"
3222
+ | "@cf/tinyllama/tinyllama-1.1b-chat-v1.0"
3223
+ | "@cf/microsoft/phi-2"
3224
+ | "@cf/google/gemma-2b-it-lora"
3225
+ | "@cf/google/gemma-7b-it-lora"
3226
+ | "@cf/meta-llama/llama-2-7b-chat-hf-lora"
3227
+ | "@cf/fblgit/una-cybertron-7b-v2-bf16"
3228
+ | "@cf/fblgit/una-cybertron-7b-v2-awq";
3229
+ declare type BaseAiTranslationModels = "@cf/meta/m2m100-1.2b";
3230
+ declare type BaseAiSummarizationModels = "@cf/facebook/bart-large-cnn";
3231
+ declare type BaseAiImageToTextModels =
3232
+ | "@cf/unum/uform-gen2-qwen-500m"
3233
+ | "@cf/llava-hf/llava-1.5-7b-hf";
3138
3234
  declare abstract class Ai {
3139
3235
  run(
3140
- model:
3141
- | "@cf/huggingface/distilbert-sst-2-int8"
3142
- | "@cf/jpmorganchase/roberta-spam"
3143
- | "@cf/inml/inml-roberta-dga",
3236
+ model: BaseAiTextClassificationModels,
3144
3237
  inputs: BaseAiTextClassification["inputs"],
3145
3238
  options?: AiOptions,
3146
3239
  ): Promise<BaseAiTextClassification["postProcessedOutputs"]>;
3147
3240
  run(
3148
- model:
3149
- | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3150
- | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3151
- | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3152
- | "@cf/lykon/dreamshaper-8-lcm"
3153
- | "@cf/bytedance/stable-diffusion-xl-lightning",
3241
+ model: BaseAiTextToImageModels,
3154
3242
  inputs: BaseAiTextToImage["inputs"],
3155
3243
  options?: AiOptions,
3156
3244
  ): Promise<BaseAiTextToImage["postProcessedOutputs"]>;
3157
3245
  run(
3158
- model: "@hf/sentence-transformers/all-minilm-l6-v2",
3159
- inputs: BaseAiSentenceSimilarity["inputs"],
3160
- options?: AiOptions,
3161
- ): Promise<BaseAiSentenceSimilarity["postProcessedOutputs"]>;
3162
- run(
3163
- model:
3164
- | "@cf/baai/bge-small-en-v1.5"
3165
- | "@cf/baai/bge-base-en-v1.5"
3166
- | "@cf/baai/bge-large-en-v1.5",
3246
+ model: BaseAiTextEmbeddingsModels,
3167
3247
  inputs: BaseAiTextEmbeddings["inputs"],
3168
3248
  options?: AiOptions,
3169
3249
  ): Promise<BaseAiTextEmbeddings["postProcessedOutputs"]>;
3170
3250
  run(
3171
- model:
3172
- | "@cf/openai/whisper"
3173
- | "@cf/openai/whisper-tiny-en"
3174
- | "@cf/openai/whisper-sherpa",
3251
+ model: BaseAiSpeechRecognitionModels,
3175
3252
  inputs: BaseAiSpeechRecognition["inputs"],
3176
3253
  options?: AiOptions,
3177
3254
  ): Promise<BaseAiSpeechRecognition["postProcessedOutputs"]>;
3178
3255
  run(
3179
- model: "@cf/microsoft/resnet-50",
3256
+ model: BaseAiImageClassificationModels,
3180
3257
  inputs: BaseAiImageClassification["inputs"],
3181
3258
  options?: AiOptions,
3182
3259
  ): Promise<BaseAiImageClassification["postProcessedOutputs"]>;
3183
3260
  run(
3184
- model: "@cf/facebook/detr-resnet-50",
3261
+ model: BaseAiObjectDetectionModels,
3185
3262
  inputs: BaseAiObjectDetection["inputs"],
3186
3263
  options?: AiOptions,
3187
3264
  ): Promise<BaseAiObjectDetection["postProcessedOutputs"]>;
3188
3265
  run(
3189
- model:
3190
- | "@cf/meta/llama-3-8b-instruct"
3191
- | "@cf/meta/llama-2-7b-chat-int8"
3192
- | "@cf/mistral/mistral-7b-instruct-v0.1"
3193
- | "@cf/mistral/mistral-7b-instruct-v0.1-vllm"
3194
- | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3195
- | "@cf/meta/llama-2-7b-chat-fp16"
3196
- | "@hf/thebloke/llama-2-13b-chat-awq"
3197
- | "@hf/thebloke/zephyr-7b-beta-awq"
3198
- | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3199
- | "@hf/thebloke/codellama-7b-instruct-awq"
3200
- | "@hf/thebloke/openchat_3.5-awq"
3201
- | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3202
- | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3203
- | "@hf/thebloke/llamaguard-7b-awq"
3204
- | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3205
- | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3206
- | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3207
- | "@hf/mistral/mistral-7b-instruct-v0.2"
3208
- | "@cf/mistral/mixtral-8x7b-instruct-v0.1-awq"
3209
- | "@hf/google/gemma-7b-it"
3210
- | "@hf/nexusflow/starling-lm-7b-beta"
3211
- | "@cf/deepseek-ai/deepseek-math-7b-instruct"
3212
- | "@cf/defog/sqlcoder-7b-2"
3213
- | "@cf/openchat/openchat-3.5-0106"
3214
- | "@cf/tiiuae/falcon-7b-instruct"
3215
- | "@cf/thebloke/discolm-german-7b-v1-awq"
3216
- | "@cf/qwen/qwen1.5-0.5b-chat"
3217
- | "@cf/qwen/qwen1.5-1.8b-chat"
3218
- | "@cf/qwen/qwen1.5-7b-chat-awq"
3219
- | "@cf/qwen/qwen1.5-14b-chat-awq"
3220
- | "@cf/tinyllama/tinyllama-1.1b-chat-v1.0"
3221
- | "@cf/microsoft/phi-2"
3222
- | "@cf/google/gemma-2b-it-lora"
3223
- | "@cf/google/gemma-7b-it-lora"
3224
- | "@cf/meta-llama/llama-2-7b-chat-hf-lora",
3266
+ model: BaseAiTextGenerationModels,
3225
3267
  inputs: BaseAiTextGeneration["inputs"],
3226
3268
  options?: AiOptions,
3227
3269
  ): Promise<BaseAiTextGeneration["postProcessedOutputs"]>;
3228
3270
  run(
3229
- model: "@cf/meta/m2m100-1.2b",
3271
+ model: BaseAiTranslationModels,
3230
3272
  inputs: BaseAiTranslation["inputs"],
3231
3273
  options?: AiOptions,
3232
3274
  ): Promise<BaseAiTranslation["postProcessedOutputs"]>;
3233
3275
  run(
3234
- model: "@cf/facebook/bart-large-cnn",
3276
+ model: BaseAiSummarizationModels,
3235
3277
  inputs: BaseAiSummarization["inputs"],
3236
3278
  options?: AiOptions,
3237
3279
  ): Promise<BaseAiSummarization["postProcessedOutputs"]>;
3238
3280
  run(
3239
- model: "@cf/unum/uform-gen2-qwen-500m" | "@cf/llava-hf/llava-1.5-7b-hf",
3281
+ model: BaseAiImageToTextModels,
3240
3282
  inputs: BaseAiImageToText["inputs"],
3241
3283
  options?: AiOptions,
3242
3284
  ): Promise<BaseAiImageToText["postProcessedOutputs"]>;
@@ -4774,6 +4816,15 @@ declare interface VectorizeVectorMutation {
4774
4816
  /* Total count of the number of processed vectors. */
4775
4817
  count: number;
4776
4818
  }
4819
+ /**
4820
+ * Results of an operation that performed a mutation on a set of vectors
4821
+ * with the v2 version of Vectorize.
4822
+ * Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
4823
+ */
4824
+ declare interface VectorizeVectorMutationV2 {
4825
+ /* The identifier for the last mutation processed by Vectorize. */
4826
+ mutationId: string;
4827
+ }
4777
4828
  declare abstract class VectorizeIndex {
4778
4829
  /**
4779
4830
  * Get information about the currently bound index.
@@ -4824,6 +4875,8 @@ declare type WorkerVersionMetadata = {
4824
4875
  id: string;
4825
4876
  /** The tag of the Worker Version using this binding */
4826
4877
  tag: string;
4878
+ /** The timestamp of when the Worker Version was uploaded */
4879
+ timestamp: string;
4827
4880
  };
4828
4881
  declare interface DynamicDispatchLimits {
4829
4882
  /**
@@ -864,6 +864,7 @@ export declare class Blob {
864
864
  slice(start?: number, end?: number, type?: string): Blob;
865
865
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
866
866
  arrayBuffer(): Promise<ArrayBuffer>;
867
+ bytes(): Promise<Uint8Array>;
867
868
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
868
869
  text(): Promise<string>;
869
870
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
@@ -1344,6 +1345,7 @@ export declare abstract class Body {
1344
1345
  readonly body: ReadableStream | null;
1345
1346
  readonly bodyUsed: boolean;
1346
1347
  arrayBuffer(): Promise<ArrayBuffer>;
1348
+ bytes(): Promise<Uint8Array>;
1347
1349
  text(): Promise<string>;
1348
1350
  json<T>(): Promise<T>;
1349
1351
  formData(): Promise<FormData>;
@@ -3005,6 +3007,12 @@ export type AiImageToTextInput = {
3005
3007
  prompt?: string;
3006
3008
  max_tokens?: number;
3007
3009
  temperature?: number;
3010
+ top_p?: number;
3011
+ top_k?: number;
3012
+ seed?: number;
3013
+ repetition_penalty?: number;
3014
+ frequency_penalty?: number;
3015
+ presence_penalty?: number;
3008
3016
  raw?: boolean;
3009
3017
  messages?: RoleScopedChatInput[];
3010
3018
  };
@@ -3085,19 +3093,48 @@ export declare abstract class BaseAiTextEmbeddings {
3085
3093
  postProcessedOutputs: AiTextEmbeddingsOutput;
3086
3094
  }
3087
3095
  export type RoleScopedChatInput = {
3088
- role: string;
3096
+ role: "user" | "assistant" | "system" | "tool";
3089
3097
  content: string;
3090
3098
  };
3099
+ export type AiTextGenerationToolInput = {
3100
+ type: "function";
3101
+ function: {
3102
+ name: string;
3103
+ description: string;
3104
+ parameters?: {
3105
+ type: "object";
3106
+ properties: {
3107
+ [key: string]: {
3108
+ type: string;
3109
+ description?: string;
3110
+ };
3111
+ };
3112
+ required: string[];
3113
+ };
3114
+ };
3115
+ };
3091
3116
  export type AiTextGenerationInput = {
3092
3117
  prompt?: string;
3093
3118
  raw?: boolean;
3094
3119
  stream?: boolean;
3095
3120
  max_tokens?: number;
3121
+ temperature?: number;
3122
+ top_p?: number;
3123
+ top_k?: number;
3124
+ seed?: number;
3125
+ repetition_penalty?: number;
3126
+ frequency_penalty?: number;
3127
+ presence_penalty?: number;
3096
3128
  messages?: RoleScopedChatInput[];
3129
+ tools?: AiTextGenerationToolInput[];
3097
3130
  };
3098
3131
  export type AiTextGenerationOutput =
3099
3132
  | {
3100
3133
  response?: string;
3134
+ tool_calls?: {
3135
+ name: string;
3136
+ arguments: unknown;
3137
+ }[];
3101
3138
  }
3102
3139
  | ReadableStream;
3103
3140
  export declare abstract class BaseAiTextGeneration {
@@ -3140,108 +3177,113 @@ export type AiOptions = {
3140
3177
  prefix?: string;
3141
3178
  extraHeaders?: object;
3142
3179
  };
3180
+ export type BaseAiTextClassificationModels =
3181
+ "@cf/huggingface/distilbert-sst-2-int8";
3182
+ export type BaseAiTextToImageModels =
3183
+ | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3184
+ | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3185
+ | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3186
+ | "@cf/lykon/dreamshaper-8-lcm"
3187
+ | "@cf/bytedance/stable-diffusion-xl-lightning";
3188
+ export type BaseAiTextEmbeddingsModels =
3189
+ | "@cf/baai/bge-small-en-v1.5"
3190
+ | "@cf/baai/bge-base-en-v1.5"
3191
+ | "@cf/baai/bge-large-en-v1.5";
3192
+ export type BaseAiSpeechRecognitionModels =
3193
+ | "@cf/openai/whisper"
3194
+ | "@cf/openai/whisper-tiny-en"
3195
+ | "@cf/openai/whisper-sherpa";
3196
+ export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
3197
+ export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
3198
+ export type BaseAiTextGenerationModels =
3199
+ | "@cf/meta/llama-3-8b-instruct"
3200
+ | "@cf/meta/llama-3-8b-instruct-awq"
3201
+ | "@cf/meta/llama-2-7b-chat-int8"
3202
+ | "@cf/mistral/mistral-7b-instruct-v0.1"
3203
+ | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3204
+ | "@cf/meta/llama-2-7b-chat-fp16"
3205
+ | "@hf/thebloke/llama-2-13b-chat-awq"
3206
+ | "@hf/thebloke/zephyr-7b-beta-awq"
3207
+ | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3208
+ | "@hf/thebloke/codellama-7b-instruct-awq"
3209
+ | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3210
+ | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3211
+ | "@hf/thebloke/llamaguard-7b-awq"
3212
+ | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3213
+ | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3214
+ | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3215
+ | "@hf/mistral/mistral-7b-instruct-v0.2"
3216
+ | "@hf/google/gemma-7b-it"
3217
+ | "@hf/nexusflow/starling-lm-7b-beta"
3218
+ | "@cf/deepseek-ai/deepseek-math-7b-instruct"
3219
+ | "@cf/defog/sqlcoder-7b-2"
3220
+ | "@cf/openchat/openchat-3.5-0106"
3221
+ | "@cf/tiiuae/falcon-7b-instruct"
3222
+ | "@cf/thebloke/discolm-german-7b-v1-awq"
3223
+ | "@cf/qwen/qwen1.5-0.5b-chat"
3224
+ | "@cf/qwen/qwen1.5-1.8b-chat"
3225
+ | "@cf/qwen/qwen1.5-7b-chat-awq"
3226
+ | "@cf/qwen/qwen1.5-14b-chat-awq"
3227
+ | "@cf/tinyllama/tinyllama-1.1b-chat-v1.0"
3228
+ | "@cf/microsoft/phi-2"
3229
+ | "@cf/google/gemma-2b-it-lora"
3230
+ | "@cf/google/gemma-7b-it-lora"
3231
+ | "@cf/meta-llama/llama-2-7b-chat-hf-lora"
3232
+ | "@cf/fblgit/una-cybertron-7b-v2-bf16"
3233
+ | "@cf/fblgit/una-cybertron-7b-v2-awq";
3234
+ export type BaseAiTranslationModels = "@cf/meta/m2m100-1.2b";
3235
+ export type BaseAiSummarizationModels = "@cf/facebook/bart-large-cnn";
3236
+ export type BaseAiImageToTextModels =
3237
+ | "@cf/unum/uform-gen2-qwen-500m"
3238
+ | "@cf/llava-hf/llava-1.5-7b-hf";
3143
3239
  export declare abstract class Ai {
3144
3240
  run(
3145
- model:
3146
- | "@cf/huggingface/distilbert-sst-2-int8"
3147
- | "@cf/jpmorganchase/roberta-spam"
3148
- | "@cf/inml/inml-roberta-dga",
3241
+ model: BaseAiTextClassificationModels,
3149
3242
  inputs: BaseAiTextClassification["inputs"],
3150
3243
  options?: AiOptions,
3151
3244
  ): Promise<BaseAiTextClassification["postProcessedOutputs"]>;
3152
3245
  run(
3153
- model:
3154
- | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3155
- | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3156
- | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3157
- | "@cf/lykon/dreamshaper-8-lcm"
3158
- | "@cf/bytedance/stable-diffusion-xl-lightning",
3246
+ model: BaseAiTextToImageModels,
3159
3247
  inputs: BaseAiTextToImage["inputs"],
3160
3248
  options?: AiOptions,
3161
3249
  ): Promise<BaseAiTextToImage["postProcessedOutputs"]>;
3162
3250
  run(
3163
- model: "@hf/sentence-transformers/all-minilm-l6-v2",
3164
- inputs: BaseAiSentenceSimilarity["inputs"],
3165
- options?: AiOptions,
3166
- ): Promise<BaseAiSentenceSimilarity["postProcessedOutputs"]>;
3167
- run(
3168
- model:
3169
- | "@cf/baai/bge-small-en-v1.5"
3170
- | "@cf/baai/bge-base-en-v1.5"
3171
- | "@cf/baai/bge-large-en-v1.5",
3251
+ model: BaseAiTextEmbeddingsModels,
3172
3252
  inputs: BaseAiTextEmbeddings["inputs"],
3173
3253
  options?: AiOptions,
3174
3254
  ): Promise<BaseAiTextEmbeddings["postProcessedOutputs"]>;
3175
3255
  run(
3176
- model:
3177
- | "@cf/openai/whisper"
3178
- | "@cf/openai/whisper-tiny-en"
3179
- | "@cf/openai/whisper-sherpa",
3256
+ model: BaseAiSpeechRecognitionModels,
3180
3257
  inputs: BaseAiSpeechRecognition["inputs"],
3181
3258
  options?: AiOptions,
3182
3259
  ): Promise<BaseAiSpeechRecognition["postProcessedOutputs"]>;
3183
3260
  run(
3184
- model: "@cf/microsoft/resnet-50",
3261
+ model: BaseAiImageClassificationModels,
3185
3262
  inputs: BaseAiImageClassification["inputs"],
3186
3263
  options?: AiOptions,
3187
3264
  ): Promise<BaseAiImageClassification["postProcessedOutputs"]>;
3188
3265
  run(
3189
- model: "@cf/facebook/detr-resnet-50",
3266
+ model: BaseAiObjectDetectionModels,
3190
3267
  inputs: BaseAiObjectDetection["inputs"],
3191
3268
  options?: AiOptions,
3192
3269
  ): Promise<BaseAiObjectDetection["postProcessedOutputs"]>;
3193
3270
  run(
3194
- model:
3195
- | "@cf/meta/llama-3-8b-instruct"
3196
- | "@cf/meta/llama-2-7b-chat-int8"
3197
- | "@cf/mistral/mistral-7b-instruct-v0.1"
3198
- | "@cf/mistral/mistral-7b-instruct-v0.1-vllm"
3199
- | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3200
- | "@cf/meta/llama-2-7b-chat-fp16"
3201
- | "@hf/thebloke/llama-2-13b-chat-awq"
3202
- | "@hf/thebloke/zephyr-7b-beta-awq"
3203
- | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3204
- | "@hf/thebloke/codellama-7b-instruct-awq"
3205
- | "@hf/thebloke/openchat_3.5-awq"
3206
- | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3207
- | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3208
- | "@hf/thebloke/llamaguard-7b-awq"
3209
- | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3210
- | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3211
- | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3212
- | "@hf/mistral/mistral-7b-instruct-v0.2"
3213
- | "@cf/mistral/mixtral-8x7b-instruct-v0.1-awq"
3214
- | "@hf/google/gemma-7b-it"
3215
- | "@hf/nexusflow/starling-lm-7b-beta"
3216
- | "@cf/deepseek-ai/deepseek-math-7b-instruct"
3217
- | "@cf/defog/sqlcoder-7b-2"
3218
- | "@cf/openchat/openchat-3.5-0106"
3219
- | "@cf/tiiuae/falcon-7b-instruct"
3220
- | "@cf/thebloke/discolm-german-7b-v1-awq"
3221
- | "@cf/qwen/qwen1.5-0.5b-chat"
3222
- | "@cf/qwen/qwen1.5-1.8b-chat"
3223
- | "@cf/qwen/qwen1.5-7b-chat-awq"
3224
- | "@cf/qwen/qwen1.5-14b-chat-awq"
3225
- | "@cf/tinyllama/tinyllama-1.1b-chat-v1.0"
3226
- | "@cf/microsoft/phi-2"
3227
- | "@cf/google/gemma-2b-it-lora"
3228
- | "@cf/google/gemma-7b-it-lora"
3229
- | "@cf/meta-llama/llama-2-7b-chat-hf-lora",
3271
+ model: BaseAiTextGenerationModels,
3230
3272
  inputs: BaseAiTextGeneration["inputs"],
3231
3273
  options?: AiOptions,
3232
3274
  ): Promise<BaseAiTextGeneration["postProcessedOutputs"]>;
3233
3275
  run(
3234
- model: "@cf/meta/m2m100-1.2b",
3276
+ model: BaseAiTranslationModels,
3235
3277
  inputs: BaseAiTranslation["inputs"],
3236
3278
  options?: AiOptions,
3237
3279
  ): Promise<BaseAiTranslation["postProcessedOutputs"]>;
3238
3280
  run(
3239
- model: "@cf/facebook/bart-large-cnn",
3281
+ model: BaseAiSummarizationModels,
3240
3282
  inputs: BaseAiSummarization["inputs"],
3241
3283
  options?: AiOptions,
3242
3284
  ): Promise<BaseAiSummarization["postProcessedOutputs"]>;
3243
3285
  run(
3244
- model: "@cf/unum/uform-gen2-qwen-500m" | "@cf/llava-hf/llava-1.5-7b-hf",
3286
+ model: BaseAiImageToTextModels,
3245
3287
  inputs: BaseAiImageToText["inputs"],
3246
3288
  options?: AiOptions,
3247
3289
  ): Promise<BaseAiImageToText["postProcessedOutputs"]>;
@@ -4713,6 +4755,15 @@ export interface VectorizeVectorMutation {
4713
4755
  /* Total count of the number of processed vectors. */
4714
4756
  count: number;
4715
4757
  }
4758
+ /**
4759
+ * Results of an operation that performed a mutation on a set of vectors
4760
+ * with the v2 version of Vectorize.
4761
+ * Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
4762
+ */
4763
+ export interface VectorizeVectorMutationV2 {
4764
+ /* The identifier for the last mutation processed by Vectorize. */
4765
+ mutationId: string;
4766
+ }
4716
4767
  export declare abstract class VectorizeIndex {
4717
4768
  /**
4718
4769
  * Get information about the currently bound index.
@@ -4763,6 +4814,8 @@ export type WorkerVersionMetadata = {
4763
4814
  id: string;
4764
4815
  /** The tag of the Worker Version using this binding */
4765
4816
  tag: string;
4817
+ /** The timestamp of when the Worker Version was uploaded */
4818
+ timestamp: string;
4766
4819
  };
4767
4820
  export interface DynamicDispatchLimits {
4768
4821
  /**