# Stateles & sending previous replies, to create a thread

**URL:** <https://community.openai.com/t/stateles-sending-previous-replies-to-create-a-thread/492237>\
**Category:** API\
**Tags:** gpt-4\
**Created:** [November 10, 2023, 9:29am UTC](https://community.openai.com/t/stateles-sending-previous-replies-to-create-a-thread/492237 "2023-11-10T09:29:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itsvnk](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/itsvnk/32/448395_2.png) [@itsvnk](https://community.openai.com/u/itsvnk)\
**Post date:** [November 10, 2023, 11:41am UTC](https://community.openai.com/t/stateles-sending-previous-replies-to-create-a-thread/492237/2 "2023-11-10T11:41:35Z")

</div>

I was lazy, sorry, I found the answer after doing some searching

Looking at the solution, it seems pretty obvious in retrospect 🤦‍♂️

> [@GPT-3.5-turbo how to remember previous messages like Chat-GPT website](https://community.openai.com/t/gpt-3-5-turbo-how-to-remember-previous-messages-like-chat-gpt-website/170370/6):
>
> go to this link, [OpenAI API](https://platform.openai.com/docs/guides/chat/introduction) look a the example # Note: you need to be using OpenAI Python v0.27.0 for the code below to work import openai openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Who won the world series in 2020?"}, {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}, {"role": "user", "content": "Where was…

---

_[View the full topic](https://community.openai.com/t/stateles-sending-previous-replies-to-create-a-thread/492237)._
