LLMConfiguration constructor

LLMConfiguration({
  1. int? contextLength,
  2. String? modelId,
  3. InferenceFramework? preferredFramework,
  4. LLMGenerationOptions? defaultOptions,
})

Implementation

factory LLMConfiguration({
  $core.int? contextLength,
  $core.String? modelId,
  $5.InferenceFramework? preferredFramework,
  LLMGenerationOptions? defaultOptions,
}) {
  final result = create();
  if (contextLength != null) result.contextLength = contextLength;
  if (modelId != null) result.modelId = modelId;
  if (preferredFramework != null)
    result.preferredFramework = preferredFramework;
  if (defaultOptions != null) result.defaultOptions = defaultOptions;
  return result;
}