Skip to content

429 (Requests rate limit exceeded) status code from Mistral API are not handled anywhere #1885

@TypeHintsFun

Description

@TypeHintsFun

Initial Checks

Description

429 (Requests rate limit exceeded) status code from Mistral API are not handled anywhere, what makes it quite problematic to use it

pydantic_ai just throws arror like this:
pydantic_ai.exceptions.ModelHTTPError: status_code: 429, model_name: mistral-medium-latest, body: {"message":"Requests rate limit exceeded"}

Python, Pydantic AI & LLM client version

python 3.12.8, pydantic_ai 0.2.12, mistralai 1.81

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions