GenerationConfig constructor
GenerationConfig({
- double? temperature,
- double? topP,
- double? topK,
- int? candidateCount,
- int? maxOutputTokens,
- List<
String> stopSequences = const [], - bool? responseLogprobs,
- int? logprobs,
- double? presencePenalty,
- double? frequencyPenalty,
- int? seed,
- String responseMimeType = '',
- Schema? responseSchema,
- Value? responseJsonSchema,
- GenerationConfig_RoutingConfig? routingConfig,
- bool? audioTimestamp,
- List<
GenerationConfig_Modality> responseModalities = const [], - GenerationConfig_MediaResolution? mediaResolution,
- SpeechConfig? speechConfig,
- GenerationConfig_ThinkingConfig? thinkingConfig,
- GenerationConfig_ModelConfig? modelConfig,
- ImageConfig? imageConfig,
Implementation
GenerationConfig({
this.temperature,
this.topP,
this.topK,
this.candidateCount,
this.maxOutputTokens,
this.stopSequences = const [],
this.responseLogprobs,
this.logprobs,
this.presencePenalty,
this.frequencyPenalty,
this.seed,
this.responseMimeType = '',
this.responseSchema,
this.responseJsonSchema,
this.routingConfig,
this.audioTimestamp,
this.responseModalities = const [],
this.mediaResolution,
this.speechConfig,
this.thinkingConfig,
this.modelConfig,
this.imageConfig,
}) : super(fullyQualifiedName);