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
*[list](docs/sdks/documents/README.md#list) - List document in a given library.
513
+
*[list](docs/sdks/documents/README.md#list) - List documents in a given library.
504
514
*[upload](docs/sdks/documents/README.md#upload) - Upload a new document.
505
515
*[get](docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
506
516
*[update](docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
@@ -597,7 +607,11 @@ with Mistral(
597
607
"tool_call_id": "<id>",
598
608
"result": "<value>",
599
609
},
600
-
], stream=True)
610
+
], stream=True, completion_args={
611
+
"response_format": {
612
+
"type": "text",
613
+
},
614
+
})
601
615
602
616
with res as event_stream:
603
617
for event in event_stream:
@@ -712,7 +726,7 @@ with Mistral(
712
726
res =None
713
727
try:
714
728
715
-
res = mistral.models.list()
729
+
res = mistral.models.retrieve(model_id="ft:open-mistral-7b:587a6b29:20240514:7e773925")
716
730
717
731
# Handle response
718
732
print(res)
@@ -746,7 +760,7 @@ with Mistral(
746
760
747
761
748
762
**Inherit from [`MistralError`](./src/mistralai/models/mistralerror.py)**:
749
-
*[`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 47 of 68 methods.*
763
+
*[`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 48 of 70 methods.*
750
764
*[`ResponseValidationError`](./src/mistralai/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
0 commit comments