DefaultModelClientProperties

data class DefaultModelClientProperties(val openAiUrl: String = "https://api.openai.com/v1/chat/completions", val openAiApiKey: String, val model: String = "gpt-3.5-turbo", val maxTokens: Int = 200, val temperature: Double = 0.0, val format: String = "json_object")

The DefaultModelClientProperties data class represents the properties for the default model client.

Parameters

openAiUrl

The OpenAI URL.

openAiApiKey

The OpenAI API key.

model

The model.

maxTokens

The maximum number of tokens.

temperature

The temperature.

format

The format.

Constructors

Link copied to clipboard
constructor(openAiUrl: String = "https://api.openai.com/v1/chat/completions", openAiApiKey: String, model: String = "gpt-3.5-turbo", maxTokens: Int = 200, temperature: Double = 0.0, format: String = "json_object")

Properties

Link copied to clipboard
Link copied to clipboard
val maxTokens: Int = 200
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val temperature: Double = 0.0