If your GPT-6 Astra application needs more than one turn, decide first who owns the continuation state: your application, or a provider route that can retain a response.
Replay state you can inspect
The supplied developer guide’s “How to Maintain Stateful Conversations” example replays structured response.output items, removes each item’s id, omits null fields, and then appends the next user input. That is not the same as saving response.output_text, which is presentation text. For an application-owned history, keep the output items that the next turn needs rather than only the text shown to a person.
This distinction matters when tools are involved. In the guide’s function-calling example, the application retains the model output items and sends a function_call_output associated with the original call_id. The replay example’s excluded output-item id should not be confused with that tool-call correlation identifier: removing one does not mean discarding the other.
When a stored response is an option
The guide also describes previous_response_id as a reference to a stored response “where supported by the provider.” Treat that as a conditional branch, not a portability guarantee. The guide does not show that CometAPI stores responses for this route, how long such storage lasts, or that a response ID can be continued through another provider.
A practical choice is therefore:
- Use application-owned replay when you need an inspectable, portable state boundary. Preserve the relevant structured output and tool-correlation data, and test how the route accepts the resulting history.
- Use
previous_response_idonly after a small test on the actual route confirms both retention and follow-up behavior. Parameter acceptance or an OpenAI-compatible surface alone does not prove continuation took effect.
Record the test’s request shape, response identifiers, and follow-up result before committing to either path. If the route cannot verify stored-response continuation, fall back to the replay design instead of assuming the displayed transcript is sufficient. This keeps the decision tied to GPT-6 Astra’s actual integration path without claiming that the guide tested CometAPI behavior for you.