-
-
Notifications
You must be signed in to change notification settings - Fork 999
bug: New Mistralai version 2.0.0 released 3h ago breaks instructor #2137
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't workingtype:regressionRegression from previous versionRegression from previous version
Description
- This is actually a bug report.
Describe the bug
New Mistralai version 2.0.0 released 3h ago breaks instructor:
File "/home/runner/work/.venv/lib/python3.10/site-packages/instructor/providers/init.py", line 55, in
from .mistral.client import from_mistral # noqa: F401
File "/home/runner/work/.venv/lib/python3.10/site-packages/instructor/providers/mistral/client.py", line 5, in
from mistralai import Mistral
ImportError: cannot import name 'Mistral' from 'mistralai' (unknown location)
Mistralai seems to have changed their import. from mistralai import Mistral is no longer valid. This causes instructor not to work for other providers as well if mistral is installed.
To Reproduce
Install latest mistralai version 2.0.0 and try using instructor 1.14.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtype:regressionRegression from previous versionRegression from previous version