Is there any way to explicitly abort a request AND/OR closed requests handled?

When executing a completion(text or chat) request, is there a way to cancel the request?
Are aborted HTTP requests handled? For example, if the connection was closed, would the completion request stop and not use any more tokens?

1 Like