serverStreamingPredict method
Perform a server-side streaming online prediction request for Vertex LLM streaming.
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
Stream<StreamingPredictResponse> serverStreamingPredict(
StreamingPredictRequest request,
) {
if (isClosed) throw StateError('Service is closed');
if (_serverStreamingPredict case final serverStreamingPredict?) {
return serverStreamingPredict(request);
}
throw UnsupportedError('serverStreamingPredict');
}