@@ -67,7 +67,6 @@ public readonly struct LiveGenerationConfig {
67
67
private readonly float ? _temperature ;
68
68
private readonly float ? _topP ;
69
69
private readonly float ? _topK ;
70
- private readonly int ? _candidateCount ;
71
70
private readonly int ? _maxOutputTokens ;
72
71
private readonly float ? _presencePenalty ;
73
72
private readonly float ? _frequencyPenalty ;
@@ -119,11 +118,6 @@ public readonly struct LiveGenerationConfig {
119
118
/// [Cloud documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#generationconfig)
120
119
/// for more details.</param>
121
120
///
122
- /// <param name="candidateCount">The number of response variations to return; defaults to 1 if not set.
123
- /// Support for multiple candidates depends on the model; see the
124
- /// [Cloud documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#generationconfig)
125
- /// for more details.</param>
126
- ///
127
121
/// <param name="maxOutputTokens">Maximum number of tokens that can be generated in the response.
128
122
/// See the configure model parameters [documentation](https://firebase.google.com/docs/vertex-ai/model-parameters?platform=ios#max-output-tokens)
129
123
/// for more details.</param>
@@ -166,7 +160,6 @@ public LiveGenerationConfig(
166
160
float ? temperature = null ,
167
161
float ? topP = null ,
168
162
float ? topK = null ,
169
- int ? candidateCount = null ,
170
163
int ? maxOutputTokens = null ,
171
164
float ? presencePenalty = null ,
172
165
float ? frequencyPenalty = null ) {
@@ -176,7 +169,6 @@ public LiveGenerationConfig(
176
169
_temperature = temperature ;
177
170
_topP = topP ;
178
171
_topK = topK ;
179
- _candidateCount = candidateCount ;
180
172
_maxOutputTokens = maxOutputTokens ;
181
173
_presencePenalty = presencePenalty ;
182
174
_frequencyPenalty = frequencyPenalty ;
@@ -196,7 +188,6 @@ internal Dictionary<string, object> ToJson() {
196
188
if ( _temperature . HasValue ) jsonDict [ "temperature" ] = _temperature . Value ;
197
189
if ( _topP . HasValue ) jsonDict [ "topP" ] = _topP . Value ;
198
190
if ( _topK . HasValue ) jsonDict [ "topK" ] = _topK . Value ;
199
- if ( _candidateCount . HasValue ) jsonDict [ "candidateCount" ] = _candidateCount . Value ;
200
191
if ( _maxOutputTokens . HasValue ) jsonDict [ "maxOutputTokens" ] = _maxOutputTokens . Value ;
201
192
if ( _presencePenalty . HasValue ) jsonDict [ "presencePenalty" ] = _presencePenalty . Value ;
202
193
if ( _frequencyPenalty . HasValue ) jsonDict [ "frequencyPenalty" ] = _frequencyPenalty . Value ;
0 commit comments