@@ -40,13 +40,6 @@ import kotlinx.serialization.Serializable
4040 * and the topP value is 0.5, then the model will select either A or B as the next token by using
4141 * the `temperature` and exclude C as a candidate. Defaults to 0.95 if unset.
4242 *
43- * @property candidateCount The maximum number of generated response messages to return. This value
44- * must be between [1, 8], inclusive. If unset, this will default to 1.
45- *
46- * - Note: Only unique candidates are returned. Higher temperatures are more likely to produce
47- * unique candidates. Setting `temperature` to 0 will always produce exactly one candidate
48- * regardless of the `candidateCount`.
49- *
5043 * @property presencePenalty Positive penalties.
5144 *
5245 * @property frequencyPenalty Frequency penalties.
@@ -70,7 +63,6 @@ private constructor(
7063 internal val temperature: Float? ,
7164 internal val topK: Int? ,
7265 internal val topP: Float? ,
73- internal val candidateCount: Int? ,
7466 internal val maxOutputTokens: Int? ,
7567 internal val presencePenalty: Float? ,
7668 internal val frequencyPenalty: Float? ,
@@ -94,8 +86,6 @@ private constructor(
9486 *
9587 * @property frequencyPenalty See [LiveGenerationConfig.frequencyPenalty]
9688 *
97- * @property candidateCount See [LiveGenerationConfig.candidateCount].
98- *
9989 * @property maxOutputTokens See [LiveGenerationConfig.maxOutputTokens].
10090 *
10191 * @property responseModality See [LiveGenerationConfig.responseModality]
@@ -106,7 +96,6 @@ private constructor(
10696 @JvmField public var temperature: Float? = null
10797 @JvmField public var topK: Int? = null
10898 @JvmField public var topP: Float? = null
109- @JvmField public var candidateCount: Int? = null
11099 @JvmField public var maxOutputTokens: Int? = null
111100 @JvmField public var presencePenalty: Float? = null
112101 @JvmField public var frequencyPenalty: Float? = null
@@ -118,9 +107,6 @@ private constructor(
118107 }
119108 public fun setTopK (topK : Int? ): Builder = apply { this .topK = topK }
120109 public fun setTopP (topP : Float? ): Builder = apply { this .topP = topP }
121- public fun setCandidateCount (candidateCount : Int? ): Builder = apply {
122- this .candidateCount = candidateCount
123- }
124110 public fun setMaxOutputTokens (maxOutputTokens : Int? ): Builder = apply {
125111 this .maxOutputTokens = maxOutputTokens
126112 }
@@ -143,7 +129,6 @@ private constructor(
143129 temperature = temperature,
144130 topK = topK,
145131 topP = topP,
146- candidateCount = candidateCount,
147132 maxOutputTokens = maxOutputTokens,
148133 presencePenalty = presencePenalty,
149134 frequencyPenalty = frequencyPenalty,
@@ -157,7 +142,6 @@ private constructor(
157142 temperature = temperature,
158143 topP = topP,
159144 topK = topK,
160- candidateCount = candidateCount,
161145 maxOutputTokens = maxOutputTokens,
162146 frequencyPenalty = frequencyPenalty,
163147 presencePenalty = presencePenalty,
@@ -172,7 +156,6 @@ private constructor(
172156 val temperature : Float? ,
173157 @SerialName(" top_p" ) val topP : Float? ,
174158 @SerialName(" top_k" ) val topK : Int? ,
175- @SerialName(" candidate_count" ) val candidateCount : Int? ,
176159 @SerialName(" max_output_tokens" ) val maxOutputTokens : Int? ,
177160 @SerialName(" presence_penalty" ) val presencePenalty : Float? = null ,
178161 @SerialName(" frequency_penalty" ) val frequencyPenalty : Float? = null ,
@@ -201,7 +184,6 @@ private constructor(
201184 * temperature = 0.75f
202185 * topP = 0.5f
203186 * topK = 30
204- * candidateCount = 4
205187 * maxOutputTokens = 300
206188 * ...
207189 * }
0 commit comments