VLMConfiguration constructor

VLMConfiguration({
  1. String? modelId,
  2. int? maxImageSizePx,
  3. int? maxTokens,
  4. int? contextLength,
  5. double? temperature,
  6. String? systemPrompt,
  7. bool? streamingEnabled,
  8. InferenceFramework? preferredFramework,
})

Implementation

factory VLMConfiguration({
  $core.String? modelId,
  $core.int? maxImageSizePx,
  $core.int? maxTokens,
  $core.int? contextLength,
  $core.double? temperature,
  $core.String? systemPrompt,
  $core.bool? streamingEnabled,
  $0.InferenceFramework? preferredFramework,
}) {
  final result = create();
  if (modelId != null) result.modelId = modelId;
  if (maxImageSizePx != null) result.maxImageSizePx = maxImageSizePx;
  if (maxTokens != null) result.maxTokens = maxTokens;
  if (contextLength != null) result.contextLength = contextLength;
  if (temperature != null) result.temperature = temperature;
  if (systemPrompt != null) result.systemPrompt = systemPrompt;
  if (streamingEnabled != null) result.streamingEnabled = streamingEnabled;
  if (preferredFramework != null)
    result.preferredFramework = preferredFramework;
  return result;
}