Create Thread and Run
POST https://api.openai.com/v1/threads/runs
Request Body
{"assistant_id"=>"asst_abc123", "thread"=>{"messages"=>[{"role"=>"user", "content"=>"Explain deep learning to a 5 year old."}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string | ||
OpenAI-Beta | string |