You need to add a database into your mix. Record the ins and outs for each user to feed into the next request. Just cap it to prevent token overflow.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Getting ChatGPT to Remember Previous Chat Messages | 36 | 71598 | December 8, 2023 | |
| How to keep session with gpt-3.5-turbo api? | 36 | 51491 | September 26, 2023 | |
| Feature Request: Unlimited Chat History and Persistent Memory in API | 3 | 487 | January 17, 2026 | |
| OpenAI API Conversation Memory | 5 | 11414 | May 14, 2023 | |
| How can I maintain conversation continuity with chat gpt api? | 9 | 33316 | April 16, 2024 |