Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ModuleNotFoundError: No module named 'mistralai.models.chat_completion' #677

Open
WahahaZeng opened this issue Dec 20, 2024 · 0 comments

Comments

@WahahaZeng
Copy link

Describe the bug

Traceback (most recent call last):
File "/home/xyz/HarmBench/generate_completions.py", line 9, in
from api_models import api_models_map
File "/home/xyz/HarmBench/api_models.py", line 11, in
from mistralai.models.chat_completion import ChatMessage
ModuleNotFoundError: No module named 'mistralai.models.chat_completion'

The version is am using is the latest one
$ pip list |grep mistralai
mistralai 1.2.5

I also tried some old version like "mistralai==1.2.0", "mistralai==1.0.1", but the bug is still there

- OS: Linux
- Python version: 3.10.15

This bug was reported before in #640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant