Class ChatCompletionChoice
Inheritance
ChatCompletionChoice
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class ChatCompletionChoice : ChatCompletionChoiceBase, ITextSource
Properties
|
Edit this page
View Source
Annotations
OpenAI has annotations inside Message > Content > TextContent > Annotations.
But other providers don't usually have annotations on every message content
and they rather have it on choice level.
There is no safe way to map annotations inside message content for all providers,
so we put it here on choice level.
Declaration
[JsonIgnore]
public List<Annotation> Annotations { get; set; }
Property Value
|
Edit this page
View Source
Message
A chat completion message generated by the model.
Declaration
[JsonProperty("message")]
public Message Message { get; set; }
Property Value
|
Edit this page
View Source
Text
Only used for legacy model requests.
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetTextSource()
Declaration
public string GetTextSource()
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods