mistralai / client-python

Python client library for Mistral AI platform
Apache License 2.0
468 stars 97 forks source link

feat: add warning log when targeting a model planned for deprecation #111

Closed GaspardBT closed 3 months ago

GaspardBT commented 3 months ago

This PR implements the following: now the client will leverage the x-model-deprecation-timestamp header (only appear if a model deprecation is planned) to log a warning about the deprecation, the warning log includes the model name and timestamp of deprecation.