updateTunedModel method

  1. @override
Future<TunedModel> updateTunedModel(
  1. UpdateTunedModelRequest request
)
override

Updates a tuned model.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<TunedModel> updateTunedModel(UpdateTunedModelRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateTunedModel case final updateTunedModel?) {
    return updateTunedModel(request);
  }
  throw UnsupportedError('updateTunedModel');
}