Skip to content

Magistral - handling of mistralai.models.thinkchunk.ThinkChunk #2713

@YanHorobtsov

Description

@YanHorobtsov

Initial Checks

Description

When using thinking mistral models, like "magistral-small-latest", pydantic crashes with:

AssertionError: Other data types like (Image, Reference) are not yet supported,  got <class 'mistralai.models.thinkchunk.ThinkChunk'>

Example Code

Python, Pydantic AI & LLM client version

Python 3.12.11
Pydantic 0.8.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions