powered by
Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and retrieves a specific assistant.
OPENAI_API_KEY
retrieve_assistant(assistant_id)
An assistant object with $id, $name, $model, $instructions, $tools, and $created_at.
$id
$name
$model
$instructions
$tools
$created_at
Character. Required. The assistant ID (e.g. "asst_abc123").
"asst_abc123"
if (FALSE) { Sys.setenv(OPENAI_API_KEY = "sk-xxxxxx") asst <- retrieve_assistant("asst_abc123") cat("Name:", asst$name) cat("Model:", asst$model) }
Run the code above in your browser using DataLab