OllamaChatRequestDTO

@Serializable
data class OllamaChatRequestDTO(val model: String, val messages: List<OllamaChatMessageDTO>, val tools: List<OllamaToolDTO>? = null, val format: JsonElement? = null, val options: OllamaChatRequestDTO.Options? = null, val stream: Boolean, val keepAlive: String? = null)(source)

Request for the /api/chat endpoint.

Constructors

Link copied to clipboard
constructor(model: String, messages: List<OllamaChatMessageDTO>, tools: List<OllamaToolDTO>? = null, format: JsonElement? = null, options: OllamaChatRequestDTO.Options? = null, stream: Boolean, keepAlive: String? = null)

Types

Link copied to clipboard
@Serializable
data class Options(val temperature: Double? = null)

Model options for generation.

Properties

Link copied to clipboard
val format: JsonElement? = null
Link copied to clipboard
@SerialName(value = "keep_alive")
val keepAlive: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tools: List<OllamaToolDTO>? = null