INNER CODE UNIT · Java
getOneStream
sashirestela/simple-openai · src/main/java/io/github/sashirestela/openai/OpenAI.java:911
default CompletableFuture<Stream<Event>> getOneStream(String responseId) {
return getOneStream(responseId, null, null);
}
/**
* Deletes a model response with the given ID.
*
* @param responseId The ID of the response to delete.
* @return The deleted response.
*/
@DELETE("/{responseId}")
CompletableFuture<DeletedObject> delete(@Path("responseId") String responseId);
/**
* Cancels a model response with the given ID. Only responses created with the background parameter
* set to true can be cancelled.
*
* @param responseId The ID of the response to cancel.