Class ChatCompletionRequest
public class ChatCompletionRequest : CompletionRequest
- Inheritance
-
objectRESTRequestBodyChatCompletionRequest
- Inherited Members
- Extension Methods
Properties
Messages
Required. The messages in the conversation.
public List<ChatMessage> Messages { get; set; }
Property Value
- List<ChatMessage>
Modalities
Output types that you would like the model to generate. Most models are capable of generating text, which is the default:
public Modality? Modalities { get; set; }
Property Value
StartingMessage
public string StartingMessage { get; set; }
Property Value
- string
Summary
public string Summary { get; set; }
Property Value
- string
ToolChoice
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.
public ToolCall ToolChoice { get; set; }
Property Value
Tools
Optional. List of tools in JSON for the model to use if supported.
public ToolCall[] Tools { get; set; }
Property Value
- ToolCall[]