다음을 통해 공유


ChatCompletion Class

Definition

Represents the result of a chat completion request.

public ref class ChatCompletion
public class ChatCompletion
type ChatCompletion = class
Public Class ChatCompletion
Inheritance
ChatCompletion
Derived

Constructors

ChatCompletion(ChatMessage)

Initializes a new instance of the ChatCompletion class.

ChatCompletion(IList<ChatMessage>)

Initializes a new instance of the ChatCompletion class.

Properties

AdditionalProperties

Gets or sets any additional properties associated with the chat completion.

Choices

Gets or sets the list of chat completion choices.

CompletionId

Gets or sets the ID of the chat completion.

CreatedAt

Gets or sets a timestamp for the chat completion.

FinishReason

Gets or sets the reason for the chat completion.

Message

Gets the chat completion message.

ModelId

Gets or sets the model ID used in the creation of the chat completion.

RawRepresentation

Gets or sets the raw representation of the chat completion from an underlying implementation.

Usage

Gets or sets usage details for the chat completion.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

Applies to