Skip to main content

Module model

Module model 

Source
Expand description

Active model + lifecycle

Functionsยง

active_model_path
Active model path.
clear_active_model_record
Clears the active-model record.
get_active_model
Gets active-model.
get_inference_backend_settings
Gets inference-backend-settings.
get_model_lifecycle_status
Gets model-lifecycle-status.
get_model_preferences
Gets model-preferences.
install_catalog_llm
Installs a catalog LLM.
is_model_activation_in_progress
true when model-activation-in-progress.
list_installed_llm_ids
Lists installed LLM IDs.
list_ollama_models
List models on the configured Ollama host (empty vec if unreachable).
load_active_model_from_disk
Loads active-model-from-disk.
load_active_model_record_from_disk
Loads active-model-record-from-disk.
ollama_generate
One-shot Ollama generate using persisted settings (for smoke / ETL hooks).
ollama_generate_async
Ollama generate (async).
probe_ollama_status
Probe the configured Ollama endpoint (tags + reachability).
probe_ollama_status_async
Probes Ollama status (async).
resolve_model_preference
Resolves a model preference.
restore_active_model_on_startup
Restores the active model on startup.
save_inference_backend_settings
Saves inference-backend-settings.
save_model_preferences
Saves model-preferences.
set_active_model
Sets active-model.
set_active_model_async
Activate a model on a background thread so the Flutter FRB caller is not blocked.
take_model_activation_error
Takes the model-activation error.
try_apply_model_preference
Applies a model preference.
try_apply_model_preference_async
Applies a model preference (async).
unload_active_model
Evict the resident model from memory without deleting on-disk GGUF files.