Before sending a Jamba chat request, run this checklist. If you set tools, set stream to false. If you set stream to true, keep n at 1. If you need n above 1, use a temperature above 0. When parsing a stream, expect the first message to hold just the role and read usage stats only from the final message, since usage is null on every earlier chunk.

Context: Official docs (Jamba 1.5 API reference): documents parameter conflicts that fail at request time. stream must be false when the tools parameter is set, you cannot stream a tool-calling request. n must be 1 when stream is true. And n above 1 combined with temperature=0 fails, since identical answers are guaranteed duplicates. The docs also note the first streamed message carries only the assistant role, with content tokens arriving in later messages.