how to send thread id to completion api? if that’s not possible how can we follow threads via chat completion?
Hi @fischer
Threads are meant for consumption on the Assistants API, while (chat) completions is a stateless API meaning that it has no storage or memory of its own.
Recently OpenAI added a new Conversations API which can be used to store entire conversation and send it to the Responses API:
response = openai.responses.create(
model="gpt-4.1",
input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}]
conversation: "conv_689667905b048191b4740501625afd940c7533ace33a2dab"
)
5 Likes