Partager via


HuggingFaceServiceCollectionExtensions Class

Definition

Provides extension methods for the IServiceCollection interface to configure Hugging Face connectors.

public static class HuggingFaceServiceCollectionExtensions
type HuggingFaceServiceCollectionExtensions = class
Public Module HuggingFaceServiceCollectionExtensions
Inheritance
HuggingFaceServiceCollectionExtensions

Methods

AddHuggingFaceChatCompletion(IServiceCollection, String, Uri, String, String, HttpClient)

Adds an Hugging Face chat completion service with the specified configuration.

AddHuggingFaceImageToText(IServiceCollection, String, Uri, String, String, HttpClient)

Adds an Hugging Face image-to-text service with the specified configuration.

AddHuggingFaceTextEmbeddingGeneration(IServiceCollection, String, Uri, String, String, HttpClient)

Adds an Hugging Face text embedding generation service with the specified configuration.

AddHuggingFaceTextGeneration(IServiceCollection, String, Uri, String, String, HttpClient)

Adds an Hugging Face text generation service with the specified configuration.

Applies to