Authorization: Bearer ********************
{
"assistant_id": "asst_IgmpQTah3ZfPHCVZjTqAY8Kv",
"thread": {
"messages": [
{"role": "user", "content": "Explain deep learning to a 5 year old."}
]
}
}
curl --location --request POST 'https://oapi.czl.net/v1/threads/runs' \
--header 'Content-Type: application/json' \
--data-raw '{
"assistant_id": "asst_IgmpQTah3ZfPHCVZjTqAY8Kv",
"thread": {
"messages": [
{"role": "user", "content": "Explain deep learning to a 5 year old."}
]
}
}'
{
"id": "run_3Qudf05GGhCleEg9ggwfJQih",
"object": "thread.run",
"created_at": 1699076792,
"assistant_id": "asst_IgmpQTah3ZfPHCVZjTqAY8Kv",
"thread_id": "thread_Ec3eKZcWI00WDZRC7FZci8hP",
"status": "queued",
"started_at": null,
"expires_at": 1699077392,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "gpt-4",
"instructions": "You are a helpful assistant.",
"tools": [],
"file_ids": [],
"metadata": {}
}