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
{{ message }}
Repository navigation
Commit c53dcfd
Browse filesBrowse the repository at this point in the historyBrowse files
*[get_auth_url](docs/sdks/connectors/README.md#get_auth_url) - Get the auth URL for a connector.
519
518
*[share](docs/sdks/connectors/README.md#share) - Share a private connector to the current workspace.
520
519
*[unshare](docs/sdks/connectors/README.md#unshare) - Unshare a connector from the current workspace.
521
-
*[activate_for_organization](docs/sdks/connectors/README.md#activate_for_organization) - Activate a connector for an organization.
522
-
*[deactivate_for_organization](docs/sdks/connectors/README.md#deactivate_for_organization) - Deactivate a connector for an organization.
523
-
*[activate_for_workspace](docs/sdks/connectors/README.md#activate_for_workspace) - Activate a connector for a workspace.
524
-
*[deactivate_for_workspace](docs/sdks/connectors/README.md#deactivate_for_workspace) - Deactivate a connector for a workspace.
525
-
*[activate_for_user](docs/sdks/connectors/README.md#activate_for_user) - Activate a connector for the current user.
526
-
*[deactivate_for_user](docs/sdks/connectors/README.md#deactivate_for_user) - Deactivate a connector for the current user.
520
+
*[activate_for_consumer](docs/sdks/connectors/README.md#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user).
521
+
*[deactivate_for_consumer](docs/sdks/connectors/README.md#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level).
*[list_records](docs/sdks/datasets/README.md#list_records) - List existing records in the dataset
618
-
*[create_record](docs/sdks/datasets/README.md#create_record) - Add a conversation to the dataset
619
-
*[import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with a campaign
620
-
*[import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with samples from the explorer
621
-
*[import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with samples from an uploaded file
622
-
*[import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with samples from the playground
623
-
*[import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with samples from another dataset
613
+
*[create_record](docs/sdks/datasets/README.md#create_record) - Add a record to the dataset
614
+
*[import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with records from a campaign
615
+
*[import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with records from the explorer
616
+
*[import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with records from an uploaded file
617
+
*[import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with records from playground conversations
618
+
*[import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with records from another dataset
624
619
*[export_to_jsonl](docs/sdks/datasets/README.md#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file
625
620
*[fetch_task](docs/sdks/datasets/README.md#fetch_task) - Get status of a dataset import task
626
621
*[list_tasks](docs/sdks/datasets/README.md#list_tasks) - List import tasks for the given dataset
<!-- End Server-sent event streaming [eventstream] -->
892
879
893
-
<!-- Start Json Streaming [jsonl] -->
894
-
## Json Streaming
895
-
896
-
Json Streaming ([jsonl][jsonl-format] / [x-ndjson][x-ndjson]) content type can be used to stream content from certain operations. These operations will expose the stream as [Generator][generator] that
897
-
can be consumed using a simple `for` loop. The loop will
898
-
terminate when the server no longer has any events to send and closes the
899
-
underlying connection.
900
-
901
-
The stream is also a [Context Manager][context-manager] and can be used with the `with` statement and will close the
902
-
underlying connection when the context is exited.
903
-
904
-
```python
905
-
from mistralai.client import Mistral
906
-
import os
907
-
908
-
909
-
with Mistral(
910
-
api_key=os.getenv("MISTRAL_API_KEY", ""),
911
-
) as mistral:
912
-
913
-
res = mistral.beta.rag.search_indexes.generate_index_summary(index_id="b0cfd77c-9cc3-46b6-ad70-1024386259b9", language="pl")
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
1097
-
*[`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 159 of 256 methods.*
1098
-
*[`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 256 methods.*
1049
+
*[`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 145 of 244 methods.*
1050
+
*[`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 59 of 244 methods.*
1099
1051
*[`ResponseValidationError`](./src/mistralai/client/errors/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