API reference
API reference
Select your platform
No SDKs available
No versions available

HuggingFaceProvider Class

HuggingFace cloud provider – supports chat/VLM (IChatTask) and object detection (IObjectDetectionTask).
Normalized detections shape: [{ "score":float, "label":string, "box":[xmin,ymin,xmax,ymax] }, ...]

Properties

bool SupportsVision[Get]
override InferenceType DefaultSupportedTypes[Get]

Member Functions

async Task< ChatResponse > ChatAsync
( ChatRequest req,
IProgress< ChatDelta > stream,
CancellationToken ct )
async Task< string > DetectAsync
( byte[] imageJpgOrPng,
CancellationToken ct )
Task< byte[]> DetectBinaryAsync
( byte[] imageJpgOrPng,
CancellationToken ct )
Task< byte[]> DetectAsync
( RenderTexture src,
CancellationToken ct )