ModelInfo class

Metadata for a supported LLM model.

A ModelInfo bundles everything the plugin needs to download, validate, and interact with a specific GGUF model: the remote URL, expected file size, hardware requirements, context length, and the matching ChatTemplate.

Constructors

ModelInfo({required String id, required String name, required String fileName, required String ggufUrl, required int sizeMB, required int minRamGB, required int context, required ChatTemplate chatTemplate})
Creates a ModelInfo instance.
const

Properties

chatTemplate → ChatTemplate
The prompt template used for multi‑turn chat formatting.
final
context → int
Maximum context window length in tokens.
final
fileName → String
Local file name for the downloaded GGUF.
final
ggufUrl → String
Direct download URL for the quantised GGUF file.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Short machine‑readable identifier (e.g. 'tinyllama').
final
minRamGB → int
Minimum device RAM (GB) recommended to load this model.
final
name → String
Human‑readable model name shown in UI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeMB → int
Approximate download size in megabytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited