Rewriter

Properties

topK

number

topP

number

temperature

number

repeatPenality

number

flashAttention

boolean

contextSize

number

sharedContext

string

tone

AIRewriterTone

format

AIRewriterFormat

length

AIRewriterLength


Methods

rewrite

async (input, options) => string

See rewriteStreaming

rewriteStreaming

(input, options) => ReadableStream

This prompts the model to rewrite the given input and session options.

Returns a readable stream that updates each time new tokens are available from the language model

Last updated