Partager via


HuggingFaceChatCompletionMetadata Class

Definition

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.

Applies to