feat(mistralai): upgrade to SDK v2#5163
Conversation
|
@Pauldevillers should we update the default models here for LLM to |
…om/Pauldevillers/agents into paul/feat/upgrade-mistralai-sdk-v2
|
Hi @davidzhao, will recommend to choose latest version of 8B model with |
…om/Pauldevillers/agents into paul/feat/upgrade-mistralai-sdk-v2
…ralai/llm.py devin Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| dependencies = [ | ||
| "livekit-agents>=1.5.0", | ||
| "mistralai>=1.9.11,<2.0.0", | ||
| "mistralai>=2.0.0,<3.0.0", |
There was a problem hiding this comment.
🔴 uv.lock not updated to match new mistralai >=2.0.0 dependency requirement
The pyproject.toml was updated to require mistralai>=2.0.0,<3.0.0, but the uv.lock file was not regenerated. The lock file still pins mistralai==1.12.4 (a v1.x release) and its metadata still shows specifier = ">=1.9.11,<2.0.0" (uv.lock:2584). Since the new code uses v2-specific import paths (mistralai.client, mistralai.client.models, mistralai.client.errors.sdkerror), anyone installing via uv sync (which is the project's standard installation method per AGENTS.md) will get v1.x, and the plugin will fail with ImportError at runtime.
Prompt for agents
Run `uv sync` (or `make install`) from the repository root to regenerate uv.lock with the updated mistralai>=2.0.0,<3.0.0 dependency. The lock file at uv.lock currently pins mistralai==1.12.4 with specifier >=1.9.11,<2.0.0, which is inconsistent with the pyproject.toml change at livekit-plugins/livekit-plugins-mistralai/pyproject.toml:26.
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
No runtime API changes. Reverses the v1 lock from #5116.
Test plan