RewriterFactory
Methods
capabilities
async capabilities(options) =>
RewriterCapabilities
Get the capabilities of the on-device language model.
Options (optional) |
---|
model |
Returns a new capabilities object
create
async create(options) =>
Rewriter
Creates a new rewriter model session
Options (optional) |
---|
model |
gpuEngine: |
topK |
topP o |
maxTokens |
grammar |
temperature |
repeatPenality |
flashAttention |
contextSize |
tone |
format |
length |
signal |
monitor |
Returns a new Rewriter session that can be prompted with the pre-provided configuration
Last updated