loadLlmConfig method
Loads the saved LLM configuration.
Implementation
@override
Future<LlmConfig?> loadLlmConfig() async {
final prefs = await _instance;
final raw = prefs.getString(_kLlm);
if (raw == null || raw.isEmpty) return null;
try {
return LlmConfig.fromJson(jsonDecode(raw) as Map<String, dynamic>);
} catch (_) {
return null;
}
}