Skip to main content
NagaAI keeps no conversation on its side. A call with previous_response_id gets an answer without that context, and no error tells you so. Keep the history in your application and send it in input on each turn. Append the whole output of each response to your input list, then add the next user message:
Sending the output items back, rather than only the text, keeps reasoning items and function_call items in place. Reasoning models use them to continue, and a function_call_output without its function_call fails with 400 tool_output_unmatched.

Clients that store by default

Some clients replace earlier turns with item_reference entries when store is on, expecting the server to fill them in. NagaAI refuses such requests with 400 and names the input item to send in full. Turn storing off in the client. In the Vercel AI SDK that is providerOptions: { openai: { store: false } }. Codex CLI and OpenCode already send store: false.