openEngineSession method

  1. @protected
Future<InferenceModelSession> openEngineSession(
  1. SessionRequest request
)

An independent session for request. Called by core for openSession and for every initial or rebuilt openChat session, after format checks when SessionRequest.responseFormat is non-null. Default: UnsupportedError, as the base openSession gave before 2.6.0.

Implementation

@protected
Future<InferenceModelSession> openEngineSession(SessionRequest request) =>
    Future.error(
      UnsupportedError('openSession() is not supported for $runtimeType.'),
    );