register method
Future<ModelInfo>
register({
- String? id,
- required String name,
- required String url,
- required InferenceFramework framework,
- ModelCategory modality = ModelCategory.MODEL_CATEGORY_LANGUAGE,
- ModelArtifactType? artifactType,
- int? memoryRequirement,
- bool supportsThinking = false,
- bool supportsLora = false,
Register a single-file remote model with the SDK.
Delegates to rac_register_model_from_url_proto via
RunAnywhereStorage.registerModel and returns the fully-populated
ModelInfo proto. Mirrors Swift RunAnywhere.registerModel(id:name:url: framework:modality:artifactType:memoryRequirement:supportsThinking: supportsLora:) in both signature shape and return type.
Implementation
Future<ModelInfo> register({
String? id,
required String name,
required String url,
required InferenceFramework framework,
ModelCategory modality = ModelCategory.MODEL_CATEGORY_LANGUAGE,
ModelArtifactType? artifactType,
int? memoryRequirement,
bool supportsThinking = false,
bool supportsLora = false,
}) => RunAnywhereStorage.registerModel(
id: id,
name: name,
url: url,
framework: framework,
modality: modality,
artifactType: artifactType,
memoryRequirement: memoryRequirement,
supportsThinking: supportsThinking,
supportsLora: supportsLora,
);