createAIModel static method
Implementation
static Future<AIModel> createAIModel(AiModelType type, String apiKey) async {
final model = AiProviderRegistry.specFor(type).create();
model.apiKey = apiKey;
return model;
}
static Future<AIModel> createAIModel(AiModelType type, String apiKey) async {
final model = AiProviderRegistry.specFor(type).create();
model.apiKey = apiKey;
return model;
}