aiMentorGenerationsStopGenerationCreateWithHttpInfo method
Stop websocket generation
Note: This method returns the HTTP Response.
Parameters:
- String generationId (required):
Implementation
Future<Response> aiMentorGenerationsStopGenerationCreateWithHttpInfo(String generationId,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/mentor/generations/{generation_id}/stop-generation/'
.replaceAll('{generation_id}', generationId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}