Skip to content

Commit 21a7867

Browse files
Google APIscopybara-github
authored andcommitted
feat: add model_config field for model selection preference
PiperOrigin-RevId: 739998881
1 parent 53ca65d commit 21a7867

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,28 @@ message GenerationConfig {
235235
}
236236
}
237237

238+
// Config for model selection.
239+
message ModelConfig {
240+
// Options for feature selection preference.
241+
enum FeatureSelectionPreference {
242+
// Unspecified feature selection preference.
243+
FEATURE_SELECTION_PREFERENCE_UNSPECIFIED = 0;
244+
245+
// Prefer higher quality over lower cost.
246+
PRIORITIZE_QUALITY = 1;
247+
248+
// Balanced feature selection preference.
249+
BALANCED = 2;
250+
251+
// Prefer lower cost over higher quality.
252+
PRIORITIZE_COST = 3;
253+
}
254+
255+
// Required. Feature selection preference.
256+
FeatureSelectionPreference feature_selection_preference = 1
257+
[(google.api.field_behavior) = REQUIRED];
258+
}
259+
238260
// The modalities of the response.
239261
enum Modality {
240262
// Unspecified modality. Will be processed as text.
@@ -335,6 +357,9 @@ message GenerationConfig {
335357
// Optional. The speech generation config.
336358
optional SpeechConfig speech_config = 23
337359
[(google.api.field_behavior) = OPTIONAL];
360+
361+
// Optional. Config for model selection.
362+
ModelConfig model_config = 27 [(google.api.field_behavior) = OPTIONAL];
338363
}
339364

340365
// Safety settings.

0 commit comments

Comments
 (0)