Find answers from the community

Updated last year

Question:

At a glance

A community member is experiencing an error with the llama-index mistral module while writing llm.chat(ChatMessage(role="system", content="You are CEO of MistralAI."), ChatMessage(role="user", content="Tell me the story about La plateforme")). Another community member suggests that the issue might be related to the pydantic version and recommends upgrading it. The community member running the code in a Colab notebook confirms that the suggested solution of upgrading pydantic works.

Question:

I am getting an error for the llama-index mistral module

I am writing
llm.chat(ChatMessage(role="system", content="You are CEO of MistralAI."),
ChatMessage(role="user", content="Tell me the story about La plateforme"))
Attachment
image.png
L
S
3 comments
what is your pydantic version? You might have to upgrade?
I am running this in colab notebook
Yea that's ok

!pip install --upgrade pydantic
Add a reply
Sign up and join the conversation on Discord