Ailia LLM
Functions
Link copied to clipboard
Gets the context size of the model.
Link copied to clipboard
Gets the generated text (delta).
Link copied to clipboard
Gets the multimodal capabilities of the loaded model.
Link copied to clipboard
Gets the prompt token count.
Link copied to clipboard
Gets the token count for a text.
Link copied to clipboard
Opens a model file.
Link copied to clipboard
Opens a multimodal projector file for vision/audio support. Must be called after openModelFile() to enable multimodal capabilities.
Link copied to clipboard
Sets the prompt for generation.
Sets the prompt for generation with multimodal support. Automatically detects whether to use text-only or multimodal processing based on the presence of media data.
Link copied to clipboard
Sets sampling parameters.
Link copied to clipboard
Enable or disable thinking (reasoning output). Controls whether thinking models (e.g. Gemma4) output their reasoning process. Must be called before setPrompt.