create static method

Future<LlmWrapper> create(
  1. LlmCreateInput input
)

Create and load an LLM model

Implementation

static Future<LlmWrapper> create(LlmCreateInput input) async {
  try {
    final wrapper = LlmWrapper._();
    final result = await _channel.invokeMethod('createLlm', input.toMap());
    wrapper._wrapperId = result as String;
    return wrapper;
  } on PlatformException catch (e) {
    throw Exception('Failed to create LLM: ${e.message}');
  }
}