Class LlamaChatCompletionResponse

LlamaChatCompletionResponse class

Represents a chat completion response returned by model, based on the provided input.

public class LlamaChatCompletionResponse : BaseResponse

Constructors

NameDescription
LlamaChatCompletionResponse()The default constructor.

Properties

NameDescription
Choices { get; set; }Gets or sets a list of chat completion choices. Can be more than one if n is greater than 1.
Created { get; set; }Gets or sets the Unix timestamp (in seconds) of when the chat completion was created.
Detail { get; set; }Gets or sets the response detail.
Error { get; set; }Gets or sets the HTTP response error.
ErrorMessage { get; }Gets or sets the error information.
HttpResponseHeaders { get; set; }Gets or sets the HTTP response headers.
HttpStatusCode { get; set; }Gets or sets the HTTP status code.
Id { get; set; }Gets or sets a unique identifier for the chat completion.
IsSuccessful { get; }Indicates if the response was successful.
Model { get; set; }Gets or sets the model used for the chat completion.
Object { get; set; }Gets or sets the object type, which is always chat.completion.
ReasonPhrase { get; }Gets the error reason phrase.
SystemFingerprint { get; set; }Gets or sets the fingerprint that represents the backend configuration that the model runs with.
Usage { get; set; }Gets or sets usage statistics for the completion request.

Methods

NameDescription
override ToString()Returns a string representation of the first choice.

See Also