VLMGenerationOptions constructor
VLMGenerationOptions({
- String? prompt,
- int? maxTokens,
- double? temperature,
- double? topP,
- int? topK,
- Iterable<
String> ? stopSequences, - bool? streamingEnabled,
- String? systemPrompt,
- int? maxImageSize,
- int? nThreads,
- bool? useGpu,
- VLMModelFamily? modelFamily,
- VLMChatTemplate? customChatTemplate,
- String? imageMarkerOverride,
- Int64? seed,
- double? repetitionPenalty,
- double? minP,
- bool? emitImageEmbeddings,
Implementation
factory VLMGenerationOptions({
$core.String? prompt,
$core.int? maxTokens,
$core.double? temperature,
$core.double? topP,
$core.int? topK,
$core.Iterable<$core.String>? stopSequences,
$core.bool? streamingEnabled,
$core.String? systemPrompt,
$core.int? maxImageSize,
$core.int? nThreads,
$core.bool? useGpu,
VLMModelFamily? modelFamily,
VLMChatTemplate? customChatTemplate,
$core.String? imageMarkerOverride,
$fixnum.Int64? seed,
$core.double? repetitionPenalty,
$core.double? minP,
$core.bool? emitImageEmbeddings,
}) {
final result = create();
if (prompt != null) result.prompt = prompt;
if (maxTokens != null) result.maxTokens = maxTokens;
if (temperature != null) result.temperature = temperature;
if (topP != null) result.topP = topP;
if (topK != null) result.topK = topK;
if (stopSequences != null) result.stopSequences.addAll(stopSequences);
if (streamingEnabled != null) result.streamingEnabled = streamingEnabled;
if (systemPrompt != null) result.systemPrompt = systemPrompt;
if (maxImageSize != null) result.maxImageSize = maxImageSize;
if (nThreads != null) result.nThreads = nThreads;
if (useGpu != null) result.useGpu = useGpu;
if (modelFamily != null) result.modelFamily = modelFamily;
if (customChatTemplate != null)
result.customChatTemplate = customChatTemplate;
if (imageMarkerOverride != null)
result.imageMarkerOverride = imageMarkerOverride;
if (seed != null) result.seed = seed;
if (repetitionPenalty != null) result.repetitionPenalty = repetitionPenalty;
if (minP != null) result.minP = minP;
if (emitImageEmbeddings != null)
result.emitImageEmbeddings = emitImageEmbeddings;
return result;
}