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