getModels static method
List all configured Ollama model configs.
Returns an AiModelsResult containing the model list and the effective default model config.
Implementation
static Future<AiModelsResult> getModels({int timeoutSeconds = 30}) async {
final result = await _adapter.sendRequest(
'localLlm.getModelsVce',
{},
scriptName: 'AiPromptApi.getModels',
timeout: Duration(seconds: timeoutSeconds),
);
return AiModelsResult.fromJson(result);
}