@cloudflare/workers-types 4.20240614.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.
@@ -3002,6 +3002,12 @@ declare type AiImageToTextInput = {
3002
3002
  prompt?: string;
3003
3003
  max_tokens?: number;
3004
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;
3005
3011
  raw?: boolean;
3006
3012
  messages?: RoleScopedChatInput[];
3007
3013
  };
@@ -3082,19 +3088,48 @@ declare abstract class BaseAiTextEmbeddings {
3082
3088
  postProcessedOutputs: AiTextEmbeddingsOutput;
3083
3089
  }
3084
3090
  declare type RoleScopedChatInput = {
3085
- role: string;
3091
+ role: "user" | "assistant" | "system" | "tool";
3086
3092
  content: string;
3087
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
+ };
3088
3111
  declare type AiTextGenerationInput = {
3089
3112
  prompt?: string;
3090
3113
  raw?: boolean;
3091
3114
  stream?: boolean;
3092
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;
3093
3123
  messages?: RoleScopedChatInput[];
3124
+ tools?: AiTextGenerationToolInput[];
3094
3125
  };
3095
3126
  declare type AiTextGenerationOutput =
3096
3127
  | {
3097
3128
  response?: string;
3129
+ tool_calls?: {
3130
+ name: string;
3131
+ arguments: unknown;
3132
+ }[];
3098
3133
  }
3099
3134
  | ReadableStream;
3100
3135
  declare abstract class BaseAiTextGeneration {
@@ -3137,108 +3172,113 @@ declare type AiOptions = {
3137
3172
  prefix?: string;
3138
3173
  extraHeaders?: object;
3139
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";
3140
3234
  declare abstract class Ai {
3141
3235
  run(
3142
- model:
3143
- | "@cf/huggingface/distilbert-sst-2-int8"
3144
- | "@cf/jpmorganchase/roberta-spam"
3145
- | "@cf/inml/inml-roberta-dga",
3236
+ model: BaseAiTextClassificationModels,
3146
3237
  inputs: BaseAiTextClassification["inputs"],
3147
3238
  options?: AiOptions,
3148
3239
  ): Promise<BaseAiTextClassification["postProcessedOutputs"]>;
3149
3240
  run(
3150
- model:
3151
- | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3152
- | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3153
- | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3154
- | "@cf/lykon/dreamshaper-8-lcm"
3155
- | "@cf/bytedance/stable-diffusion-xl-lightning",
3241
+ model: BaseAiTextToImageModels,
3156
3242
  inputs: BaseAiTextToImage["inputs"],
3157
3243
  options?: AiOptions,
3158
3244
  ): Promise<BaseAiTextToImage["postProcessedOutputs"]>;
3159
3245
  run(
3160
- model: "@hf/sentence-transformers/all-minilm-l6-v2",
3161
- inputs: BaseAiSentenceSimilarity["inputs"],
3162
- options?: AiOptions,
3163
- ): Promise<BaseAiSentenceSimilarity["postProcessedOutputs"]>;
3164
- run(
3165
- model:
3166
- | "@cf/baai/bge-small-en-v1.5"
3167
- | "@cf/baai/bge-base-en-v1.5"
3168
- | "@cf/baai/bge-large-en-v1.5",
3246
+ model: BaseAiTextEmbeddingsModels,
3169
3247
  inputs: BaseAiTextEmbeddings["inputs"],
3170
3248
  options?: AiOptions,
3171
3249
  ): Promise<BaseAiTextEmbeddings["postProcessedOutputs"]>;
3172
3250
  run(
3173
- model:
3174
- | "@cf/openai/whisper"
3175
- | "@cf/openai/whisper-tiny-en"
3176
- | "@cf/openai/whisper-sherpa",
3251
+ model: BaseAiSpeechRecognitionModels,
3177
3252
  inputs: BaseAiSpeechRecognition["inputs"],
3178
3253
  options?: AiOptions,
3179
3254
  ): Promise<BaseAiSpeechRecognition["postProcessedOutputs"]>;
3180
3255
  run(
3181
- model: "@cf/microsoft/resnet-50",
3256
+ model: BaseAiImageClassificationModels,
3182
3257
  inputs: BaseAiImageClassification["inputs"],
3183
3258
  options?: AiOptions,
3184
3259
  ): Promise<BaseAiImageClassification["postProcessedOutputs"]>;
3185
3260
  run(
3186
- model: "@cf/facebook/detr-resnet-50",
3261
+ model: BaseAiObjectDetectionModels,
3187
3262
  inputs: BaseAiObjectDetection["inputs"],
3188
3263
  options?: AiOptions,
3189
3264
  ): Promise<BaseAiObjectDetection["postProcessedOutputs"]>;
3190
3265
  run(
3191
- model:
3192
- | "@cf/meta/llama-3-8b-instruct"
3193
- | "@cf/meta/llama-2-7b-chat-int8"
3194
- | "@cf/mistral/mistral-7b-instruct-v0.1"
3195
- | "@cf/mistral/mistral-7b-instruct-v0.1-vllm"
3196
- | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3197
- | "@cf/meta/llama-2-7b-chat-fp16"
3198
- | "@hf/thebloke/llama-2-13b-chat-awq"
3199
- | "@hf/thebloke/zephyr-7b-beta-awq"
3200
- | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3201
- | "@hf/thebloke/codellama-7b-instruct-awq"
3202
- | "@hf/thebloke/openchat_3.5-awq"
3203
- | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3204
- | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3205
- | "@hf/thebloke/llamaguard-7b-awq"
3206
- | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3207
- | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3208
- | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3209
- | "@hf/mistral/mistral-7b-instruct-v0.2"
3210
- | "@cf/mistral/mixtral-8x7b-instruct-v0.1-awq"
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",
3266
+ model: BaseAiTextGenerationModels,
3227
3267
  inputs: BaseAiTextGeneration["inputs"],
3228
3268
  options?: AiOptions,
3229
3269
  ): Promise<BaseAiTextGeneration["postProcessedOutputs"]>;
3230
3270
  run(
3231
- model: "@cf/meta/m2m100-1.2b",
3271
+ model: BaseAiTranslationModels,
3232
3272
  inputs: BaseAiTranslation["inputs"],
3233
3273
  options?: AiOptions,
3234
3274
  ): Promise<BaseAiTranslation["postProcessedOutputs"]>;
3235
3275
  run(
3236
- model: "@cf/facebook/bart-large-cnn",
3276
+ model: BaseAiSummarizationModels,
3237
3277
  inputs: BaseAiSummarization["inputs"],
3238
3278
  options?: AiOptions,
3239
3279
  ): Promise<BaseAiSummarization["postProcessedOutputs"]>;
3240
3280
  run(
3241
- model: "@cf/unum/uform-gen2-qwen-500m" | "@cf/llava-hf/llava-1.5-7b-hf",
3281
+ model: BaseAiImageToTextModels,
3242
3282
  inputs: BaseAiImageToText["inputs"],
3243
3283
  options?: AiOptions,
3244
3284
  ): Promise<BaseAiImageToText["postProcessedOutputs"]>;
@@ -4835,6 +4875,8 @@ declare type WorkerVersionMetadata = {
4835
4875
  id: string;
4836
4876
  /** The tag of the Worker Version using this binding */
4837
4877
  tag: string;
4878
+ /** The timestamp of when the Worker Version was uploaded */
4879
+ timestamp: string;
4838
4880
  };
4839
4881
  declare interface DynamicDispatchLimits {
4840
4882
  /**
@@ -3007,6 +3007,12 @@ export type AiImageToTextInput = {
3007
3007
  prompt?: string;
3008
3008
  max_tokens?: number;
3009
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;
3010
3016
  raw?: boolean;
3011
3017
  messages?: RoleScopedChatInput[];
3012
3018
  };
@@ -3087,19 +3093,48 @@ export declare abstract class BaseAiTextEmbeddings {
3087
3093
  postProcessedOutputs: AiTextEmbeddingsOutput;
3088
3094
  }
3089
3095
  export type RoleScopedChatInput = {
3090
- role: string;
3096
+ role: "user" | "assistant" | "system" | "tool";
3091
3097
  content: string;
3092
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
+ };
3093
3116
  export type AiTextGenerationInput = {
3094
3117
  prompt?: string;
3095
3118
  raw?: boolean;
3096
3119
  stream?: boolean;
3097
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;
3098
3128
  messages?: RoleScopedChatInput[];
3129
+ tools?: AiTextGenerationToolInput[];
3099
3130
  };
3100
3131
  export type AiTextGenerationOutput =
3101
3132
  | {
3102
3133
  response?: string;
3134
+ tool_calls?: {
3135
+ name: string;
3136
+ arguments: unknown;
3137
+ }[];
3103
3138
  }
3104
3139
  | ReadableStream;
3105
3140
  export declare abstract class BaseAiTextGeneration {
@@ -3142,108 +3177,113 @@ export type AiOptions = {
3142
3177
  prefix?: string;
3143
3178
  extraHeaders?: object;
3144
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";
3145
3239
  export declare abstract class Ai {
3146
3240
  run(
3147
- model:
3148
- | "@cf/huggingface/distilbert-sst-2-int8"
3149
- | "@cf/jpmorganchase/roberta-spam"
3150
- | "@cf/inml/inml-roberta-dga",
3241
+ model: BaseAiTextClassificationModels,
3151
3242
  inputs: BaseAiTextClassification["inputs"],
3152
3243
  options?: AiOptions,
3153
3244
  ): Promise<BaseAiTextClassification["postProcessedOutputs"]>;
3154
3245
  run(
3155
- model:
3156
- | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3157
- | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3158
- | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3159
- | "@cf/lykon/dreamshaper-8-lcm"
3160
- | "@cf/bytedance/stable-diffusion-xl-lightning",
3246
+ model: BaseAiTextToImageModels,
3161
3247
  inputs: BaseAiTextToImage["inputs"],
3162
3248
  options?: AiOptions,
3163
3249
  ): Promise<BaseAiTextToImage["postProcessedOutputs"]>;
3164
3250
  run(
3165
- model: "@hf/sentence-transformers/all-minilm-l6-v2",
3166
- inputs: BaseAiSentenceSimilarity["inputs"],
3167
- options?: AiOptions,
3168
- ): Promise<BaseAiSentenceSimilarity["postProcessedOutputs"]>;
3169
- run(
3170
- model:
3171
- | "@cf/baai/bge-small-en-v1.5"
3172
- | "@cf/baai/bge-base-en-v1.5"
3173
- | "@cf/baai/bge-large-en-v1.5",
3251
+ model: BaseAiTextEmbeddingsModels,
3174
3252
  inputs: BaseAiTextEmbeddings["inputs"],
3175
3253
  options?: AiOptions,
3176
3254
  ): Promise<BaseAiTextEmbeddings["postProcessedOutputs"]>;
3177
3255
  run(
3178
- model:
3179
- | "@cf/openai/whisper"
3180
- | "@cf/openai/whisper-tiny-en"
3181
- | "@cf/openai/whisper-sherpa",
3256
+ model: BaseAiSpeechRecognitionModels,
3182
3257
  inputs: BaseAiSpeechRecognition["inputs"],
3183
3258
  options?: AiOptions,
3184
3259
  ): Promise<BaseAiSpeechRecognition["postProcessedOutputs"]>;
3185
3260
  run(
3186
- model: "@cf/microsoft/resnet-50",
3261
+ model: BaseAiImageClassificationModels,
3187
3262
  inputs: BaseAiImageClassification["inputs"],
3188
3263
  options?: AiOptions,
3189
3264
  ): Promise<BaseAiImageClassification["postProcessedOutputs"]>;
3190
3265
  run(
3191
- model: "@cf/facebook/detr-resnet-50",
3266
+ model: BaseAiObjectDetectionModels,
3192
3267
  inputs: BaseAiObjectDetection["inputs"],
3193
3268
  options?: AiOptions,
3194
3269
  ): Promise<BaseAiObjectDetection["postProcessedOutputs"]>;
3195
3270
  run(
3196
- model:
3197
- | "@cf/meta/llama-3-8b-instruct"
3198
- | "@cf/meta/llama-2-7b-chat-int8"
3199
- | "@cf/mistral/mistral-7b-instruct-v0.1"
3200
- | "@cf/mistral/mistral-7b-instruct-v0.1-vllm"
3201
- | "@cf/mistral/mistral-7b-instruct-v0.2-lora"
3202
- | "@cf/meta/llama-2-7b-chat-fp16"
3203
- | "@hf/thebloke/llama-2-13b-chat-awq"
3204
- | "@hf/thebloke/zephyr-7b-beta-awq"
3205
- | "@hf/thebloke/mistral-7b-instruct-v0.1-awq"
3206
- | "@hf/thebloke/codellama-7b-instruct-awq"
3207
- | "@hf/thebloke/openchat_3.5-awq"
3208
- | "@hf/thebloke/openhermes-2.5-mistral-7b-awq"
3209
- | "@hf/thebloke/neural-chat-7b-v3-1-awq"
3210
- | "@hf/thebloke/llamaguard-7b-awq"
3211
- | "@hf/thebloke/deepseek-coder-6.7b-base-awq"
3212
- | "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
3213
- | "@hf/nousresearch/hermes-2-pro-mistral-7b"
3214
- | "@hf/mistral/mistral-7b-instruct-v0.2"
3215
- | "@cf/mistral/mixtral-8x7b-instruct-v0.1-awq"
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",
3271
+ model: BaseAiTextGenerationModels,
3232
3272
  inputs: BaseAiTextGeneration["inputs"],
3233
3273
  options?: AiOptions,
3234
3274
  ): Promise<BaseAiTextGeneration["postProcessedOutputs"]>;
3235
3275
  run(
3236
- model: "@cf/meta/m2m100-1.2b",
3276
+ model: BaseAiTranslationModels,
3237
3277
  inputs: BaseAiTranslation["inputs"],
3238
3278
  options?: AiOptions,
3239
3279
  ): Promise<BaseAiTranslation["postProcessedOutputs"]>;
3240
3280
  run(
3241
- model: "@cf/facebook/bart-large-cnn",
3281
+ model: BaseAiSummarizationModels,
3242
3282
  inputs: BaseAiSummarization["inputs"],
3243
3283
  options?: AiOptions,
3244
3284
  ): Promise<BaseAiSummarization["postProcessedOutputs"]>;
3245
3285
  run(
3246
- model: "@cf/unum/uform-gen2-qwen-500m" | "@cf/llava-hf/llava-1.5-7b-hf",
3286
+ model: BaseAiImageToTextModels,
3247
3287
  inputs: BaseAiImageToText["inputs"],
3248
3288
  options?: AiOptions,
3249
3289
  ): Promise<BaseAiImageToText["postProcessedOutputs"]>;
@@ -4774,6 +4814,8 @@ export type WorkerVersionMetadata = {
4774
4814
  id: string;
4775
4815
  /** The tag of the Worker Version using this binding */
4776
4816
  tag: string;
4817
+ /** The timestamp of when the Worker Version was uploaded */
4818
+ timestamp: string;
4777
4819
  };
4778
4820
  export interface DynamicDispatchLimits {
4779
4821
  /**