CloudflareDecisionModel unstable
Cloudflare Clef implementation of DecisionModel over Workers AI REST.
Constructors
Builds a decision service with tolerance for four-decimal probability rounding.
Details
Byte arrays and base64 strings are sent as base64 with their media type.
data: URLs are sent unchanged. The API enforces image limits.
Gotchas
- Remote URLs fail with
AiError.InvalidUserInputErrorbecause Clef does not fetch them.
Signature
declare const make: (...args: [options: { readonly model: "clef" | "clef-flash" | string & {};}]) => Effect<DecisionModel, never, CloudflareClient>Creates a decision model with Cloudflare provider metadata.
Signature
declare function model(model: "clef" | "clef-flash" | string & {}): Model<"cloudflare", DecisionModel, CloudflareClient>