stopGeneration method
Implementation
@override
Future<void> stopGeneration() async {
try {
llmInference.cancelProcessing();
} catch (e) {
if (kDebugMode) {
debugPrint('[WebModelSession] cancelProcessing error: $e');
}
} finally {
_controller?.close();
_controller = null;
_promptParts.clear();
}
}