ModelConfig.fromMap constructor

ModelConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ModelConfig.fromMap(Map<String, dynamic> map) {
  return ModelConfig(
    nCtx: map['nCtx'] as int?,
    maxTokens: map['maxTokens'] as int?,
    enableThinking: map['enableThinking'] as bool?,
    npuLibFolderPath: map['npuLibFolderPath'] as String?,
    npuModelFolderPath: map['npuModelFolderPath'] as String?,
  );
}