cancelResponse method
Cancel a background response by ID
Only responses created with background=true can be cancelled. Returns the cancelled response object.
Implementation
@override
Future<ChatResponse> cancelResponse(String responseId) async {
final endpoint = '$responsesEndpoint/$responseId/cancel';
final responseData = await client.postJson(endpoint, {});
return _parseResponse(responseData);
}