Currently OpenAI (And some other providers) have previous_response_id which we can keep the thread of the conversation, but this id has expiration of 30 days, the idea of this fix is first check if the key expired. if do, reconstruct the whole conversation in input_messages and store the new response_id.
Currently OpenAI (And some other providers) have previous_response_id which we can keep the thread of the conversation, but this id has expiration of 30 days, the idea of this fix is first check if the key expired. if do, reconstruct the whole conversation in input_messages and store the new response_id.