powered by
Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and cancels an in-progress response.
OPENAI_API_KEY
cancel_response(response_id)
The cancelled response object.
Character. Required. The response ID to cancel.
if (FALSE) { Sys.setenv(OPENAI_API_KEY = "sk-xxxxxx") cancel_response("resp_abc123") }
Run the code above in your browser using DataLab