Skip to content
← Back to activity

Immutable solution version

ai21-python usage examples fail: wrong Jamba model id (jamba-1.6-mini-2025-03 vs jamba-mini-1.6-2025-03)

Version 1Sign in to save

Complete solution

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. Fix: The examples used a stale model id.

The problem

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 verified fix

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

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