GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
1.[Création d'un client Mistral pour génération de texte](#client-mistral)
1.[Function calling](#function-calling)
1.[L'API d'Open Library](#api-open-library)
<aname="intro"/>
...
...
@@ -193,7 +194,9 @@ L'argument `tools` fait référence à une liste de dictionnaires, chaque dictio
Sur la base de cela, vous pouvez définir une fonction `get_openlibrary_data` et compléter l'assistant dans [`assistant_mistral_a_completer.py`](02_assistant_mistral/assistant_mistral_a_completer.py) pour répondre à la tâche décrite dans [*Tâche à faire* ci-dessus](#tache-a-faire).
## L'API d'Open Library
<aname="api-open-library"></a>
### L'API d'Open Library
Comme décrit sur leur [site](https://openlibrary.org), « Open Library est un catalogue de bibliothèque ouvert et modifiable, qui cherche à créer une page web pour chaque livre qui ait jamais été publié ». C'est une initiative de l'Internet Archive (qui gère aussi le Wayback Machine.
...
...
@@ -201,6 +204,4 @@ L'API d'Open Library permet de faire des recherches dans le catalogue. Les donn
Pour la documentation de l'API, voir https://openlibrary.org/dev/docs/api et plus concrètement l'API *Book Search* sur https://openlibrary.org/dev/docs/api/search, qui peut être utilisée pour la [tâche du TP](#tache-à-faire).
Les détails sont disponibles sur [https://openlibrary.org/dev/docs/api/search](https://openlibrary.org/dev/docs/api/search).