LLMConfiguration constructor

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

Implementation

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