Class ChatCompletionRequest
Inheritance
object
RESTRequestBody
ChatCompletionRequest
Assembly: .dll
Syntax
public class ChatCompletionRequest : CompletionRequest
Properties
Messages
Required. The messages in the conversation.
Declaration
public List<ChatMessage> Messages { get; set; }
Property Value
Modalities
Output types that you would like the model to generate.
Most models are capable of generating text, which is the default:
Declaration
public Modality? Modalities { get; set; }
Property Value
StartingMessage
Declaration
public string StartingMessage { get; set; }
Property Value
Summary
Declaration
public string Summary { get; set; }
Property Value
Controls which (if any) Function is called by the model.
none means the model will not call a Function and instead generates a message.
auto means the model can pick between generating a message or calling a Function.
Specifying a particular Function via {"type: "Function", "Function": {"name": "my_function"}} forces the model to call that Function.
none is the default when no functions are present. auto is the default if functions are present.
Declaration
public ToolCall ToolChoice { get; set; }
Property Value
Optional. List of tools in JSON for the model to use if supported.
Declaration
public ToolCall[] Tools { get; set; }
Property Value
Extension Methods