HuggingFaceChatCompletionMetadata 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.
Represents the metadata of a Hugging Face chat completion.
public sealed class HuggingFaceChatCompletionMetadata : System.Collections.ObjectModel.ReadOnlyDictionary<string,object>
type HuggingFaceChatCompletionMetadata = class
inherit ReadOnlyDictionary<string, obj>
Public NotInheritable Class HuggingFaceChatCompletionMetadata
Inherits ReadOnlyDictionary(Of String, Object)
- Inheritance
-
HuggingFaceChatCompletionMetadata
Properties
Created |
Creation time of the response. |
FinishReason |
Reason why the processing was finished. |
Id |
Id of the response. |
LogProbs |
The log probabilities of the completion. |
Model |
Model used to generate the response. |
Object |
Object identifier. |
SystemFingerPrint |
System fingerprint. |
UsageCompletionTokens |
The count of token in the current completion. |
UsagePromptTokens |
The count of tokens in the prompt. |
UsageTotalTokens |
The total count of tokens used. |
Methods
FromDictionary(IReadOnlyDictionary<String,Object>) |
Converts a dictionary to a HuggingFaceChatCompletionMetadata object. |