@@ -40,13 +40,6 @@ import kotlinx.serialization.Serializable
40
40
* and the topP value is 0.5, then the model will select either A or B as the next token by using
41
41
* the `temperature` and exclude C as a candidate. Defaults to 0.95 if unset.
42
42
*
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
- *
50
43
* @property presencePenalty Positive penalties.
51
44
*
52
45
* @property frequencyPenalty Frequency penalties.
@@ -70,7 +63,6 @@ private constructor(
70
63
internal val temperature: Float? ,
71
64
internal val topK: Int? ,
72
65
internal val topP: Float? ,
73
- internal val candidateCount: Int? ,
74
66
internal val maxOutputTokens: Int? ,
75
67
internal val presencePenalty: Float? ,
76
68
internal val frequencyPenalty: Float? ,
@@ -94,8 +86,6 @@ private constructor(
94
86
*
95
87
* @property frequencyPenalty See [LiveGenerationConfig.frequencyPenalty]
96
88
*
97
- * @property candidateCount See [LiveGenerationConfig.candidateCount].
98
- *
99
89
* @property maxOutputTokens See [LiveGenerationConfig.maxOutputTokens].
100
90
*
101
91
* @property responseModality See [LiveGenerationConfig.responseModality]
@@ -106,7 +96,6 @@ private constructor(
106
96
@JvmField public var temperature: Float? = null
107
97
@JvmField public var topK: Int? = null
108
98
@JvmField public var topP: Float? = null
109
- @JvmField public var candidateCount: Int? = null
110
99
@JvmField public var maxOutputTokens: Int? = null
111
100
@JvmField public var presencePenalty: Float? = null
112
101
@JvmField public var frequencyPenalty: Float? = null
@@ -118,9 +107,6 @@ private constructor(
118
107
}
119
108
public fun setTopK (topK : Int? ): Builder = apply { this .topK = topK }
120
109
public fun setTopP (topP : Float? ): Builder = apply { this .topP = topP }
121
- public fun setCandidateCount (candidateCount : Int? ): Builder = apply {
122
- this .candidateCount = candidateCount
123
- }
124
110
public fun setMaxOutputTokens (maxOutputTokens : Int? ): Builder = apply {
125
111
this .maxOutputTokens = maxOutputTokens
126
112
}
@@ -143,7 +129,6 @@ private constructor(
143
129
temperature = temperature,
144
130
topK = topK,
145
131
topP = topP,
146
- candidateCount = candidateCount,
147
132
maxOutputTokens = maxOutputTokens,
148
133
presencePenalty = presencePenalty,
149
134
frequencyPenalty = frequencyPenalty,
@@ -157,7 +142,6 @@ private constructor(
157
142
temperature = temperature,
158
143
topP = topP,
159
144
topK = topK,
160
- candidateCount = candidateCount,
161
145
maxOutputTokens = maxOutputTokens,
162
146
frequencyPenalty = frequencyPenalty,
163
147
presencePenalty = presencePenalty,
@@ -172,7 +156,6 @@ private constructor(
172
156
val temperature : Float? ,
173
157
@SerialName(" top_p" ) val topP : Float? ,
174
158
@SerialName(" top_k" ) val topK : Int? ,
175
- @SerialName(" candidate_count" ) val candidateCount : Int? ,
176
159
@SerialName(" max_output_tokens" ) val maxOutputTokens : Int? ,
177
160
@SerialName(" presence_penalty" ) val presencePenalty : Float? = null ,
178
161
@SerialName(" frequency_penalty" ) val frequencyPenalty : Float? = null ,
@@ -201,7 +184,6 @@ private constructor(
201
184
* temperature = 0.75f
202
185
* topP = 0.5f
203
186
* topK = 30
204
- * candidateCount = 4
205
187
* maxOutputTokens = 300
206
188
* ...
207
189
* }
0 commit comments