Send a stateless, OpenAI-compatible chat request and get a completion back.
Chat completions are stateless β the platform doesnβt remember prior turns. You send the full conversation in messages[] on every request; the server returns a single completion. Same shape as the OpenAI Chat Completions API, so existing tooling works.
For a multi-turn conversation, append each assistant response to messages[] and send the whole thing again:
{ "model": "llama3.2:3b", "messages": [ {"role": "user", "content": "In one sentence, what is retrieval-augmented generation?"}, {"role": "assistant", "content": "Retrieval-augmented generation combines..."}, {"role": "user", "content": "Give me a concrete example."} ]}