engineModelWithHttpInfo method
Read one model's load state on the serving runtime
Model reads one model's load state — loaded, unloading, or not_found, as the engine itself reports it.
Note: This method returns the HTTP Response.
Parameters:
- String model: Model is the model id to inspect, exactly as the model list reports it.
Implementation
Future<Response> engineModelWithHttpInfo({ String? model, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/engine/model';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (model != null) {
queryParams.addAll(_queryParams('', 'model', model));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}