Translator
Last updated
Last updated
async (input, options) => string
(input, options) => ReadableStream
This prompts the language model to translate the provided text. The returned stream should contain the translation
Input |
---|
Options (optional) |
---|
Returns a readable stream that updates each time new tokens are available from the language model
A string
to be translated
signal optional AbortSignal