runs_cancel_run_request | R Documentation |
Cancels a run that is "in_progress". To get more details, visit https://platform.openai.com/docs/api-reference/runs/cancelRun https://platform.openai.com/docs/assistants
runs_cancel_run_request(thread_id, run_id, api_key = api_get_key())
thread_id |
string, the ID of the thread (https://platform.openai.com/docs/api-reference/threads) to which this run belongs |
run_id |
string, the ID of the run to cancel |
api_key |
string, OpenAI API key (see https://platform.openai.com/account/api-keys) |
content of the httr response object or SimpleError (conditions) enhanced with two additional fields: 'status_code' (response$status_code) and 'message_long' (built on response content)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.