Table of Contents

Class ChatChoice

Namespace
Glitch9.AIDevKit
public class ChatChoice
Inheritance
object
ChatChoice

Properties

Delta

A streaming chat completion message generated by the model.

public ChatDelta Delta { get; set; }

Property Value

ChatDelta

FinishReason

The reason the model stopped generating tokens. This will be stopped if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, or function_call if the model called a Function.

public StopReason? FinishReason { get; set; }

Property Value

StopReason?

Index

The index of the choice in the list of choices.

public int Index { get; set; }

Property Value

int

Logprobs

Log probability information for the choice.

public Logprobs Logprobs { get; set; }

Property Value

Logprobs

Message

A chat completion message generated by the model.

public ChatMessage Message { get; set; }

Property Value

ChatMessage

Text

Only used for legacy model requests.

public string Text { get; set; }

Property Value

string