InferenceChat constructor

InferenceChat({
  1. required Future<InferenceModelSession> sessionCreator()?,
  2. required int maxTokens,
  3. int tokenBuffer = 2000,
  4. bool supportImage = false,
  5. bool supportsFunctionCalls = false,
  6. List<Tool> tools = const [],
  7. ModelType modelType = ModelType.gemmaIt,
  8. bool isThinking = false,
  9. ModelFileType fileType = ModelFileType.task,
})

Implementation

InferenceChat({
  required this.sessionCreator,
  required this.maxTokens,
  this.tokenBuffer = 2000,
  this.supportImage = false,
  this.supportsFunctionCalls = false,
  this.tools = const [],
  this.modelType = ModelType.gemmaIt, // Default to gemmaIt for backward compatibility
  this.isThinking = false, // Default to false for backward compatibility
  this.fileType = ModelFileType.task, // Default to task for backward compatibility
});