Back

create-thread (clj)

(source)

function

(create-thread) (create-thread params) (create-thread params options)
Create a thread. Example: ``` (create-thread) or (create-thread {:messages [{:role "user" :content "Hello, what is AI?"} {:role "user" :content "How does AI work? Explain it in simple terms."}]}) ``` Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/threads/createThread)

Examples