You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo
42
42
*[Server Selection](#server-selection)
43
43
*[Custom HTTP Client](#custom-http-client)
44
44
*[Authentication](#authentication)
45
+
*[Resource Management](#resource-management)
45
46
*[Debugging](#debugging)
46
47
*[IDE Support](#ide-support)
47
48
*[Development](#development)
@@ -52,6 +53,11 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo
52
53
<!-- Start SDK Installation [installation] -->
53
54
## SDK Installation
54
55
56
+
> [!NOTE]
57
+
> **Python version upgrade policy**
58
+
>
59
+
> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
60
+
55
61
The SDK can be installed with either *pip* or *poetry* package managers.
The `Mistral` class implements the context manager protocol and registers a finalizer function to close the underlying sync and async HTTPX clients it uses under the hood. This will close HTTP connections, release memory and free up other resources held by the SDK. In short-lived Python programs and notebooks that make a few SDK method calls, resource management may not be a concern. However, in longer-lived programs, it is beneficial to create a single SDK instance via a [context manager][context-manager] and reuse it across the application.
0 commit comments