Class ChatCompletion
Response from a LLM (Large Language Model) for a chat completion request.
This class contains a list of ChatCompletionChoice objects,
each representing a message generated by the model in response to a chat prompt.
Message can be accessed through the ChatCompletionChoice (e.g., Choices[0].Message).
If 'n' used in the request is greater than 1, this can contain multiple choices.
Otherwise, it will always contain a single choice.
If this is a streamed response,
the ChatCompletionChoice objects will contain MessageDelta instead of Message.
Inheritance
ChatCompletion
Assembly: Glitch9.AIDevKit.dll
Syntax
public class ChatCompletion : ChatCompletionBase<ChatCompletionChoice>
Methods
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
implicit operator MessageContent(ChatCompletion)
Declaration
public static implicit operator MessageContent(ChatCompletion chat)
Parameters
Returns
|
Edit this page
View Source
implicit operator string(ChatCompletion)
Declaration
public static implicit operator string(ChatCompletion chat)
Parameters
Returns
Extension Methods