@cloudflare/workers-types 4.20250917.0 → 4.20250919.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.
- package/2021-11-03/index.d.ts +743 -25
- package/2021-11-03/index.ts +747 -25
- package/2022-01-31/index.d.ts +743 -25
- package/2022-01-31/index.ts +747 -25
- package/2022-03-21/index.d.ts +743 -25
- package/2022-03-21/index.ts +747 -25
- package/2022-08-04/index.d.ts +743 -25
- package/2022-08-04/index.ts +747 -25
- package/2022-10-31/index.d.ts +743 -25
- package/2022-10-31/index.ts +747 -25
- package/2022-11-30/index.d.ts +743 -25
- package/2022-11-30/index.ts +747 -25
- package/2023-03-01/index.d.ts +743 -25
- package/2023-03-01/index.ts +747 -25
- package/2023-07-01/index.d.ts +743 -25
- package/2023-07-01/index.ts +747 -25
- package/experimental/index.d.ts +1012 -131
- package/experimental/index.ts +1016 -131
- package/index.d.ts +743 -25
- package/index.ts +747 -25
- package/latest/index.d.ts +743 -25
- package/latest/index.ts +747 -25
- package/oldest/index.d.ts +743 -25
- package/oldest/index.ts +747 -25
- package/package.json +1 -1
package/2022-08-04/index.ts
CHANGED
|
@@ -466,18 +466,6 @@ export declare abstract class Navigator {
|
|
|
466
466
|
readonly userAgent: string;
|
|
467
467
|
readonly hardwareConcurrency: number;
|
|
468
468
|
}
|
|
469
|
-
/**
|
|
470
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
-
* as well as timing of subrequests and other operations.
|
|
472
|
-
*
|
|
473
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
-
*/
|
|
475
|
-
export interface Performance {
|
|
476
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
-
readonly timeOrigin: number;
|
|
478
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
-
now(): number;
|
|
480
|
-
}
|
|
481
469
|
export interface AlarmInvocationInfo {
|
|
482
470
|
readonly isRetry: boolean;
|
|
483
471
|
readonly retryCount: number;
|
|
@@ -3166,6 +3154,18 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3166
3154
|
tails?: Fetcher[];
|
|
3167
3155
|
streamingTails?: Fetcher[];
|
|
3168
3156
|
}
|
|
3157
|
+
/**
|
|
3158
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3159
|
+
* as well as timing of subrequests and other operations.
|
|
3160
|
+
*
|
|
3161
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3162
|
+
*/
|
|
3163
|
+
export declare abstract class Performance {
|
|
3164
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3165
|
+
get timeOrigin(): number;
|
|
3166
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3167
|
+
now(): number;
|
|
3168
|
+
}
|
|
3169
3169
|
export type AiImageClassificationInput = {
|
|
3170
3170
|
image: number[];
|
|
3171
3171
|
};
|
|
@@ -3220,6 +3220,18 @@ export declare abstract class BaseAiImageTextToText {
|
|
|
3220
3220
|
inputs: AiImageTextToTextInput;
|
|
3221
3221
|
postProcessedOutputs: AiImageTextToTextOutput;
|
|
3222
3222
|
}
|
|
3223
|
+
export type AiMultimodalEmbeddingsInput = {
|
|
3224
|
+
image: string;
|
|
3225
|
+
text: string[];
|
|
3226
|
+
};
|
|
3227
|
+
export type AiIMultimodalEmbeddingsOutput = {
|
|
3228
|
+
data: number[][];
|
|
3229
|
+
shape: number[];
|
|
3230
|
+
};
|
|
3231
|
+
export declare abstract class BaseAiMultimodalEmbeddings {
|
|
3232
|
+
inputs: AiImageTextToTextInput;
|
|
3233
|
+
postProcessedOutputs: AiImageTextToTextOutput;
|
|
3234
|
+
}
|
|
3223
3235
|
export type AiObjectDetectionInput = {
|
|
3224
3236
|
image: number[];
|
|
3225
3237
|
};
|
|
@@ -3358,12 +3370,28 @@ export type AiTextGenerationInput = {
|
|
|
3358
3370
|
| (object & NonNullable<unknown>);
|
|
3359
3371
|
functions?: AiTextGenerationFunctionsInput[];
|
|
3360
3372
|
};
|
|
3373
|
+
export type AiTextGenerationToolLegacyOutput = {
|
|
3374
|
+
name: string;
|
|
3375
|
+
arguments: unknown;
|
|
3376
|
+
};
|
|
3377
|
+
export type AiTextGenerationToolOutput = {
|
|
3378
|
+
id: string;
|
|
3379
|
+
type: "function";
|
|
3380
|
+
function: {
|
|
3381
|
+
name: string;
|
|
3382
|
+
arguments: string;
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3385
|
+
export type UsageTags = {
|
|
3386
|
+
prompt_tokens: number;
|
|
3387
|
+
completion_tokens: number;
|
|
3388
|
+
total_tokens: number;
|
|
3389
|
+
};
|
|
3361
3390
|
export type AiTextGenerationOutput = {
|
|
3362
3391
|
response?: string;
|
|
3363
|
-
tool_calls?:
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
}[];
|
|
3392
|
+
tool_calls?: AiTextGenerationToolLegacyOutput[] &
|
|
3393
|
+
AiTextGenerationToolOutput[];
|
|
3394
|
+
usage?: UsageTags;
|
|
3367
3395
|
};
|
|
3368
3396
|
export declare abstract class BaseAiTextGeneration {
|
|
3369
3397
|
inputs: AiTextGenerationInput;
|
|
@@ -4452,6 +4480,7 @@ export type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output =
|
|
|
4452
4480
|
name?: string;
|
|
4453
4481
|
}[];
|
|
4454
4482
|
}
|
|
4483
|
+
| string
|
|
4455
4484
|
| AsyncResponse;
|
|
4456
4485
|
export declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast {
|
|
4457
4486
|
inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input;
|
|
@@ -4528,7 +4557,6 @@ export interface Ai_Cf_Baai_Bge_Reranker_Base_Input {
|
|
|
4528
4557
|
/**
|
|
4529
4558
|
* A query you wish to perform against the provided contexts.
|
|
4530
4559
|
*/
|
|
4531
|
-
query: string;
|
|
4532
4560
|
/**
|
|
4533
4561
|
* Number of returned results starting with the best score.
|
|
4534
4562
|
*/
|
|
@@ -5623,7 +5651,8 @@ export declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It {
|
|
|
5623
5651
|
}
|
|
5624
5652
|
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input =
|
|
5625
5653
|
| Ai_Cf_Meta_Llama_4_Prompt
|
|
5626
|
-
| Ai_Cf_Meta_Llama_4_Messages
|
|
5654
|
+
| Ai_Cf_Meta_Llama_4_Messages
|
|
5655
|
+
| Ai_Cf_Meta_Llama_4_Async_Batch;
|
|
5627
5656
|
export interface Ai_Cf_Meta_Llama_4_Prompt {
|
|
5628
5657
|
/**
|
|
5629
5658
|
* The input text prompt for the model to generate a response.
|
|
@@ -5857,6 +5886,245 @@ export interface Ai_Cf_Meta_Llama_4_Messages {
|
|
|
5857
5886
|
*/
|
|
5858
5887
|
presence_penalty?: number;
|
|
5859
5888
|
}
|
|
5889
|
+
export interface Ai_Cf_Meta_Llama_4_Async_Batch {
|
|
5890
|
+
requests: (
|
|
5891
|
+
| Ai_Cf_Meta_Llama_4_Prompt_Inner
|
|
5892
|
+
| Ai_Cf_Meta_Llama_4_Messages_Inner
|
|
5893
|
+
)[];
|
|
5894
|
+
}
|
|
5895
|
+
export interface Ai_Cf_Meta_Llama_4_Prompt_Inner {
|
|
5896
|
+
/**
|
|
5897
|
+
* The input text prompt for the model to generate a response.
|
|
5898
|
+
*/
|
|
5899
|
+
prompt: string;
|
|
5900
|
+
/**
|
|
5901
|
+
* JSON schema that should be fulfilled for the response.
|
|
5902
|
+
*/
|
|
5903
|
+
guided_json?: object;
|
|
5904
|
+
response_format?: JSONMode;
|
|
5905
|
+
/**
|
|
5906
|
+
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
5907
|
+
*/
|
|
5908
|
+
raw?: boolean;
|
|
5909
|
+
/**
|
|
5910
|
+
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
5911
|
+
*/
|
|
5912
|
+
stream?: boolean;
|
|
5913
|
+
/**
|
|
5914
|
+
* The maximum number of tokens to generate in the response.
|
|
5915
|
+
*/
|
|
5916
|
+
max_tokens?: number;
|
|
5917
|
+
/**
|
|
5918
|
+
* Controls the randomness of the output; higher values produce more random results.
|
|
5919
|
+
*/
|
|
5920
|
+
temperature?: number;
|
|
5921
|
+
/**
|
|
5922
|
+
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
5923
|
+
*/
|
|
5924
|
+
top_p?: number;
|
|
5925
|
+
/**
|
|
5926
|
+
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
5927
|
+
*/
|
|
5928
|
+
top_k?: number;
|
|
5929
|
+
/**
|
|
5930
|
+
* Random seed for reproducibility of the generation.
|
|
5931
|
+
*/
|
|
5932
|
+
seed?: number;
|
|
5933
|
+
/**
|
|
5934
|
+
* Penalty for repeated tokens; higher values discourage repetition.
|
|
5935
|
+
*/
|
|
5936
|
+
repetition_penalty?: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
5939
|
+
*/
|
|
5940
|
+
frequency_penalty?: number;
|
|
5941
|
+
/**
|
|
5942
|
+
* Increases the likelihood of the model introducing new topics.
|
|
5943
|
+
*/
|
|
5944
|
+
presence_penalty?: number;
|
|
5945
|
+
}
|
|
5946
|
+
export interface Ai_Cf_Meta_Llama_4_Messages_Inner {
|
|
5947
|
+
/**
|
|
5948
|
+
* An array of message objects representing the conversation history.
|
|
5949
|
+
*/
|
|
5950
|
+
messages: {
|
|
5951
|
+
/**
|
|
5952
|
+
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
5953
|
+
*/
|
|
5954
|
+
role?: string;
|
|
5955
|
+
/**
|
|
5956
|
+
* The tool call id. If you don't know what to put here you can fall back to 000000001
|
|
5957
|
+
*/
|
|
5958
|
+
tool_call_id?: string;
|
|
5959
|
+
content?:
|
|
5960
|
+
| string
|
|
5961
|
+
| {
|
|
5962
|
+
/**
|
|
5963
|
+
* Type of the content provided
|
|
5964
|
+
*/
|
|
5965
|
+
type?: string;
|
|
5966
|
+
text?: string;
|
|
5967
|
+
image_url?: {
|
|
5968
|
+
/**
|
|
5969
|
+
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
5970
|
+
*/
|
|
5971
|
+
url?: string;
|
|
5972
|
+
};
|
|
5973
|
+
}[]
|
|
5974
|
+
| {
|
|
5975
|
+
/**
|
|
5976
|
+
* Type of the content provided
|
|
5977
|
+
*/
|
|
5978
|
+
type?: string;
|
|
5979
|
+
text?: string;
|
|
5980
|
+
image_url?: {
|
|
5981
|
+
/**
|
|
5982
|
+
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
5983
|
+
*/
|
|
5984
|
+
url?: string;
|
|
5985
|
+
};
|
|
5986
|
+
};
|
|
5987
|
+
}[];
|
|
5988
|
+
functions?: {
|
|
5989
|
+
name: string;
|
|
5990
|
+
code: string;
|
|
5991
|
+
}[];
|
|
5992
|
+
/**
|
|
5993
|
+
* A list of tools available for the assistant to use.
|
|
5994
|
+
*/
|
|
5995
|
+
tools?: (
|
|
5996
|
+
| {
|
|
5997
|
+
/**
|
|
5998
|
+
* The name of the tool. More descriptive the better.
|
|
5999
|
+
*/
|
|
6000
|
+
name: string;
|
|
6001
|
+
/**
|
|
6002
|
+
* A brief description of what the tool does.
|
|
6003
|
+
*/
|
|
6004
|
+
description: string;
|
|
6005
|
+
/**
|
|
6006
|
+
* Schema defining the parameters accepted by the tool.
|
|
6007
|
+
*/
|
|
6008
|
+
parameters: {
|
|
6009
|
+
/**
|
|
6010
|
+
* The type of the parameters object (usually 'object').
|
|
6011
|
+
*/
|
|
6012
|
+
type: string;
|
|
6013
|
+
/**
|
|
6014
|
+
* List of required parameter names.
|
|
6015
|
+
*/
|
|
6016
|
+
required?: string[];
|
|
6017
|
+
/**
|
|
6018
|
+
* Definitions of each parameter.
|
|
6019
|
+
*/
|
|
6020
|
+
properties: {
|
|
6021
|
+
[k: string]: {
|
|
6022
|
+
/**
|
|
6023
|
+
* The data type of the parameter.
|
|
6024
|
+
*/
|
|
6025
|
+
type: string;
|
|
6026
|
+
/**
|
|
6027
|
+
* A description of the expected parameter.
|
|
6028
|
+
*/
|
|
6029
|
+
description: string;
|
|
6030
|
+
};
|
|
6031
|
+
};
|
|
6032
|
+
};
|
|
6033
|
+
}
|
|
6034
|
+
| {
|
|
6035
|
+
/**
|
|
6036
|
+
* Specifies the type of tool (e.g., 'function').
|
|
6037
|
+
*/
|
|
6038
|
+
type: string;
|
|
6039
|
+
/**
|
|
6040
|
+
* Details of the function tool.
|
|
6041
|
+
*/
|
|
6042
|
+
function: {
|
|
6043
|
+
/**
|
|
6044
|
+
* The name of the function.
|
|
6045
|
+
*/
|
|
6046
|
+
name: string;
|
|
6047
|
+
/**
|
|
6048
|
+
* A brief description of what the function does.
|
|
6049
|
+
*/
|
|
6050
|
+
description: string;
|
|
6051
|
+
/**
|
|
6052
|
+
* Schema defining the parameters accepted by the function.
|
|
6053
|
+
*/
|
|
6054
|
+
parameters: {
|
|
6055
|
+
/**
|
|
6056
|
+
* The type of the parameters object (usually 'object').
|
|
6057
|
+
*/
|
|
6058
|
+
type: string;
|
|
6059
|
+
/**
|
|
6060
|
+
* List of required parameter names.
|
|
6061
|
+
*/
|
|
6062
|
+
required?: string[];
|
|
6063
|
+
/**
|
|
6064
|
+
* Definitions of each parameter.
|
|
6065
|
+
*/
|
|
6066
|
+
properties: {
|
|
6067
|
+
[k: string]: {
|
|
6068
|
+
/**
|
|
6069
|
+
* The data type of the parameter.
|
|
6070
|
+
*/
|
|
6071
|
+
type: string;
|
|
6072
|
+
/**
|
|
6073
|
+
* A description of the expected parameter.
|
|
6074
|
+
*/
|
|
6075
|
+
description: string;
|
|
6076
|
+
};
|
|
6077
|
+
};
|
|
6078
|
+
};
|
|
6079
|
+
};
|
|
6080
|
+
}
|
|
6081
|
+
)[];
|
|
6082
|
+
response_format?: JSONMode;
|
|
6083
|
+
/**
|
|
6084
|
+
* JSON schema that should be fufilled for the response.
|
|
6085
|
+
*/
|
|
6086
|
+
guided_json?: object;
|
|
6087
|
+
/**
|
|
6088
|
+
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
6089
|
+
*/
|
|
6090
|
+
raw?: boolean;
|
|
6091
|
+
/**
|
|
6092
|
+
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
6093
|
+
*/
|
|
6094
|
+
stream?: boolean;
|
|
6095
|
+
/**
|
|
6096
|
+
* The maximum number of tokens to generate in the response.
|
|
6097
|
+
*/
|
|
6098
|
+
max_tokens?: number;
|
|
6099
|
+
/**
|
|
6100
|
+
* Controls the randomness of the output; higher values produce more random results.
|
|
6101
|
+
*/
|
|
6102
|
+
temperature?: number;
|
|
6103
|
+
/**
|
|
6104
|
+
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
6105
|
+
*/
|
|
6106
|
+
top_p?: number;
|
|
6107
|
+
/**
|
|
6108
|
+
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
6109
|
+
*/
|
|
6110
|
+
top_k?: number;
|
|
6111
|
+
/**
|
|
6112
|
+
* Random seed for reproducibility of the generation.
|
|
6113
|
+
*/
|
|
6114
|
+
seed?: number;
|
|
6115
|
+
/**
|
|
6116
|
+
* Penalty for repeated tokens; higher values discourage repetition.
|
|
6117
|
+
*/
|
|
6118
|
+
repetition_penalty?: number;
|
|
6119
|
+
/**
|
|
6120
|
+
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
6121
|
+
*/
|
|
6122
|
+
frequency_penalty?: number;
|
|
6123
|
+
/**
|
|
6124
|
+
* Increases the likelihood of the model introducing new topics.
|
|
6125
|
+
*/
|
|
6126
|
+
presence_penalty?: number;
|
|
6127
|
+
}
|
|
5860
6128
|
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = {
|
|
5861
6129
|
/**
|
|
5862
6130
|
* The generated text response from the model
|
|
@@ -5910,6 +6178,447 @@ export declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct {
|
|
|
5910
6178
|
inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input;
|
|
5911
6179
|
postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output;
|
|
5912
6180
|
}
|
|
6181
|
+
export interface Ai_Cf_Deepgram_Nova_3_Input {
|
|
6182
|
+
audio: {
|
|
6183
|
+
body: object;
|
|
6184
|
+
contentType: string;
|
|
6185
|
+
};
|
|
6186
|
+
/**
|
|
6187
|
+
* Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param.
|
|
6188
|
+
*/
|
|
6189
|
+
custom_topic_mode?: "extended" | "strict";
|
|
6190
|
+
/**
|
|
6191
|
+
* Custom topics you want the model to detect within your input audio or text if present Submit up to 100
|
|
6192
|
+
*/
|
|
6193
|
+
custom_topic?: string;
|
|
6194
|
+
/**
|
|
6195
|
+
* Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param
|
|
6196
|
+
*/
|
|
6197
|
+
custom_intent_mode?: "extended" | "strict";
|
|
6198
|
+
/**
|
|
6199
|
+
* Custom intents you want the model to detect within your input audio if present
|
|
6200
|
+
*/
|
|
6201
|
+
custom_intent?: string;
|
|
6202
|
+
/**
|
|
6203
|
+
* Identifies and extracts key entities from content in submitted audio
|
|
6204
|
+
*/
|
|
6205
|
+
detect_entities?: boolean;
|
|
6206
|
+
/**
|
|
6207
|
+
* Identifies the dominant language spoken in submitted audio
|
|
6208
|
+
*/
|
|
6209
|
+
detect_language?: boolean;
|
|
6210
|
+
/**
|
|
6211
|
+
* Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0
|
|
6212
|
+
*/
|
|
6213
|
+
diarize?: boolean;
|
|
6214
|
+
/**
|
|
6215
|
+
* Identify and extract key entities from content in submitted audio
|
|
6216
|
+
*/
|
|
6217
|
+
dictation?: boolean;
|
|
6218
|
+
/**
|
|
6219
|
+
* Specify the expected encoding of your submitted audio
|
|
6220
|
+
*/
|
|
6221
|
+
encoding?:
|
|
6222
|
+
| "linear16"
|
|
6223
|
+
| "flac"
|
|
6224
|
+
| "mulaw"
|
|
6225
|
+
| "amr-nb"
|
|
6226
|
+
| "amr-wb"
|
|
6227
|
+
| "opus"
|
|
6228
|
+
| "speex"
|
|
6229
|
+
| "g729";
|
|
6230
|
+
/**
|
|
6231
|
+
* Arbitrary key-value pairs that are attached to the API response for usage in downstream processing
|
|
6232
|
+
*/
|
|
6233
|
+
extra?: string;
|
|
6234
|
+
/**
|
|
6235
|
+
* Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um'
|
|
6236
|
+
*/
|
|
6237
|
+
filler_words?: boolean;
|
|
6238
|
+
/**
|
|
6239
|
+
* Key term prompting can boost or suppress specialized terminology and brands.
|
|
6240
|
+
*/
|
|
6241
|
+
keyterm?: string;
|
|
6242
|
+
/**
|
|
6243
|
+
* Keywords can boost or suppress specialized terminology and brands.
|
|
6244
|
+
*/
|
|
6245
|
+
keywords?: string;
|
|
6246
|
+
/**
|
|
6247
|
+
* The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available.
|
|
6248
|
+
*/
|
|
6249
|
+
language?: string;
|
|
6250
|
+
/**
|
|
6251
|
+
* Spoken measurements will be converted to their corresponding abbreviations.
|
|
6252
|
+
*/
|
|
6253
|
+
measurements?: boolean;
|
|
6254
|
+
/**
|
|
6255
|
+
* Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip.
|
|
6256
|
+
*/
|
|
6257
|
+
mip_opt_out?: boolean;
|
|
6258
|
+
/**
|
|
6259
|
+
* Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio
|
|
6260
|
+
*/
|
|
6261
|
+
mode?: "general" | "medical" | "finance";
|
|
6262
|
+
/**
|
|
6263
|
+
* Transcribe each audio channel independently.
|
|
6264
|
+
*/
|
|
6265
|
+
multichannel?: boolean;
|
|
6266
|
+
/**
|
|
6267
|
+
* Numerals converts numbers from written format to numerical format.
|
|
6268
|
+
*/
|
|
6269
|
+
numerals?: boolean;
|
|
6270
|
+
/**
|
|
6271
|
+
* Splits audio into paragraphs to improve transcript readability.
|
|
6272
|
+
*/
|
|
6273
|
+
paragraphs?: boolean;
|
|
6274
|
+
/**
|
|
6275
|
+
* Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely.
|
|
6276
|
+
*/
|
|
6277
|
+
profanity_filter?: boolean;
|
|
6278
|
+
/**
|
|
6279
|
+
* Add punctuation and capitalization to the transcript.
|
|
6280
|
+
*/
|
|
6281
|
+
punctuate?: boolean;
|
|
6282
|
+
/**
|
|
6283
|
+
* Redaction removes sensitive information from your transcripts.
|
|
6284
|
+
*/
|
|
6285
|
+
redact?: string;
|
|
6286
|
+
/**
|
|
6287
|
+
* Search for terms or phrases in submitted audio and replaces them.
|
|
6288
|
+
*/
|
|
6289
|
+
replace?: string;
|
|
6290
|
+
/**
|
|
6291
|
+
* Search for terms or phrases in submitted audio.
|
|
6292
|
+
*/
|
|
6293
|
+
search?: string;
|
|
6294
|
+
/**
|
|
6295
|
+
* Recognizes the sentiment throughout a transcript or text.
|
|
6296
|
+
*/
|
|
6297
|
+
sentiment?: boolean;
|
|
6298
|
+
/**
|
|
6299
|
+
* Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability.
|
|
6300
|
+
*/
|
|
6301
|
+
smart_format?: boolean;
|
|
6302
|
+
/**
|
|
6303
|
+
* Detect topics throughout a transcript or text.
|
|
6304
|
+
*/
|
|
6305
|
+
topics?: boolean;
|
|
6306
|
+
/**
|
|
6307
|
+
* Segments speech into meaningful semantic units.
|
|
6308
|
+
*/
|
|
6309
|
+
utterances?: boolean;
|
|
6310
|
+
/**
|
|
6311
|
+
* Seconds to wait before detecting a pause between words in submitted audio.
|
|
6312
|
+
*/
|
|
6313
|
+
utt_split?: number;
|
|
6314
|
+
/**
|
|
6315
|
+
* The number of channels in the submitted audio
|
|
6316
|
+
*/
|
|
6317
|
+
channels?: number;
|
|
6318
|
+
/**
|
|
6319
|
+
* Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets.
|
|
6320
|
+
*/
|
|
6321
|
+
interim_results?: boolean;
|
|
6322
|
+
/**
|
|
6323
|
+
* Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing
|
|
6324
|
+
*/
|
|
6325
|
+
endpointing?: string;
|
|
6326
|
+
/**
|
|
6327
|
+
* Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.
|
|
6328
|
+
*/
|
|
6329
|
+
vad_events?: boolean;
|
|
6330
|
+
/**
|
|
6331
|
+
* Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets.
|
|
6332
|
+
*/
|
|
6333
|
+
utterance_end_ms?: boolean;
|
|
6334
|
+
}
|
|
6335
|
+
export interface Ai_Cf_Deepgram_Nova_3_Output {
|
|
6336
|
+
results?: {
|
|
6337
|
+
channels?: {
|
|
6338
|
+
alternatives?: {
|
|
6339
|
+
confidence?: number;
|
|
6340
|
+
transcript?: string;
|
|
6341
|
+
words?: {
|
|
6342
|
+
confidence?: number;
|
|
6343
|
+
end?: number;
|
|
6344
|
+
start?: number;
|
|
6345
|
+
word?: string;
|
|
6346
|
+
}[];
|
|
6347
|
+
}[];
|
|
6348
|
+
}[];
|
|
6349
|
+
summary?: {
|
|
6350
|
+
result?: string;
|
|
6351
|
+
short?: string;
|
|
6352
|
+
};
|
|
6353
|
+
sentiments?: {
|
|
6354
|
+
segments?: {
|
|
6355
|
+
text?: string;
|
|
6356
|
+
start_word?: number;
|
|
6357
|
+
end_word?: number;
|
|
6358
|
+
sentiment?: string;
|
|
6359
|
+
sentiment_score?: number;
|
|
6360
|
+
}[];
|
|
6361
|
+
average?: {
|
|
6362
|
+
sentiment?: string;
|
|
6363
|
+
sentiment_score?: number;
|
|
6364
|
+
};
|
|
6365
|
+
};
|
|
6366
|
+
};
|
|
6367
|
+
}
|
|
6368
|
+
export declare abstract class Base_Ai_Cf_Deepgram_Nova_3 {
|
|
6369
|
+
inputs: Ai_Cf_Deepgram_Nova_3_Input;
|
|
6370
|
+
postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output;
|
|
6371
|
+
}
|
|
6372
|
+
export type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input =
|
|
6373
|
+
| {
|
|
6374
|
+
/**
|
|
6375
|
+
* readable stream with audio data and content-type specified for that data
|
|
6376
|
+
*/
|
|
6377
|
+
audio: {
|
|
6378
|
+
body: object;
|
|
6379
|
+
contentType: string;
|
|
6380
|
+
};
|
|
6381
|
+
/**
|
|
6382
|
+
* type of data PCM data that's sent to the inference server as raw array
|
|
6383
|
+
*/
|
|
6384
|
+
dtype?: "uint8" | "float32" | "float64";
|
|
6385
|
+
}
|
|
6386
|
+
| {
|
|
6387
|
+
/**
|
|
6388
|
+
* base64 encoded audio data
|
|
6389
|
+
*/
|
|
6390
|
+
audio: string;
|
|
6391
|
+
/**
|
|
6392
|
+
* type of data PCM data that's sent to the inference server as raw array
|
|
6393
|
+
*/
|
|
6394
|
+
dtype?: "uint8" | "float32" | "float64";
|
|
6395
|
+
};
|
|
6396
|
+
export interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output {
|
|
6397
|
+
/**
|
|
6398
|
+
* if true, end-of-turn was detected
|
|
6399
|
+
*/
|
|
6400
|
+
is_complete?: boolean;
|
|
6401
|
+
/**
|
|
6402
|
+
* probability of the end-of-turn detection
|
|
6403
|
+
*/
|
|
6404
|
+
probability?: number;
|
|
6405
|
+
}
|
|
6406
|
+
export declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 {
|
|
6407
|
+
inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input;
|
|
6408
|
+
postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output;
|
|
6409
|
+
}
|
|
6410
|
+
export type Ai_Cf_Openai_Gpt_Oss_120B_Input =
|
|
6411
|
+
| GPT_OSS_120B_Responses
|
|
6412
|
+
| GPT_OSS_120B_Responses_Async;
|
|
6413
|
+
export interface GPT_OSS_120B_Responses {
|
|
6414
|
+
/**
|
|
6415
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6416
|
+
*/
|
|
6417
|
+
input: string | unknown[];
|
|
6418
|
+
reasoning?: {
|
|
6419
|
+
/**
|
|
6420
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
6421
|
+
*/
|
|
6422
|
+
effort?: "low" | "medium" | "high";
|
|
6423
|
+
/**
|
|
6424
|
+
* A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.
|
|
6425
|
+
*/
|
|
6426
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6427
|
+
};
|
|
6428
|
+
}
|
|
6429
|
+
export interface GPT_OSS_120B_Responses_Async {
|
|
6430
|
+
requests: {
|
|
6431
|
+
/**
|
|
6432
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6433
|
+
*/
|
|
6434
|
+
input: string | unknown[];
|
|
6435
|
+
reasoning?: {
|
|
6436
|
+
/**
|
|
6437
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
6438
|
+
*/
|
|
6439
|
+
effort?: "low" | "medium" | "high";
|
|
6440
|
+
/**
|
|
6441
|
+
* A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.
|
|
6442
|
+
*/
|
|
6443
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6444
|
+
};
|
|
6445
|
+
}[];
|
|
6446
|
+
}
|
|
6447
|
+
export type Ai_Cf_Openai_Gpt_Oss_120B_Output =
|
|
6448
|
+
| {}
|
|
6449
|
+
| (string & NonNullable<unknown>);
|
|
6450
|
+
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B {
|
|
6451
|
+
inputs: Ai_Cf_Openai_Gpt_Oss_120B_Input;
|
|
6452
|
+
postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_120B_Output;
|
|
6453
|
+
}
|
|
6454
|
+
export type Ai_Cf_Openai_Gpt_Oss_20B_Input =
|
|
6455
|
+
| GPT_OSS_20B_Responses
|
|
6456
|
+
| GPT_OSS_20B_Responses_Async;
|
|
6457
|
+
export interface GPT_OSS_20B_Responses {
|
|
6458
|
+
/**
|
|
6459
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6460
|
+
*/
|
|
6461
|
+
input: string | unknown[];
|
|
6462
|
+
reasoning?: {
|
|
6463
|
+
/**
|
|
6464
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
6465
|
+
*/
|
|
6466
|
+
effort?: "low" | "medium" | "high";
|
|
6467
|
+
/**
|
|
6468
|
+
* A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.
|
|
6469
|
+
*/
|
|
6470
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6471
|
+
};
|
|
6472
|
+
}
|
|
6473
|
+
export interface GPT_OSS_20B_Responses_Async {
|
|
6474
|
+
requests: {
|
|
6475
|
+
/**
|
|
6476
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6477
|
+
*/
|
|
6478
|
+
input: string | unknown[];
|
|
6479
|
+
reasoning?: {
|
|
6480
|
+
/**
|
|
6481
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
6482
|
+
*/
|
|
6483
|
+
effort?: "low" | "medium" | "high";
|
|
6484
|
+
/**
|
|
6485
|
+
* A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.
|
|
6486
|
+
*/
|
|
6487
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6488
|
+
};
|
|
6489
|
+
}[];
|
|
6490
|
+
}
|
|
6491
|
+
export type Ai_Cf_Openai_Gpt_Oss_20B_Output =
|
|
6492
|
+
| {}
|
|
6493
|
+
| (string & NonNullable<unknown>);
|
|
6494
|
+
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B {
|
|
6495
|
+
inputs: Ai_Cf_Openai_Gpt_Oss_20B_Input;
|
|
6496
|
+
postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_20B_Output;
|
|
6497
|
+
}
|
|
6498
|
+
export interface Ai_Cf_Leonardo_Phoenix_1_0_Input {
|
|
6499
|
+
/**
|
|
6500
|
+
* A text description of the image you want to generate.
|
|
6501
|
+
*/
|
|
6502
|
+
prompt: string;
|
|
6503
|
+
/**
|
|
6504
|
+
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
6505
|
+
*/
|
|
6506
|
+
guidance?: number;
|
|
6507
|
+
/**
|
|
6508
|
+
* Random seed for reproducibility of the image generation
|
|
6509
|
+
*/
|
|
6510
|
+
seed?: number;
|
|
6511
|
+
/**
|
|
6512
|
+
* The height of the generated image in pixels
|
|
6513
|
+
*/
|
|
6514
|
+
height?: number;
|
|
6515
|
+
/**
|
|
6516
|
+
* The width of the generated image in pixels
|
|
6517
|
+
*/
|
|
6518
|
+
width?: number;
|
|
6519
|
+
/**
|
|
6520
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6521
|
+
*/
|
|
6522
|
+
num_steps?: number;
|
|
6523
|
+
/**
|
|
6524
|
+
* Specify what to exclude from the generated images
|
|
6525
|
+
*/
|
|
6526
|
+
negative_prompt?: string;
|
|
6527
|
+
}
|
|
6528
|
+
/**
|
|
6529
|
+
* The generated image in JPEG format
|
|
6530
|
+
*/
|
|
6531
|
+
export type Ai_Cf_Leonardo_Phoenix_1_0_Output = string;
|
|
6532
|
+
export declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 {
|
|
6533
|
+
inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input;
|
|
6534
|
+
postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output;
|
|
6535
|
+
}
|
|
6536
|
+
export interface Ai_Cf_Leonardo_Lucid_Origin_Input {
|
|
6537
|
+
/**
|
|
6538
|
+
* A text description of the image you want to generate.
|
|
6539
|
+
*/
|
|
6540
|
+
prompt: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
6543
|
+
*/
|
|
6544
|
+
guidance?: number;
|
|
6545
|
+
/**
|
|
6546
|
+
* Random seed for reproducibility of the image generation
|
|
6547
|
+
*/
|
|
6548
|
+
seed?: number;
|
|
6549
|
+
/**
|
|
6550
|
+
* The height of the generated image in pixels
|
|
6551
|
+
*/
|
|
6552
|
+
height?: number;
|
|
6553
|
+
/**
|
|
6554
|
+
* The width of the generated image in pixels
|
|
6555
|
+
*/
|
|
6556
|
+
width?: number;
|
|
6557
|
+
/**
|
|
6558
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6559
|
+
*/
|
|
6560
|
+
num_steps?: number;
|
|
6561
|
+
/**
|
|
6562
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6563
|
+
*/
|
|
6564
|
+
steps?: number;
|
|
6565
|
+
}
|
|
6566
|
+
export interface Ai_Cf_Leonardo_Lucid_Origin_Output {
|
|
6567
|
+
/**
|
|
6568
|
+
* The generated image in Base64 format.
|
|
6569
|
+
*/
|
|
6570
|
+
image?: string;
|
|
6571
|
+
}
|
|
6572
|
+
export declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin {
|
|
6573
|
+
inputs: Ai_Cf_Leonardo_Lucid_Origin_Input;
|
|
6574
|
+
postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output;
|
|
6575
|
+
}
|
|
6576
|
+
export interface Ai_Cf_Deepgram_Aura_1_Input {
|
|
6577
|
+
/**
|
|
6578
|
+
* Speaker used to produce the audio.
|
|
6579
|
+
*/
|
|
6580
|
+
speaker?:
|
|
6581
|
+
| "angus"
|
|
6582
|
+
| "asteria"
|
|
6583
|
+
| "arcas"
|
|
6584
|
+
| "orion"
|
|
6585
|
+
| "orpheus"
|
|
6586
|
+
| "athena"
|
|
6587
|
+
| "luna"
|
|
6588
|
+
| "zeus"
|
|
6589
|
+
| "perseus"
|
|
6590
|
+
| "helios"
|
|
6591
|
+
| "hera"
|
|
6592
|
+
| "stella";
|
|
6593
|
+
/**
|
|
6594
|
+
* Encoding of the output audio.
|
|
6595
|
+
*/
|
|
6596
|
+
encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac";
|
|
6597
|
+
/**
|
|
6598
|
+
* Container specifies the file format wrapper for the output audio. The available options depend on the encoding type..
|
|
6599
|
+
*/
|
|
6600
|
+
container?: "none" | "wav" | "ogg";
|
|
6601
|
+
/**
|
|
6602
|
+
* The text content to be converted to speech
|
|
6603
|
+
*/
|
|
6604
|
+
text: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
|
|
6607
|
+
*/
|
|
6608
|
+
sample_rate?: number;
|
|
6609
|
+
/**
|
|
6610
|
+
* The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
|
|
6611
|
+
*/
|
|
6612
|
+
bit_rate?: number;
|
|
6613
|
+
}
|
|
6614
|
+
/**
|
|
6615
|
+
* The generated audio in MP3 format
|
|
6616
|
+
*/
|
|
6617
|
+
export type Ai_Cf_Deepgram_Aura_1_Output = string;
|
|
6618
|
+
export declare abstract class Base_Ai_Cf_Deepgram_Aura_1 {
|
|
6619
|
+
inputs: Ai_Cf_Deepgram_Aura_1_Input;
|
|
6620
|
+
postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output;
|
|
6621
|
+
}
|
|
5913
6622
|
export interface AiModels {
|
|
5914
6623
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
5915
6624
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -5918,8 +6627,8 @@ export interface AiModels {
|
|
|
5918
6627
|
"@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage;
|
|
5919
6628
|
"@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage;
|
|
5920
6629
|
"@cf/myshell-ai/melotts": BaseAiTextToSpeech;
|
|
6630
|
+
"@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings;
|
|
5921
6631
|
"@cf/microsoft/resnet-50": BaseAiImageClassification;
|
|
5922
|
-
"@cf/facebook/detr-resnet-50": BaseAiObjectDetection;
|
|
5923
6632
|
"@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration;
|
|
5924
6633
|
"@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration;
|
|
5925
6634
|
"@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration;
|
|
@@ -5954,7 +6663,6 @@ export interface AiModels {
|
|
|
5954
6663
|
"@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration;
|
|
5955
6664
|
"@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration;
|
|
5956
6665
|
"@hf/meta-llama/meta-llama-3-8b-instruct": BaseAiTextGeneration;
|
|
5957
|
-
"@cf/meta/llama-3.1-8b-instruct": BaseAiTextGeneration;
|
|
5958
6666
|
"@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration;
|
|
5959
6667
|
"@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration;
|
|
5960
6668
|
"@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration;
|
|
@@ -5981,6 +6689,13 @@ export interface AiModels {
|
|
|
5981
6689
|
"@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct;
|
|
5982
6690
|
"@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It;
|
|
5983
6691
|
"@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct;
|
|
6692
|
+
"@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3;
|
|
6693
|
+
"@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2;
|
|
6694
|
+
"@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B;
|
|
6695
|
+
"@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B;
|
|
6696
|
+
"@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0;
|
|
6697
|
+
"@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin;
|
|
6698
|
+
"@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1;
|
|
5984
6699
|
}
|
|
5985
6700
|
export type AiOptions = {
|
|
5986
6701
|
/**
|
|
@@ -5988,6 +6703,10 @@ export type AiOptions = {
|
|
|
5988
6703
|
* https://developers.cloudflare.com/workers-ai/features/batch-api
|
|
5989
6704
|
*/
|
|
5990
6705
|
queueRequest?: boolean;
|
|
6706
|
+
/**
|
|
6707
|
+
* Establish websocket connections, only works for supported models
|
|
6708
|
+
*/
|
|
6709
|
+
websocket?: boolean;
|
|
5991
6710
|
gateway?: GatewayOptions;
|
|
5992
6711
|
returnRawResponse?: boolean;
|
|
5993
6712
|
prefix?: string;
|
|
@@ -6033,7 +6752,7 @@ export declare abstract class Ai<
|
|
|
6033
6752
|
> {
|
|
6034
6753
|
aiGatewayLogId: string | null;
|
|
6035
6754
|
gateway(gatewayId: string): AiGateway;
|
|
6036
|
-
autorag(autoragId
|
|
6755
|
+
autorag(autoragId: string): AutoRAG;
|
|
6037
6756
|
run<
|
|
6038
6757
|
Name extends keyof AiModelList,
|
|
6039
6758
|
Options extends AiOptions,
|
|
@@ -6043,9 +6762,13 @@ export declare abstract class Ai<
|
|
|
6043
6762
|
inputs: InputOptions,
|
|
6044
6763
|
options?: Options,
|
|
6045
6764
|
): Promise<
|
|
6046
|
-
Options extends
|
|
6047
|
-
|
|
6048
|
-
|
|
6765
|
+
Options extends
|
|
6766
|
+
| {
|
|
6767
|
+
returnRawResponse: true;
|
|
6768
|
+
}
|
|
6769
|
+
| {
|
|
6770
|
+
websocket: true;
|
|
6771
|
+
}
|
|
6049
6772
|
? Response
|
|
6050
6773
|
: InputOptions extends {
|
|
6051
6774
|
stream: true;
|
|
@@ -8230,7 +8953,6 @@ export declare namespace TailStream {
|
|
|
8230
8953
|
}
|
|
8231
8954
|
interface JsRpcEventInfo {
|
|
8232
8955
|
readonly type: "jsrpc";
|
|
8233
|
-
readonly methodName: string;
|
|
8234
8956
|
}
|
|
8235
8957
|
interface ScheduledEventInfo {
|
|
8236
8958
|
readonly type: "scheduled";
|