HuggingFaceTextGenerationService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
GetEndpoint(IAIService) |
Gets the endpoint from |
GetModelId(IAIService) |
Gets the model identifier from |
GetTextContentAsync(ITextGenerationService, String, PromptExecutionSettings, Kernel, CancellationToken) |
Get a single text generation result for the prompt and settings. |