@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/experimental/index.ts
CHANGED
|
@@ -301,6 +301,13 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
301
301
|
FixedLengthStream: typeof FixedLengthStream;
|
|
302
302
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
303
303
|
HTMLRewriter: typeof HTMLRewriter;
|
|
304
|
+
Performance: typeof Performance;
|
|
305
|
+
PerformanceEntry: typeof PerformanceEntry;
|
|
306
|
+
PerformanceMark: typeof PerformanceMark;
|
|
307
|
+
PerformanceMeasure: typeof PerformanceMeasure;
|
|
308
|
+
PerformanceResourceTiming: typeof PerformanceResourceTiming;
|
|
309
|
+
PerformanceObserver: typeof PerformanceObserver;
|
|
310
|
+
PerformanceObserverEntryList: typeof PerformanceObserverEntryList;
|
|
304
311
|
}
|
|
305
312
|
export declare function addEventListener<
|
|
306
313
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -483,18 +490,6 @@ export declare abstract class Navigator {
|
|
|
483
490
|
readonly languages: string[];
|
|
484
491
|
readonly storage: StorageManager;
|
|
485
492
|
}
|
|
486
|
-
/**
|
|
487
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
488
|
-
* as well as timing of subrequests and other operations.
|
|
489
|
-
*
|
|
490
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
491
|
-
*/
|
|
492
|
-
export interface Performance {
|
|
493
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
494
|
-
readonly timeOrigin: number;
|
|
495
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
496
|
-
now(): number;
|
|
497
|
-
}
|
|
498
493
|
export interface AlarmInvocationInfo {
|
|
499
494
|
readonly isRetry: boolean;
|
|
500
495
|
readonly retryCount: number;
|
|
@@ -3439,6 +3434,174 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3439
3434
|
tails?: Fetcher[];
|
|
3440
3435
|
streamingTails?: Fetcher[];
|
|
3441
3436
|
}
|
|
3437
|
+
/**
|
|
3438
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3439
|
+
* as well as timing of subrequests and other operations.
|
|
3440
|
+
*
|
|
3441
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3442
|
+
*/
|
|
3443
|
+
export declare abstract class Performance extends EventTarget {
|
|
3444
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3445
|
+
get timeOrigin(): number;
|
|
3446
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3447
|
+
now(): number;
|
|
3448
|
+
get eventCounts(): EventCounts;
|
|
3449
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
|
|
3450
|
+
clearMarks(name?: string): void;
|
|
3451
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
|
|
3452
|
+
clearMeasures(name?: string): void;
|
|
3453
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
|
|
3454
|
+
clearResourceTimings(): void;
|
|
3455
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
|
|
3456
|
+
getEntries(): PerformanceEntry[];
|
|
3457
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
|
|
3458
|
+
getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
3459
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
|
|
3460
|
+
getEntriesByType(type: string): PerformanceEntry[];
|
|
3461
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
|
|
3462
|
+
mark(name: string, options?: PerformanceMarkOptions): PerformanceMark;
|
|
3463
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
|
|
3464
|
+
measure(
|
|
3465
|
+
measureName: string,
|
|
3466
|
+
measureOptionsOrStartMark: PerformanceMeasureOptions | string,
|
|
3467
|
+
maybeEndMark?: string,
|
|
3468
|
+
): PerformanceMeasure;
|
|
3469
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
|
|
3470
|
+
setResourceTimingBufferSize(size: number): void;
|
|
3471
|
+
eventLoopUtilization(): void;
|
|
3472
|
+
markResourceTiming(): void;
|
|
3473
|
+
timerify(fn: () => void): () => void;
|
|
3474
|
+
}
|
|
3475
|
+
/**
|
|
3476
|
+
* PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
|
|
3477
|
+
*
|
|
3478
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
|
|
3479
|
+
*/
|
|
3480
|
+
export declare class PerformanceMark extends PerformanceEntry {
|
|
3481
|
+
constructor(name: string, maybeOptions?: PerformanceMarkOptions);
|
|
3482
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
|
|
3483
|
+
get detail(): any | undefined;
|
|
3484
|
+
toJSON(): any;
|
|
3485
|
+
}
|
|
3486
|
+
/**
|
|
3487
|
+
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
|
|
3488
|
+
*
|
|
3489
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
|
|
3490
|
+
*/
|
|
3491
|
+
export declare abstract class PerformanceMeasure extends PerformanceEntry {
|
|
3492
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
|
|
3493
|
+
get detail(): any | undefined;
|
|
3494
|
+
toJSON(): any;
|
|
3495
|
+
}
|
|
3496
|
+
export interface PerformanceMarkOptions {
|
|
3497
|
+
detail?: any;
|
|
3498
|
+
startTime?: number;
|
|
3499
|
+
}
|
|
3500
|
+
export interface PerformanceMeasureOptions {
|
|
3501
|
+
detail?: any;
|
|
3502
|
+
start?: number;
|
|
3503
|
+
duration?: number;
|
|
3504
|
+
end?: number;
|
|
3505
|
+
}
|
|
3506
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
|
|
3507
|
+
export declare abstract class PerformanceObserverEntryList {
|
|
3508
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
|
|
3509
|
+
getEntries(): PerformanceEntry[];
|
|
3510
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
|
|
3511
|
+
getEntriesByType(type: string): PerformanceEntry[];
|
|
3512
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
|
|
3513
|
+
getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
3514
|
+
}
|
|
3515
|
+
/**
|
|
3516
|
+
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
|
|
3517
|
+
*
|
|
3518
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
|
|
3519
|
+
*/
|
|
3520
|
+
export declare abstract class PerformanceEntry {
|
|
3521
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
|
|
3522
|
+
get name(): string;
|
|
3523
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
|
|
3524
|
+
get entryType(): string;
|
|
3525
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
|
|
3526
|
+
get startTime(): number;
|
|
3527
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
|
|
3528
|
+
get duration(): number;
|
|
3529
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
|
|
3530
|
+
toJSON(): any;
|
|
3531
|
+
}
|
|
3532
|
+
/**
|
|
3533
|
+
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
|
|
3534
|
+
*
|
|
3535
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
|
|
3536
|
+
*/
|
|
3537
|
+
export declare abstract class PerformanceResourceTiming extends PerformanceEntry {
|
|
3538
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
|
|
3539
|
+
get connectEnd(): number;
|
|
3540
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
|
|
3541
|
+
get connectStart(): number;
|
|
3542
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
|
|
3543
|
+
get decodedBodySize(): number;
|
|
3544
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
|
|
3545
|
+
get domainLookupEnd(): number;
|
|
3546
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
|
|
3547
|
+
get domainLookupStart(): number;
|
|
3548
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
|
|
3549
|
+
get encodedBodySize(): number;
|
|
3550
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
|
|
3551
|
+
get fetchStart(): number;
|
|
3552
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
|
|
3553
|
+
get initiatorType(): string;
|
|
3554
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
|
|
3555
|
+
get nextHopProtocol(): string;
|
|
3556
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
|
|
3557
|
+
get redirectEnd(): number;
|
|
3558
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
|
|
3559
|
+
get redirectStart(): number;
|
|
3560
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
|
|
3561
|
+
get requestStart(): number;
|
|
3562
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
|
|
3563
|
+
get responseEnd(): number;
|
|
3564
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
|
|
3565
|
+
get responseStart(): number;
|
|
3566
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */
|
|
3567
|
+
get responseStatus(): number;
|
|
3568
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
|
|
3569
|
+
get secureConnectionStart(): number | undefined;
|
|
3570
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
|
|
3571
|
+
get transferSize(): number;
|
|
3572
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
|
|
3573
|
+
get workerStart(): number;
|
|
3574
|
+
}
|
|
3575
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
|
|
3576
|
+
export declare class PerformanceObserver {
|
|
3577
|
+
constructor(callback: any);
|
|
3578
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
|
|
3579
|
+
disconnect(): void;
|
|
3580
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
|
|
3581
|
+
observe(options?: PerformanceObserverObserveOptions): void;
|
|
3582
|
+
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
|
|
3583
|
+
takeRecords(): PerformanceEntry[];
|
|
3584
|
+
readonly supportedEntryTypes: string[];
|
|
3585
|
+
}
|
|
3586
|
+
export interface PerformanceObserverObserveOptions {
|
|
3587
|
+
buffered?: boolean;
|
|
3588
|
+
durationThreshold?: number;
|
|
3589
|
+
entryTypes?: string[];
|
|
3590
|
+
type?: string;
|
|
3591
|
+
}
|
|
3592
|
+
export interface EventCounts {
|
|
3593
|
+
get size(): number;
|
|
3594
|
+
get(eventType: string): number | undefined;
|
|
3595
|
+
has(eventType: string): boolean;
|
|
3596
|
+
entries(): IterableIterator<string[]>;
|
|
3597
|
+
keys(): IterableIterator<string>;
|
|
3598
|
+
values(): IterableIterator<number>;
|
|
3599
|
+
forEach(
|
|
3600
|
+
param1: (param0: number, param1: string, param2: EventCounts) => void,
|
|
3601
|
+
param2?: any,
|
|
3602
|
+
): void;
|
|
3603
|
+
[Symbol.iterator](): IterableIterator<string[]>;
|
|
3604
|
+
}
|
|
3442
3605
|
export type AiImageClassificationInput = {
|
|
3443
3606
|
image: number[];
|
|
3444
3607
|
};
|
|
@@ -3493,6 +3656,18 @@ export declare abstract class BaseAiImageTextToText {
|
|
|
3493
3656
|
inputs: AiImageTextToTextInput;
|
|
3494
3657
|
postProcessedOutputs: AiImageTextToTextOutput;
|
|
3495
3658
|
}
|
|
3659
|
+
export type AiMultimodalEmbeddingsInput = {
|
|
3660
|
+
image: string;
|
|
3661
|
+
text: string[];
|
|
3662
|
+
};
|
|
3663
|
+
export type AiIMultimodalEmbeddingsOutput = {
|
|
3664
|
+
data: number[][];
|
|
3665
|
+
shape: number[];
|
|
3666
|
+
};
|
|
3667
|
+
export declare abstract class BaseAiMultimodalEmbeddings {
|
|
3668
|
+
inputs: AiImageTextToTextInput;
|
|
3669
|
+
postProcessedOutputs: AiImageTextToTextOutput;
|
|
3670
|
+
}
|
|
3496
3671
|
export type AiObjectDetectionInput = {
|
|
3497
3672
|
image: number[];
|
|
3498
3673
|
};
|
|
@@ -3631,12 +3806,28 @@ export type AiTextGenerationInput = {
|
|
|
3631
3806
|
| (object & NonNullable<unknown>);
|
|
3632
3807
|
functions?: AiTextGenerationFunctionsInput[];
|
|
3633
3808
|
};
|
|
3809
|
+
export type AiTextGenerationToolLegacyOutput = {
|
|
3810
|
+
name: string;
|
|
3811
|
+
arguments: unknown;
|
|
3812
|
+
};
|
|
3813
|
+
export type AiTextGenerationToolOutput = {
|
|
3814
|
+
id: string;
|
|
3815
|
+
type: "function";
|
|
3816
|
+
function: {
|
|
3817
|
+
name: string;
|
|
3818
|
+
arguments: string;
|
|
3819
|
+
};
|
|
3820
|
+
};
|
|
3821
|
+
export type UsageTags = {
|
|
3822
|
+
prompt_tokens: number;
|
|
3823
|
+
completion_tokens: number;
|
|
3824
|
+
total_tokens: number;
|
|
3825
|
+
};
|
|
3634
3826
|
export type AiTextGenerationOutput = {
|
|
3635
3827
|
response?: string;
|
|
3636
|
-
tool_calls?:
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
}[];
|
|
3828
|
+
tool_calls?: AiTextGenerationToolLegacyOutput[] &
|
|
3829
|
+
AiTextGenerationToolOutput[];
|
|
3830
|
+
usage?: UsageTags;
|
|
3640
3831
|
};
|
|
3641
3832
|
export declare abstract class BaseAiTextGeneration {
|
|
3642
3833
|
inputs: AiTextGenerationInput;
|
|
@@ -4725,6 +4916,7 @@ export type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output =
|
|
|
4725
4916
|
name?: string;
|
|
4726
4917
|
}[];
|
|
4727
4918
|
}
|
|
4919
|
+
| string
|
|
4728
4920
|
| AsyncResponse;
|
|
4729
4921
|
export declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast {
|
|
4730
4922
|
inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input;
|
|
@@ -4801,7 +4993,6 @@ export interface Ai_Cf_Baai_Bge_Reranker_Base_Input {
|
|
|
4801
4993
|
/**
|
|
4802
4994
|
* A query you wish to perform against the provided contexts.
|
|
4803
4995
|
*/
|
|
4804
|
-
query: string;
|
|
4805
4996
|
/**
|
|
4806
4997
|
* Number of returned results starting with the best score.
|
|
4807
4998
|
*/
|
|
@@ -5896,7 +6087,8 @@ export declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It {
|
|
|
5896
6087
|
}
|
|
5897
6088
|
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input =
|
|
5898
6089
|
| Ai_Cf_Meta_Llama_4_Prompt
|
|
5899
|
-
| Ai_Cf_Meta_Llama_4_Messages
|
|
6090
|
+
| Ai_Cf_Meta_Llama_4_Messages
|
|
6091
|
+
| Ai_Cf_Meta_Llama_4_Async_Batch;
|
|
5900
6092
|
export interface Ai_Cf_Meta_Llama_4_Prompt {
|
|
5901
6093
|
/**
|
|
5902
6094
|
* The input text prompt for the model to generate a response.
|
|
@@ -6130,130 +6322,816 @@ export interface Ai_Cf_Meta_Llama_4_Messages {
|
|
|
6130
6322
|
*/
|
|
6131
6323
|
presence_penalty?: number;
|
|
6132
6324
|
}
|
|
6133
|
-
export
|
|
6325
|
+
export interface Ai_Cf_Meta_Llama_4_Async_Batch {
|
|
6326
|
+
requests: (
|
|
6327
|
+
| Ai_Cf_Meta_Llama_4_Prompt_Inner
|
|
6328
|
+
| Ai_Cf_Meta_Llama_4_Messages_Inner
|
|
6329
|
+
)[];
|
|
6330
|
+
}
|
|
6331
|
+
export interface Ai_Cf_Meta_Llama_4_Prompt_Inner {
|
|
6134
6332
|
/**
|
|
6135
|
-
* The
|
|
6333
|
+
* The input text prompt for the model to generate a response.
|
|
6136
6334
|
*/
|
|
6137
|
-
|
|
6335
|
+
prompt: string;
|
|
6138
6336
|
/**
|
|
6139
|
-
*
|
|
6337
|
+
* JSON schema that should be fulfilled for the response.
|
|
6140
6338
|
*/
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
* Total number of tokens in input
|
|
6144
|
-
*/
|
|
6145
|
-
prompt_tokens?: number;
|
|
6146
|
-
/**
|
|
6147
|
-
* Total number of tokens in output
|
|
6148
|
-
*/
|
|
6149
|
-
completion_tokens?: number;
|
|
6150
|
-
/**
|
|
6151
|
-
* Total number of input and output tokens
|
|
6152
|
-
*/
|
|
6153
|
-
total_tokens?: number;
|
|
6154
|
-
};
|
|
6339
|
+
guided_json?: object;
|
|
6340
|
+
response_format?: JSONMode;
|
|
6155
6341
|
/**
|
|
6156
|
-
*
|
|
6342
|
+
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
6157
6343
|
*/
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6344
|
+
raw?: boolean;
|
|
6345
|
+
/**
|
|
6346
|
+
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
6347
|
+
*/
|
|
6348
|
+
stream?: boolean;
|
|
6349
|
+
/**
|
|
6350
|
+
* The maximum number of tokens to generate in the response.
|
|
6351
|
+
*/
|
|
6352
|
+
max_tokens?: number;
|
|
6353
|
+
/**
|
|
6354
|
+
* Controls the randomness of the output; higher values produce more random results.
|
|
6355
|
+
*/
|
|
6356
|
+
temperature?: number;
|
|
6357
|
+
/**
|
|
6358
|
+
* 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.
|
|
6359
|
+
*/
|
|
6360
|
+
top_p?: number;
|
|
6361
|
+
/**
|
|
6362
|
+
* 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.
|
|
6363
|
+
*/
|
|
6364
|
+
top_k?: number;
|
|
6365
|
+
/**
|
|
6366
|
+
* Random seed for reproducibility of the generation.
|
|
6367
|
+
*/
|
|
6368
|
+
seed?: number;
|
|
6369
|
+
/**
|
|
6370
|
+
* Penalty for repeated tokens; higher values discourage repetition.
|
|
6371
|
+
*/
|
|
6372
|
+
repetition_penalty?: number;
|
|
6373
|
+
/**
|
|
6374
|
+
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
6375
|
+
*/
|
|
6376
|
+
frequency_penalty?: number;
|
|
6377
|
+
/**
|
|
6378
|
+
* Increases the likelihood of the model introducing new topics.
|
|
6379
|
+
*/
|
|
6380
|
+
presence_penalty?: number;
|
|
6381
|
+
}
|
|
6382
|
+
export interface Ai_Cf_Meta_Llama_4_Messages_Inner {
|
|
6383
|
+
/**
|
|
6384
|
+
* An array of message objects representing the conversation history.
|
|
6385
|
+
*/
|
|
6386
|
+
messages: {
|
|
6163
6387
|
/**
|
|
6164
|
-
*
|
|
6388
|
+
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
6165
6389
|
*/
|
|
6166
|
-
|
|
6390
|
+
role?: string;
|
|
6167
6391
|
/**
|
|
6168
|
-
*
|
|
6392
|
+
* The tool call id. If you don't know what to put here you can fall back to 000000001
|
|
6169
6393
|
*/
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6394
|
+
tool_call_id?: string;
|
|
6395
|
+
content?:
|
|
6396
|
+
| string
|
|
6397
|
+
| {
|
|
6398
|
+
/**
|
|
6399
|
+
* Type of the content provided
|
|
6400
|
+
*/
|
|
6401
|
+
type?: string;
|
|
6402
|
+
text?: string;
|
|
6403
|
+
image_url?: {
|
|
6404
|
+
/**
|
|
6405
|
+
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
6406
|
+
*/
|
|
6407
|
+
url?: string;
|
|
6408
|
+
};
|
|
6409
|
+
}[]
|
|
6410
|
+
| {
|
|
6411
|
+
/**
|
|
6412
|
+
* Type of the content provided
|
|
6413
|
+
*/
|
|
6414
|
+
type?: string;
|
|
6415
|
+
text?: string;
|
|
6416
|
+
image_url?: {
|
|
6417
|
+
/**
|
|
6418
|
+
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
6419
|
+
*/
|
|
6420
|
+
url?: string;
|
|
6421
|
+
};
|
|
6422
|
+
};
|
|
6180
6423
|
}[];
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6424
|
+
functions?: {
|
|
6425
|
+
name: string;
|
|
6426
|
+
code: string;
|
|
6427
|
+
}[];
|
|
6428
|
+
/**
|
|
6429
|
+
* A list of tools available for the assistant to use.
|
|
6430
|
+
*/
|
|
6431
|
+
tools?: (
|
|
6432
|
+
| {
|
|
6433
|
+
/**
|
|
6434
|
+
* The name of the tool. More descriptive the better.
|
|
6435
|
+
*/
|
|
6436
|
+
name: string;
|
|
6437
|
+
/**
|
|
6438
|
+
* A brief description of what the tool does.
|
|
6439
|
+
*/
|
|
6440
|
+
description: string;
|
|
6441
|
+
/**
|
|
6442
|
+
* Schema defining the parameters accepted by the tool.
|
|
6443
|
+
*/
|
|
6444
|
+
parameters: {
|
|
6445
|
+
/**
|
|
6446
|
+
* The type of the parameters object (usually 'object').
|
|
6447
|
+
*/
|
|
6448
|
+
type: string;
|
|
6449
|
+
/**
|
|
6450
|
+
* List of required parameter names.
|
|
6451
|
+
*/
|
|
6452
|
+
required?: string[];
|
|
6453
|
+
/**
|
|
6454
|
+
* Definitions of each parameter.
|
|
6455
|
+
*/
|
|
6456
|
+
properties: {
|
|
6457
|
+
[k: string]: {
|
|
6458
|
+
/**
|
|
6459
|
+
* The data type of the parameter.
|
|
6460
|
+
*/
|
|
6461
|
+
type: string;
|
|
6462
|
+
/**
|
|
6463
|
+
* A description of the expected parameter.
|
|
6464
|
+
*/
|
|
6465
|
+
description: string;
|
|
6466
|
+
};
|
|
6467
|
+
};
|
|
6468
|
+
};
|
|
6469
|
+
}
|
|
6470
|
+
| {
|
|
6471
|
+
/**
|
|
6472
|
+
* Specifies the type of tool (e.g., 'function').
|
|
6473
|
+
*/
|
|
6474
|
+
type: string;
|
|
6475
|
+
/**
|
|
6476
|
+
* Details of the function tool.
|
|
6477
|
+
*/
|
|
6478
|
+
function: {
|
|
6479
|
+
/**
|
|
6480
|
+
* The name of the function.
|
|
6481
|
+
*/
|
|
6482
|
+
name: string;
|
|
6483
|
+
/**
|
|
6484
|
+
* A brief description of what the function does.
|
|
6485
|
+
*/
|
|
6486
|
+
description: string;
|
|
6487
|
+
/**
|
|
6488
|
+
* Schema defining the parameters accepted by the function.
|
|
6489
|
+
*/
|
|
6490
|
+
parameters: {
|
|
6491
|
+
/**
|
|
6492
|
+
* The type of the parameters object (usually 'object').
|
|
6493
|
+
*/
|
|
6494
|
+
type: string;
|
|
6495
|
+
/**
|
|
6496
|
+
* List of required parameter names.
|
|
6497
|
+
*/
|
|
6498
|
+
required?: string[];
|
|
6499
|
+
/**
|
|
6500
|
+
* Definitions of each parameter.
|
|
6501
|
+
*/
|
|
6502
|
+
properties: {
|
|
6503
|
+
[k: string]: {
|
|
6504
|
+
/**
|
|
6505
|
+
* The data type of the parameter.
|
|
6506
|
+
*/
|
|
6507
|
+
type: string;
|
|
6508
|
+
/**
|
|
6509
|
+
* A description of the expected parameter.
|
|
6510
|
+
*/
|
|
6511
|
+
description: string;
|
|
6512
|
+
};
|
|
6513
|
+
};
|
|
6514
|
+
};
|
|
6515
|
+
};
|
|
6516
|
+
}
|
|
6517
|
+
)[];
|
|
6518
|
+
response_format?: JSONMode;
|
|
6519
|
+
/**
|
|
6520
|
+
* JSON schema that should be fufilled for the response.
|
|
6521
|
+
*/
|
|
6522
|
+
guided_json?: object;
|
|
6523
|
+
/**
|
|
6524
|
+
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
6525
|
+
*/
|
|
6526
|
+
raw?: boolean;
|
|
6527
|
+
/**
|
|
6528
|
+
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
6529
|
+
*/
|
|
6530
|
+
stream?: boolean;
|
|
6531
|
+
/**
|
|
6532
|
+
* The maximum number of tokens to generate in the response.
|
|
6533
|
+
*/
|
|
6534
|
+
max_tokens?: number;
|
|
6535
|
+
/**
|
|
6536
|
+
* Controls the randomness of the output; higher values produce more random results.
|
|
6537
|
+
*/
|
|
6538
|
+
temperature?: number;
|
|
6539
|
+
/**
|
|
6540
|
+
* 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.
|
|
6541
|
+
*/
|
|
6542
|
+
top_p?: number;
|
|
6543
|
+
/**
|
|
6544
|
+
* 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.
|
|
6545
|
+
*/
|
|
6546
|
+
top_k?: number;
|
|
6547
|
+
/**
|
|
6548
|
+
* Random seed for reproducibility of the generation.
|
|
6549
|
+
*/
|
|
6550
|
+
seed?: number;
|
|
6551
|
+
/**
|
|
6552
|
+
* Penalty for repeated tokens; higher values discourage repetition.
|
|
6553
|
+
*/
|
|
6554
|
+
repetition_penalty?: number;
|
|
6555
|
+
/**
|
|
6556
|
+
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
6557
|
+
*/
|
|
6558
|
+
frequency_penalty?: number;
|
|
6559
|
+
/**
|
|
6560
|
+
* Increases the likelihood of the model introducing new topics.
|
|
6561
|
+
*/
|
|
6562
|
+
presence_penalty?: number;
|
|
6563
|
+
}
|
|
6564
|
+
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = {
|
|
6565
|
+
/**
|
|
6566
|
+
* The generated text response from the model
|
|
6567
|
+
*/
|
|
6568
|
+
response: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Usage statistics for the inference request
|
|
6571
|
+
*/
|
|
6572
|
+
usage?: {
|
|
6573
|
+
/**
|
|
6574
|
+
* Total number of tokens in input
|
|
6575
|
+
*/
|
|
6576
|
+
prompt_tokens?: number;
|
|
6577
|
+
/**
|
|
6578
|
+
* Total number of tokens in output
|
|
6579
|
+
*/
|
|
6580
|
+
completion_tokens?: number;
|
|
6581
|
+
/**
|
|
6582
|
+
* Total number of input and output tokens
|
|
6583
|
+
*/
|
|
6584
|
+
total_tokens?: number;
|
|
6585
|
+
};
|
|
6586
|
+
/**
|
|
6587
|
+
* An array of tool calls requests made during the response generation
|
|
6588
|
+
*/
|
|
6589
|
+
tool_calls?: {
|
|
6590
|
+
/**
|
|
6591
|
+
* The tool call id.
|
|
6592
|
+
*/
|
|
6593
|
+
id?: string;
|
|
6594
|
+
/**
|
|
6595
|
+
* Specifies the type of tool (e.g., 'function').
|
|
6596
|
+
*/
|
|
6597
|
+
type?: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* Details of the function tool.
|
|
6600
|
+
*/
|
|
6601
|
+
function?: {
|
|
6602
|
+
/**
|
|
6603
|
+
* The name of the tool to be called
|
|
6604
|
+
*/
|
|
6605
|
+
name?: string;
|
|
6606
|
+
/**
|
|
6607
|
+
* The arguments passed to be passed to the tool call request
|
|
6608
|
+
*/
|
|
6609
|
+
arguments?: object;
|
|
6610
|
+
};
|
|
6611
|
+
}[];
|
|
6612
|
+
};
|
|
6613
|
+
export declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct {
|
|
6614
|
+
inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input;
|
|
6615
|
+
postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output;
|
|
6616
|
+
}
|
|
6617
|
+
export interface Ai_Cf_Deepgram_Nova_3_Input {
|
|
6618
|
+
audio: {
|
|
6619
|
+
body: object;
|
|
6620
|
+
contentType: string;
|
|
6621
|
+
};
|
|
6622
|
+
/**
|
|
6623
|
+
* 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.
|
|
6624
|
+
*/
|
|
6625
|
+
custom_topic_mode?: "extended" | "strict";
|
|
6626
|
+
/**
|
|
6627
|
+
* Custom topics you want the model to detect within your input audio or text if present Submit up to 100
|
|
6628
|
+
*/
|
|
6629
|
+
custom_topic?: string;
|
|
6630
|
+
/**
|
|
6631
|
+
* 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
|
|
6632
|
+
*/
|
|
6633
|
+
custom_intent_mode?: "extended" | "strict";
|
|
6634
|
+
/**
|
|
6635
|
+
* Custom intents you want the model to detect within your input audio if present
|
|
6636
|
+
*/
|
|
6637
|
+
custom_intent?: string;
|
|
6638
|
+
/**
|
|
6639
|
+
* Identifies and extracts key entities from content in submitted audio
|
|
6640
|
+
*/
|
|
6641
|
+
detect_entities?: boolean;
|
|
6642
|
+
/**
|
|
6643
|
+
* Identifies the dominant language spoken in submitted audio
|
|
6644
|
+
*/
|
|
6645
|
+
detect_language?: boolean;
|
|
6646
|
+
/**
|
|
6647
|
+
* Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0
|
|
6648
|
+
*/
|
|
6649
|
+
diarize?: boolean;
|
|
6650
|
+
/**
|
|
6651
|
+
* Identify and extract key entities from content in submitted audio
|
|
6652
|
+
*/
|
|
6653
|
+
dictation?: boolean;
|
|
6654
|
+
/**
|
|
6655
|
+
* Specify the expected encoding of your submitted audio
|
|
6656
|
+
*/
|
|
6657
|
+
encoding?:
|
|
6658
|
+
| "linear16"
|
|
6659
|
+
| "flac"
|
|
6660
|
+
| "mulaw"
|
|
6661
|
+
| "amr-nb"
|
|
6662
|
+
| "amr-wb"
|
|
6663
|
+
| "opus"
|
|
6664
|
+
| "speex"
|
|
6665
|
+
| "g729";
|
|
6666
|
+
/**
|
|
6667
|
+
* Arbitrary key-value pairs that are attached to the API response for usage in downstream processing
|
|
6668
|
+
*/
|
|
6669
|
+
extra?: string;
|
|
6670
|
+
/**
|
|
6671
|
+
* Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um'
|
|
6672
|
+
*/
|
|
6673
|
+
filler_words?: boolean;
|
|
6674
|
+
/**
|
|
6675
|
+
* Key term prompting can boost or suppress specialized terminology and brands.
|
|
6676
|
+
*/
|
|
6677
|
+
keyterm?: string;
|
|
6678
|
+
/**
|
|
6679
|
+
* Keywords can boost or suppress specialized terminology and brands.
|
|
6680
|
+
*/
|
|
6681
|
+
keywords?: string;
|
|
6682
|
+
/**
|
|
6683
|
+
* 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.
|
|
6684
|
+
*/
|
|
6685
|
+
language?: string;
|
|
6686
|
+
/**
|
|
6687
|
+
* Spoken measurements will be converted to their corresponding abbreviations.
|
|
6688
|
+
*/
|
|
6689
|
+
measurements?: boolean;
|
|
6690
|
+
/**
|
|
6691
|
+
* 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.
|
|
6692
|
+
*/
|
|
6693
|
+
mip_opt_out?: boolean;
|
|
6694
|
+
/**
|
|
6695
|
+
* Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio
|
|
6696
|
+
*/
|
|
6697
|
+
mode?: "general" | "medical" | "finance";
|
|
6698
|
+
/**
|
|
6699
|
+
* Transcribe each audio channel independently.
|
|
6700
|
+
*/
|
|
6701
|
+
multichannel?: boolean;
|
|
6702
|
+
/**
|
|
6703
|
+
* Numerals converts numbers from written format to numerical format.
|
|
6704
|
+
*/
|
|
6705
|
+
numerals?: boolean;
|
|
6706
|
+
/**
|
|
6707
|
+
* Splits audio into paragraphs to improve transcript readability.
|
|
6708
|
+
*/
|
|
6709
|
+
paragraphs?: boolean;
|
|
6710
|
+
/**
|
|
6711
|
+
* Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely.
|
|
6712
|
+
*/
|
|
6713
|
+
profanity_filter?: boolean;
|
|
6714
|
+
/**
|
|
6715
|
+
* Add punctuation and capitalization to the transcript.
|
|
6716
|
+
*/
|
|
6717
|
+
punctuate?: boolean;
|
|
6718
|
+
/**
|
|
6719
|
+
* Redaction removes sensitive information from your transcripts.
|
|
6720
|
+
*/
|
|
6721
|
+
redact?: string;
|
|
6722
|
+
/**
|
|
6723
|
+
* Search for terms or phrases in submitted audio and replaces them.
|
|
6724
|
+
*/
|
|
6725
|
+
replace?: string;
|
|
6726
|
+
/**
|
|
6727
|
+
* Search for terms or phrases in submitted audio.
|
|
6728
|
+
*/
|
|
6729
|
+
search?: string;
|
|
6730
|
+
/**
|
|
6731
|
+
* Recognizes the sentiment throughout a transcript or text.
|
|
6732
|
+
*/
|
|
6733
|
+
sentiment?: boolean;
|
|
6734
|
+
/**
|
|
6735
|
+
* Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability.
|
|
6736
|
+
*/
|
|
6737
|
+
smart_format?: boolean;
|
|
6738
|
+
/**
|
|
6739
|
+
* Detect topics throughout a transcript or text.
|
|
6740
|
+
*/
|
|
6741
|
+
topics?: boolean;
|
|
6742
|
+
/**
|
|
6743
|
+
* Segments speech into meaningful semantic units.
|
|
6744
|
+
*/
|
|
6745
|
+
utterances?: boolean;
|
|
6746
|
+
/**
|
|
6747
|
+
* Seconds to wait before detecting a pause between words in submitted audio.
|
|
6748
|
+
*/
|
|
6749
|
+
utt_split?: number;
|
|
6750
|
+
/**
|
|
6751
|
+
* The number of channels in the submitted audio
|
|
6752
|
+
*/
|
|
6753
|
+
channels?: number;
|
|
6754
|
+
/**
|
|
6755
|
+
* 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.
|
|
6756
|
+
*/
|
|
6757
|
+
interim_results?: boolean;
|
|
6758
|
+
/**
|
|
6759
|
+
* 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
|
|
6760
|
+
*/
|
|
6761
|
+
endpointing?: string;
|
|
6762
|
+
/**
|
|
6763
|
+
* Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.
|
|
6764
|
+
*/
|
|
6765
|
+
vad_events?: boolean;
|
|
6766
|
+
/**
|
|
6767
|
+
* 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.
|
|
6768
|
+
*/
|
|
6769
|
+
utterance_end_ms?: boolean;
|
|
6770
|
+
}
|
|
6771
|
+
export interface Ai_Cf_Deepgram_Nova_3_Output {
|
|
6772
|
+
results?: {
|
|
6773
|
+
channels?: {
|
|
6774
|
+
alternatives?: {
|
|
6775
|
+
confidence?: number;
|
|
6776
|
+
transcript?: string;
|
|
6777
|
+
words?: {
|
|
6778
|
+
confidence?: number;
|
|
6779
|
+
end?: number;
|
|
6780
|
+
start?: number;
|
|
6781
|
+
word?: string;
|
|
6782
|
+
}[];
|
|
6783
|
+
}[];
|
|
6784
|
+
}[];
|
|
6785
|
+
summary?: {
|
|
6786
|
+
result?: string;
|
|
6787
|
+
short?: string;
|
|
6788
|
+
};
|
|
6789
|
+
sentiments?: {
|
|
6790
|
+
segments?: {
|
|
6791
|
+
text?: string;
|
|
6792
|
+
start_word?: number;
|
|
6793
|
+
end_word?: number;
|
|
6794
|
+
sentiment?: string;
|
|
6795
|
+
sentiment_score?: number;
|
|
6796
|
+
}[];
|
|
6797
|
+
average?: {
|
|
6798
|
+
sentiment?: string;
|
|
6799
|
+
sentiment_score?: number;
|
|
6800
|
+
};
|
|
6801
|
+
};
|
|
6802
|
+
};
|
|
6803
|
+
}
|
|
6804
|
+
export declare abstract class Base_Ai_Cf_Deepgram_Nova_3 {
|
|
6805
|
+
inputs: Ai_Cf_Deepgram_Nova_3_Input;
|
|
6806
|
+
postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output;
|
|
6807
|
+
}
|
|
6808
|
+
export type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input =
|
|
6809
|
+
| {
|
|
6810
|
+
/**
|
|
6811
|
+
* readable stream with audio data and content-type specified for that data
|
|
6812
|
+
*/
|
|
6813
|
+
audio: {
|
|
6814
|
+
body: object;
|
|
6815
|
+
contentType: string;
|
|
6816
|
+
};
|
|
6817
|
+
/**
|
|
6818
|
+
* type of data PCM data that's sent to the inference server as raw array
|
|
6819
|
+
*/
|
|
6820
|
+
dtype?: "uint8" | "float32" | "float64";
|
|
6821
|
+
}
|
|
6822
|
+
| {
|
|
6823
|
+
/**
|
|
6824
|
+
* base64 encoded audio data
|
|
6825
|
+
*/
|
|
6826
|
+
audio: string;
|
|
6827
|
+
/**
|
|
6828
|
+
* type of data PCM data that's sent to the inference server as raw array
|
|
6829
|
+
*/
|
|
6830
|
+
dtype?: "uint8" | "float32" | "float64";
|
|
6831
|
+
};
|
|
6832
|
+
export interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output {
|
|
6833
|
+
/**
|
|
6834
|
+
* if true, end-of-turn was detected
|
|
6835
|
+
*/
|
|
6836
|
+
is_complete?: boolean;
|
|
6837
|
+
/**
|
|
6838
|
+
* probability of the end-of-turn detection
|
|
6839
|
+
*/
|
|
6840
|
+
probability?: number;
|
|
6841
|
+
}
|
|
6842
|
+
export declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 {
|
|
6843
|
+
inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input;
|
|
6844
|
+
postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output;
|
|
6845
|
+
}
|
|
6846
|
+
export type Ai_Cf_Openai_Gpt_Oss_120B_Input =
|
|
6847
|
+
| GPT_OSS_120B_Responses
|
|
6848
|
+
| GPT_OSS_120B_Responses_Async;
|
|
6849
|
+
export interface GPT_OSS_120B_Responses {
|
|
6850
|
+
/**
|
|
6851
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6852
|
+
*/
|
|
6853
|
+
input: string | unknown[];
|
|
6854
|
+
reasoning?: {
|
|
6855
|
+
/**
|
|
6856
|
+
* 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.
|
|
6857
|
+
*/
|
|
6858
|
+
effort?: "low" | "medium" | "high";
|
|
6859
|
+
/**
|
|
6860
|
+
* 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.
|
|
6861
|
+
*/
|
|
6862
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6863
|
+
};
|
|
6864
|
+
}
|
|
6865
|
+
export interface GPT_OSS_120B_Responses_Async {
|
|
6866
|
+
requests: {
|
|
6867
|
+
/**
|
|
6868
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6869
|
+
*/
|
|
6870
|
+
input: string | unknown[];
|
|
6871
|
+
reasoning?: {
|
|
6872
|
+
/**
|
|
6873
|
+
* 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.
|
|
6874
|
+
*/
|
|
6875
|
+
effort?: "low" | "medium" | "high";
|
|
6876
|
+
/**
|
|
6877
|
+
* 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.
|
|
6878
|
+
*/
|
|
6879
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6880
|
+
};
|
|
6881
|
+
}[];
|
|
6882
|
+
}
|
|
6883
|
+
export type Ai_Cf_Openai_Gpt_Oss_120B_Output =
|
|
6884
|
+
| {}
|
|
6885
|
+
| (string & NonNullable<unknown>);
|
|
6886
|
+
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B {
|
|
6887
|
+
inputs: Ai_Cf_Openai_Gpt_Oss_120B_Input;
|
|
6888
|
+
postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_120B_Output;
|
|
6889
|
+
}
|
|
6890
|
+
export type Ai_Cf_Openai_Gpt_Oss_20B_Input =
|
|
6891
|
+
| GPT_OSS_20B_Responses
|
|
6892
|
+
| GPT_OSS_20B_Responses_Async;
|
|
6893
|
+
export interface GPT_OSS_20B_Responses {
|
|
6894
|
+
/**
|
|
6895
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6896
|
+
*/
|
|
6897
|
+
input: string | unknown[];
|
|
6898
|
+
reasoning?: {
|
|
6899
|
+
/**
|
|
6900
|
+
* 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.
|
|
6901
|
+
*/
|
|
6902
|
+
effort?: "low" | "medium" | "high";
|
|
6903
|
+
/**
|
|
6904
|
+
* 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.
|
|
6905
|
+
*/
|
|
6906
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6907
|
+
};
|
|
6908
|
+
}
|
|
6909
|
+
export interface GPT_OSS_20B_Responses_Async {
|
|
6910
|
+
requests: {
|
|
6911
|
+
/**
|
|
6912
|
+
* Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types
|
|
6913
|
+
*/
|
|
6914
|
+
input: string | unknown[];
|
|
6915
|
+
reasoning?: {
|
|
6916
|
+
/**
|
|
6917
|
+
* 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.
|
|
6918
|
+
*/
|
|
6919
|
+
effort?: "low" | "medium" | "high";
|
|
6920
|
+
/**
|
|
6921
|
+
* 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.
|
|
6922
|
+
*/
|
|
6923
|
+
summary?: "auto" | "concise" | "detailed";
|
|
6924
|
+
};
|
|
6925
|
+
}[];
|
|
6926
|
+
}
|
|
6927
|
+
export type Ai_Cf_Openai_Gpt_Oss_20B_Output =
|
|
6928
|
+
| {}
|
|
6929
|
+
| (string & NonNullable<unknown>);
|
|
6930
|
+
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B {
|
|
6931
|
+
inputs: Ai_Cf_Openai_Gpt_Oss_20B_Input;
|
|
6932
|
+
postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_20B_Output;
|
|
6933
|
+
}
|
|
6934
|
+
export interface Ai_Cf_Leonardo_Phoenix_1_0_Input {
|
|
6935
|
+
/**
|
|
6936
|
+
* A text description of the image you want to generate.
|
|
6937
|
+
*/
|
|
6938
|
+
prompt: string;
|
|
6939
|
+
/**
|
|
6940
|
+
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
6941
|
+
*/
|
|
6942
|
+
guidance?: number;
|
|
6943
|
+
/**
|
|
6944
|
+
* Random seed for reproducibility of the image generation
|
|
6945
|
+
*/
|
|
6946
|
+
seed?: number;
|
|
6947
|
+
/**
|
|
6948
|
+
* The height of the generated image in pixels
|
|
6949
|
+
*/
|
|
6950
|
+
height?: number;
|
|
6951
|
+
/**
|
|
6952
|
+
* The width of the generated image in pixels
|
|
6953
|
+
*/
|
|
6954
|
+
width?: number;
|
|
6955
|
+
/**
|
|
6956
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6957
|
+
*/
|
|
6958
|
+
num_steps?: number;
|
|
6959
|
+
/**
|
|
6960
|
+
* Specify what to exclude from the generated images
|
|
6961
|
+
*/
|
|
6962
|
+
negative_prompt?: string;
|
|
6963
|
+
}
|
|
6964
|
+
/**
|
|
6965
|
+
* The generated image in JPEG format
|
|
6966
|
+
*/
|
|
6967
|
+
export type Ai_Cf_Leonardo_Phoenix_1_0_Output = string;
|
|
6968
|
+
export declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 {
|
|
6969
|
+
inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input;
|
|
6970
|
+
postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output;
|
|
6971
|
+
}
|
|
6972
|
+
export interface Ai_Cf_Leonardo_Lucid_Origin_Input {
|
|
6973
|
+
/**
|
|
6974
|
+
* A text description of the image you want to generate.
|
|
6975
|
+
*/
|
|
6976
|
+
prompt: string;
|
|
6977
|
+
/**
|
|
6978
|
+
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
6979
|
+
*/
|
|
6980
|
+
guidance?: number;
|
|
6981
|
+
/**
|
|
6982
|
+
* Random seed for reproducibility of the image generation
|
|
6983
|
+
*/
|
|
6984
|
+
seed?: number;
|
|
6985
|
+
/**
|
|
6986
|
+
* The height of the generated image in pixels
|
|
6987
|
+
*/
|
|
6988
|
+
height?: number;
|
|
6989
|
+
/**
|
|
6990
|
+
* The width of the generated image in pixels
|
|
6991
|
+
*/
|
|
6992
|
+
width?: number;
|
|
6993
|
+
/**
|
|
6994
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6995
|
+
*/
|
|
6996
|
+
num_steps?: number;
|
|
6997
|
+
/**
|
|
6998
|
+
* The number of diffusion steps; higher values can improve quality but take longer
|
|
6999
|
+
*/
|
|
7000
|
+
steps?: number;
|
|
7001
|
+
}
|
|
7002
|
+
export interface Ai_Cf_Leonardo_Lucid_Origin_Output {
|
|
7003
|
+
/**
|
|
7004
|
+
* The generated image in Base64 format.
|
|
7005
|
+
*/
|
|
7006
|
+
image?: string;
|
|
7007
|
+
}
|
|
7008
|
+
export declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin {
|
|
7009
|
+
inputs: Ai_Cf_Leonardo_Lucid_Origin_Input;
|
|
7010
|
+
postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output;
|
|
7011
|
+
}
|
|
7012
|
+
export interface Ai_Cf_Deepgram_Aura_1_Input {
|
|
7013
|
+
/**
|
|
7014
|
+
* Speaker used to produce the audio.
|
|
7015
|
+
*/
|
|
7016
|
+
speaker?:
|
|
7017
|
+
| "angus"
|
|
7018
|
+
| "asteria"
|
|
7019
|
+
| "arcas"
|
|
7020
|
+
| "orion"
|
|
7021
|
+
| "orpheus"
|
|
7022
|
+
| "athena"
|
|
7023
|
+
| "luna"
|
|
7024
|
+
| "zeus"
|
|
7025
|
+
| "perseus"
|
|
7026
|
+
| "helios"
|
|
7027
|
+
| "hera"
|
|
7028
|
+
| "stella";
|
|
7029
|
+
/**
|
|
7030
|
+
* Encoding of the output audio.
|
|
7031
|
+
*/
|
|
7032
|
+
encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac";
|
|
7033
|
+
/**
|
|
7034
|
+
* Container specifies the file format wrapper for the output audio. The available options depend on the encoding type..
|
|
7035
|
+
*/
|
|
7036
|
+
container?: "none" | "wav" | "ogg";
|
|
7037
|
+
/**
|
|
7038
|
+
* The text content to be converted to speech
|
|
7039
|
+
*/
|
|
7040
|
+
text: string;
|
|
7041
|
+
/**
|
|
7042
|
+
* 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
|
|
7043
|
+
*/
|
|
7044
|
+
sample_rate?: number;
|
|
7045
|
+
/**
|
|
7046
|
+
* The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
|
|
7047
|
+
*/
|
|
7048
|
+
bit_rate?: number;
|
|
7049
|
+
}
|
|
7050
|
+
/**
|
|
7051
|
+
* The generated audio in MP3 format
|
|
7052
|
+
*/
|
|
7053
|
+
export type Ai_Cf_Deepgram_Aura_1_Output = string;
|
|
7054
|
+
export declare abstract class Base_Ai_Cf_Deepgram_Aura_1 {
|
|
7055
|
+
inputs: Ai_Cf_Deepgram_Aura_1_Input;
|
|
7056
|
+
postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output;
|
|
7057
|
+
}
|
|
7058
|
+
export interface AiModels {
|
|
7059
|
+
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
7060
|
+
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
7061
|
+
"@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage;
|
|
7062
|
+
"@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage;
|
|
7063
|
+
"@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage;
|
|
7064
|
+
"@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage;
|
|
7065
|
+
"@cf/myshell-ai/melotts": BaseAiTextToSpeech;
|
|
7066
|
+
"@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings;
|
|
7067
|
+
"@cf/microsoft/resnet-50": BaseAiImageClassification;
|
|
7068
|
+
"@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration;
|
|
7069
|
+
"@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration;
|
|
7070
|
+
"@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration;
|
|
7071
|
+
"@hf/thebloke/llama-2-13b-chat-awq": BaseAiTextGeneration;
|
|
7072
|
+
"@hf/thebloke/mistral-7b-instruct-v0.1-awq": BaseAiTextGeneration;
|
|
7073
|
+
"@hf/thebloke/zephyr-7b-beta-awq": BaseAiTextGeneration;
|
|
7074
|
+
"@hf/thebloke/openhermes-2.5-mistral-7b-awq": BaseAiTextGeneration;
|
|
7075
|
+
"@hf/thebloke/neural-chat-7b-v3-1-awq": BaseAiTextGeneration;
|
|
7076
|
+
"@hf/thebloke/llamaguard-7b-awq": BaseAiTextGeneration;
|
|
7077
|
+
"@hf/thebloke/deepseek-coder-6.7b-base-awq": BaseAiTextGeneration;
|
|
7078
|
+
"@hf/thebloke/deepseek-coder-6.7b-instruct-awq": BaseAiTextGeneration;
|
|
7079
|
+
"@cf/deepseek-ai/deepseek-math-7b-instruct": BaseAiTextGeneration;
|
|
7080
|
+
"@cf/defog/sqlcoder-7b-2": BaseAiTextGeneration;
|
|
7081
|
+
"@cf/openchat/openchat-3.5-0106": BaseAiTextGeneration;
|
|
7082
|
+
"@cf/tiiuae/falcon-7b-instruct": BaseAiTextGeneration;
|
|
7083
|
+
"@cf/thebloke/discolm-german-7b-v1-awq": BaseAiTextGeneration;
|
|
7084
|
+
"@cf/qwen/qwen1.5-0.5b-chat": BaseAiTextGeneration;
|
|
7085
|
+
"@cf/qwen/qwen1.5-7b-chat-awq": BaseAiTextGeneration;
|
|
7086
|
+
"@cf/qwen/qwen1.5-14b-chat-awq": BaseAiTextGeneration;
|
|
7087
|
+
"@cf/tinyllama/tinyllama-1.1b-chat-v1.0": BaseAiTextGeneration;
|
|
7088
|
+
"@cf/microsoft/phi-2": BaseAiTextGeneration;
|
|
7089
|
+
"@cf/qwen/qwen1.5-1.8b-chat": BaseAiTextGeneration;
|
|
7090
|
+
"@cf/mistral/mistral-7b-instruct-v0.2-lora": BaseAiTextGeneration;
|
|
7091
|
+
"@hf/nousresearch/hermes-2-pro-mistral-7b": BaseAiTextGeneration;
|
|
7092
|
+
"@hf/nexusflow/starling-lm-7b-beta": BaseAiTextGeneration;
|
|
7093
|
+
"@hf/google/gemma-7b-it": BaseAiTextGeneration;
|
|
7094
|
+
"@cf/meta-llama/llama-2-7b-chat-hf-lora": BaseAiTextGeneration;
|
|
7095
|
+
"@cf/google/gemma-2b-it-lora": BaseAiTextGeneration;
|
|
7096
|
+
"@cf/google/gemma-7b-it-lora": BaseAiTextGeneration;
|
|
7097
|
+
"@hf/mistral/mistral-7b-instruct-v0.2": BaseAiTextGeneration;
|
|
7098
|
+
"@cf/meta/llama-3-8b-instruct": BaseAiTextGeneration;
|
|
7099
|
+
"@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration;
|
|
7100
|
+
"@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration;
|
|
7101
|
+
"@hf/meta-llama/meta-llama-3-8b-instruct": BaseAiTextGeneration;
|
|
7102
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration;
|
|
7103
|
+
"@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration;
|
|
7104
|
+
"@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration;
|
|
7105
|
+
"@cf/meta/llama-3.2-1b-instruct": BaseAiTextGeneration;
|
|
7106
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": BaseAiTextGeneration;
|
|
7107
|
+
"@cf/facebook/bart-large-cnn": BaseAiSummarization;
|
|
7108
|
+
"@cf/llava-hf/llava-1.5-7b-hf": BaseAiImageToText;
|
|
7109
|
+
"@cf/baai/bge-base-en-v1.5": Base_Ai_Cf_Baai_Bge_Base_En_V1_5;
|
|
7110
|
+
"@cf/openai/whisper": Base_Ai_Cf_Openai_Whisper;
|
|
7111
|
+
"@cf/meta/m2m100-1.2b": Base_Ai_Cf_Meta_M2M100_1_2B;
|
|
7112
|
+
"@cf/baai/bge-small-en-v1.5": Base_Ai_Cf_Baai_Bge_Small_En_V1_5;
|
|
7113
|
+
"@cf/baai/bge-large-en-v1.5": Base_Ai_Cf_Baai_Bge_Large_En_V1_5;
|
|
7114
|
+
"@cf/unum/uform-gen2-qwen-500m": Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M;
|
|
7115
|
+
"@cf/openai/whisper-tiny-en": Base_Ai_Cf_Openai_Whisper_Tiny_En;
|
|
7116
|
+
"@cf/openai/whisper-large-v3-turbo": Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo;
|
|
7117
|
+
"@cf/baai/bge-m3": Base_Ai_Cf_Baai_Bge_M3;
|
|
7118
|
+
"@cf/black-forest-labs/flux-1-schnell": Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell;
|
|
7119
|
+
"@cf/meta/llama-3.2-11b-vision-instruct": Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct;
|
|
7120
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast": Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast;
|
|
7121
|
+
"@cf/meta/llama-guard-3-8b": Base_Ai_Cf_Meta_Llama_Guard_3_8B;
|
|
7122
|
+
"@cf/baai/bge-reranker-base": Base_Ai_Cf_Baai_Bge_Reranker_Base;
|
|
6252
7123
|
"@cf/qwen/qwen2.5-coder-32b-instruct": Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct;
|
|
6253
7124
|
"@cf/qwen/qwq-32b": Base_Ai_Cf_Qwen_Qwq_32B;
|
|
6254
7125
|
"@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct;
|
|
6255
7126
|
"@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It;
|
|
6256
7127
|
"@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct;
|
|
7128
|
+
"@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3;
|
|
7129
|
+
"@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2;
|
|
7130
|
+
"@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B;
|
|
7131
|
+
"@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B;
|
|
7132
|
+
"@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0;
|
|
7133
|
+
"@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin;
|
|
7134
|
+
"@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1;
|
|
6257
7135
|
}
|
|
6258
7136
|
export type AiOptions = {
|
|
6259
7137
|
/**
|
|
@@ -6261,6 +7139,10 @@ export type AiOptions = {
|
|
|
6261
7139
|
* https://developers.cloudflare.com/workers-ai/features/batch-api
|
|
6262
7140
|
*/
|
|
6263
7141
|
queueRequest?: boolean;
|
|
7142
|
+
/**
|
|
7143
|
+
* Establish websocket connections, only works for supported models
|
|
7144
|
+
*/
|
|
7145
|
+
websocket?: boolean;
|
|
6264
7146
|
gateway?: GatewayOptions;
|
|
6265
7147
|
returnRawResponse?: boolean;
|
|
6266
7148
|
prefix?: string;
|
|
@@ -6306,7 +7188,7 @@ export declare abstract class Ai<
|
|
|
6306
7188
|
> {
|
|
6307
7189
|
aiGatewayLogId: string | null;
|
|
6308
7190
|
gateway(gatewayId: string): AiGateway;
|
|
6309
|
-
autorag(autoragId
|
|
7191
|
+
autorag(autoragId: string): AutoRAG;
|
|
6310
7192
|
run<
|
|
6311
7193
|
Name extends keyof AiModelList,
|
|
6312
7194
|
Options extends AiOptions,
|
|
@@ -6316,9 +7198,13 @@ export declare abstract class Ai<
|
|
|
6316
7198
|
inputs: InputOptions,
|
|
6317
7199
|
options?: Options,
|
|
6318
7200
|
): Promise<
|
|
6319
|
-
Options extends
|
|
6320
|
-
|
|
6321
|
-
|
|
7201
|
+
Options extends
|
|
7202
|
+
| {
|
|
7203
|
+
returnRawResponse: true;
|
|
7204
|
+
}
|
|
7205
|
+
| {
|
|
7206
|
+
websocket: true;
|
|
7207
|
+
}
|
|
6322
7208
|
? Response
|
|
6323
7209
|
: InputOptions extends {
|
|
6324
7210
|
stream: true;
|
|
@@ -8503,7 +9389,6 @@ export declare namespace TailStream {
|
|
|
8503
9389
|
}
|
|
8504
9390
|
interface JsRpcEventInfo {
|
|
8505
9391
|
readonly type: "jsrpc";
|
|
8506
|
-
readonly methodName: string;
|
|
8507
9392
|
}
|
|
8508
9393
|
interface ScheduledEventInfo {
|
|
8509
9394
|
readonly type: "scheduled";
|