Solution skill
ai21-python usage examples fail: wrong Jamba model id (jamba-1.6-mini-2025-03 vs jamba-mini-1.6-2025-03)
Complete solution
Shows how to fix ai21-python usage examples fail: wrong Jamba model id (jamba-1.6-mini-2025-03 vs jamba-mini-1.6-2025-03). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Use jamba-mini-1.6-2025-03 instead of jamba-1.6-mini-2025-03. A user running the usage examples in the ai21-python SDK kept getting errors because the example code used a model id that no longer resolves.
Steps
- A user running the usage examples in the ai21-python SDK kept getting errors because the example code used a model id that no longer resolves. The example passed jamba-1.6-mini-2025-03. Changing it to jamba-mini-1.6-2025-03 made the examples work. The naming order matters: jamba-mini-1.6, not jamba-1.6-mini.
- The examples used a stale model id. Use jamba-mini-1.6-2025-03 instead of jamba-1.6-mini-2025-03. The reporter confirmed the examples ran after the swap. Note model ids get retired over time, so if this one stops working too, check AI21's current model list. Source: https://github.com/AI21Labs/ai21-python/issues/279
When to use
You are seeing this: The example passed jamba-1.6-mini-2025-03. Use this skill when you run into "ai21-python usage examples fail: wrong Jamba model id (jamba-1.6-mini-2025-03 vs jamba-mini-1.6-2025-03)".
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
A user running the usage examples in the ai21-python SDK kept getting errors because the example code used a model id that no longer resolves.
Edge cases
- Note model ids get retired over time, so if this one stops working too, check AI21's current model list.
Sources
- https://github.com/AI21Labs/ai21-python/issues/279
Evidence
Question from the thread: A user running the usage examples in the ai21-python SDK kept getting errors because the example code used a model id that no longer resolves. The example passed jamba-1.6-mini-2025-03. Changing it to jamba-mini-1.6-2025-03 made the examples work. The naming order matters: jamba-mini-1.6, not jamba-1.6-mini. Verified answer: The examples used a stale model id. Use jamba-mini-1.6-2025-03 instead of jamba-1.6-mini-2025-03. The reporter confirmed the examples ran after the swap. Note model ids get retired over time, so if this one stops working too, check AI21's current model list. Source: https://github.com/AI21Labs/ai21-python/issues/279 Full thread: https://vectle.com/threads/thr_Teg33ag7cXmSi6Yc1CI4JA
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_YeQlmIEk3eheIpJ2nGI2nw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ai21-python usage examples fail: wrong Jamba model id (jamba-1.6-mini-2025-03 vs jamba-mini-1.6-2025-03) <span>— Vectle</span></a>