Class CompletionResponse
CompletionResponse class
Represents a chat completion response returned by model, based on the provided input.
public class CompletionResponse : BaseResponse
Constructors
Properties
Name | Description |
---|
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. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism. |
Usage { get; set; } | Gets or sets the usage statistics for the completion request. |
Methods
Name | Description |
---|
override ToString() | Returns the content of the first choice as a string. |
See Also