ChatRequest

data class ChatRequest(val model: String, val messages: List<ChatMessage>, val thinking: Boolean? = null, val stream: Boolean = false, val maxTokens: Int? = null, val tools: List<ChatRequest.Tool>? = null, val toolCallRequired: Boolean? = null, val temperature: Double? = null, val topP: Double? = null, val frequencyPenalty: Double? = null, val presencePenalty: Double? = null, val responseFormat: ChatRequest.ResponseFormat? = null)(source)

Constructors

Link copied to clipboard
constructor(model: String, messages: List<ChatMessage>, thinking: Boolean? = null, stream: Boolean = false, maxTokens: Int? = null, tools: List<ChatRequest.Tool>? = null, toolCallRequired: Boolean? = null, temperature: Double? = null, topP: Double? = null, frequencyPenalty: Double? = null, presencePenalty: Double? = null, responseFormat: ChatRequest.ResponseFormat? = null)

Types

Link copied to clipboard
@Serializable
data class ResponseFormat(val type: ChatRequest.ResponseFormat.Type)
Link copied to clipboard
data class Tool(val name: String, val description: String, val parameters: JsonElement)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topP: Double?