ChatRequest constructor

ChatRequest({
  1. double? temperature,
  2. int? randomSeed,
  3. int? topK,
  4. double? topP,
  5. int tokenBuffer = 256,
  6. String? loraPath,
  7. bool? supportImage,
  8. bool? supportAudio,
  9. List<Tool> tools = const [],
  10. bool? supportsFunctionCalls,
  11. bool enableThinking = false,
  12. ModelType? modelType,
  13. ToolChoice toolChoice = ToolChoice.auto,
  14. int? maxFunctionBufferLength,
  15. String? systemInstruction,
  16. int? maxOutputTokens,
  17. JsonSchemaResponseFormat? responseFormat,
})

Implementation

ChatRequest({
  this.temperature,
  this.randomSeed,
  this.topK,
  this.topP,
  this.tokenBuffer = 256,
  this.loraPath,
  this.supportImage,
  this.supportAudio,
  List<Tool> tools = const [],
  this.supportsFunctionCalls,
  this.enableThinking = false,
  this.modelType,
  this.toolChoice = ToolChoice.auto,
  this.maxFunctionBufferLength,
  this.systemInstruction,
  this.maxOutputTokens,
  this.responseFormat,
}) : tools = List.unmodifiable(tools);