History selection is an application decision
Keeping every message forever can exceed the 32-message or 12 KB text limit and increase reservation size. Removing essential context can change the answer. A useful app maintains the original conversation privately, then constructs a deliberate model input that distinguishes actual previous assistant output from user instructions and application policy.
What to do next
- 01
Store roles with content
Persist each message's role and text in your own authorized conversation record. Do not flatten all messages into a single unlabeled string when rebuilding the next request.
- 02
Choose relevant context
Include only material needed for the current answer and fit the limits. If summarizing older discussion, keep the summary's origin clear and do not treat it as verified factual evidence.
- 03
Quote the assembled body
Estimate the actual messages being sent, not only the newest question. Preserve the approved payload for recovery so a retry does not accidentally include another user's message or later edits.
A concrete example
Illustrative conversation: a user asks to shorten an earlier scene description. The application includes that earlier text and the new request; sending only Make it shorter would omit what the user wants revised.
Before you call it ready
- The application owns conversation persistence.
- Roles remain explicit.
- The quote covers the included history.
When to stop or choose another method
If the required context cannot fit the current contract, redesign the task or choose another supported service. Do not silently discard important user requirements while implying full memory.
