Rewriter
Properties
topK
number
topP
number
temperature
number
repeatPenality
number
flashAttention
boolean
contextSize
number
sharedContext
string
tone
format
length
Methods
rewrite
async (input, options) => string
See rewriteStreaming
rewriteStreaming
(input, options) => ReadableStream
This prompts the model to rewrite the given input and session options.
Input
A string
containing the text to rewrite
Options (optional)
signal optional AbortSignal
context optional string
Returns a readable stream that updates each time new tokens are available from the language model
Last updated