/v1/responses) eliminates the need to re-transmit expanding transcripts of previous messages on every interaction turn. By setting store=True with the official OpenAI SDK, Neosantara maintains conversation state on the gateway, enabling direct multi-turn interaction via previous_response_id.
Multi-Turn Workflows with OpenAI SDK
Send your initial prompt withstore=True. On subsequent turns, provide previous_response_id referencing the earlier response ID. The gateway reconstructs context automatically.
Inspecting Conversation State
Inspect saved response metadata and token consumption details at any time usingclient.responses.retrieve.
Benefits of Server-Side State
- Bandwidth Efficiency: Clients do not re-upload expanding transcripts of prior messages on every request.
- Reliable Continuity: State is persisted in high-speed, durable cache layers on the gateway.
- Ideal for Thin Clients: Well-suited for mobile applications, messaging bots, and IoT hardware with payload limitations.