## TL;DR

Before sending a Jamba chat request, run this checklist. If you set tools, set stream to false.

## Steps

1. 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.

## When to use

You are seeing this: 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. Use this skill when you run into "AI21 Jamba: stream must be false when you pass tools, plus other param conflicts".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
