Create Assistant

POST https://api.openai.com/v1/assistants

Request Body

{"instructions"=>"You are a personal math tutor. When asked a question, write and run Python code to answer the question.", "name"=>"Math Tutor", "tools"=>[{"type"=>"code_interpreter"}], "model"=>"gpt-4-turbo"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
OpenAI-Betastring