Ai_Cf_Meta_M2M100_1_2B_Input
Ai_Cf_Meta_M2M100_1_2B_Input = {
source_lang?:string;target_lang:string;text:string; } | {requests:object[]; }
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:4090
Type Declaration
Section titled “Type Declaration”{ source_lang?: string; target_lang: string; text: string; }
source_lang?
Section titled “source_lang?”
optionalsource_lang:string
The language code of the source text (e.g., ‘en’ for English). Defaults to ‘en’ if not specified
target_lang
Section titled “target_lang”target_lang:
string
The language code to translate the text into (e.g., ‘es’ for Spanish)
text:
string
The text to be translated
{ requests: object[]; }
requests
Section titled “requests”requests:
object[]
Batch of the embeddings requests to run using async-queue