WriterFactory
Last updated
Last updated
async capabilities(options) =>
WriterCapabilities
Get the capabilities of the on-device language model.
Options (optional) |
---|
Returns a new capabilities object
async create(options) =>
Writer
Creates a new writer model session
Options (optional) |
---|
Returns a new session that can be prompted with the pre-provided configuration
model optional string
The id of the model to use, undefined to use the default
model optional string
gpuEngine: optional
AICapabilityGpuEngine
topK optional number
topP optional number
maxTokens optional number
grammar optional any
temperature optional number
repeatPenality optional number
flashAttention optional boolean
contextSize optional number
tone optional
AIWriterTone
format optional
AIWriterFormat
length optional
length optional
AIWriterLength
signal optional AbortSignal
monitor optional
AICreateMonitor