How do I get the Ai model

How do I get the Ai model from Edge Gallery to remember everything from our chats? I told her one thing so that she would write me a code word in response to the code word, but in the new chat she forgot everything, how do I make sure that she doesn’t forget?

Typically, current LLMs do not remember conversations. They behave as if they remember by being provided with conversation history.

That said, there have been numerous attempts to add long-term memory to LLMs, and ChatGPT recently introduced support for long-term memory functionality.

If the service in question supports long-term memory, the desired outcome can be achieved.
If not, you will need to find a way to save conversation history yourself (summarizing as needed) and pass it along.
https://openai.com/index/memory-and-new-controls-for-chatgpt/
https://github.com/topics/long-term-memory