Summarization is now handled by the Sunflower conversational AI through the OpenAI-compatible POST /tasks/chat/completions endpoint. Instead of a dedicated summarization route, you send the text you want condensed along with a summarization instruction prompt.
The legacy /tasks/summarise endpoint is deprecated. Use /tasks/chat/completions with a summarization instruction, as shown below.
How it Works
You drive summarization through the messages array:
- A system message defines the summarization behavior (length, tone, and any anonymization requirements).
- A user message carries the text to be summarized.
This approach is flexible — adjust the instruction to control summary length, language, format (bullets vs. prose), and whether to anonymize personal identifiable information (PII).
Example Request
Response
The summary is returned in the standard chat completion format:
Tune the system instruction to control the output — for example, “Summarize in three bullet points in Luganda” or “Give a one-sentence summary.” See the Sunflower Chat guide for the full set of supported parameters.