Table of Contents

Class ChatCompletionRequest

Namespace
Glitch9.AIDevKit
public class ChatCompletionRequest : CompletionRequest
Inheritance
object
RESTRequestBody
ChatCompletionRequest
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

Modality?

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

ToolCall

Tools

Optional. List of tools in JSON for the model to use if supported.

public ToolCall[] Tools { get; set; }

Property Value

ToolCall[]