次の方法で共有


HuggingFaceTextGenerationService Class

Definition

HuggingFace text generation service.

public sealed class HuggingFaceTextGenerationService : Microsoft.SemanticKernel.TextGeneration.ITextGenerationService
type HuggingFaceTextGenerationService = class
    interface ITextGenerationService
    interface IAIService
Public NotInheritable Class HuggingFaceTextGenerationService
Implements ITextGenerationService
Inheritance
HuggingFaceTextGenerationService
Implements

Constructors

HuggingFaceTextGenerationService(String, Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceTextGenerationService class.

HuggingFaceTextGenerationService(Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceTextGenerationService class.

Properties

Attributes

Gets the AI service attributes.

Methods

GetStreamingTextContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get streaming results for the prompt using the specified execution settings. Each modality may support for different types of streaming contents.

GetTextContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get completion results for the prompt and settings.

Extension Methods

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

GetTextContentAsync(ITextGenerationService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get a single text generation result for the prompt and settings.

Applies to