ChatRequest constructor
ChatRequest({
- double? temperature,
- int? randomSeed,
- int? topK,
- double? topP,
- int tokenBuffer = 256,
- String? loraPath,
- bool? supportImage,
- bool? supportAudio,
- List<
Tool> tools = const [], - bool? supportsFunctionCalls,
- bool enableThinking = false,
- ModelType? modelType,
- ToolChoice toolChoice = ToolChoice.auto,
- int? maxFunctionBufferLength,
- String? systemInstruction,
- int? maxOutputTokens,
- 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);