Skip to content

Commit eee98b9

Browse files
github-actions[bot]speakeasybotactions-useranth2o
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.3.0 (#469)
* ## Python SDK Changes: * `mistral.models.list()`: `response.data[].union(fine-tuned).job` **Changed** (Breaking ⚠️) * `mistral.models.retrieve()`: `response.union(fine-tuned).job` **Changed** (Breaking ⚠️) * `mistral.chat.complete()`: * `request` **Changed** (Breaking ⚠️) * `response.choices[].message.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.chat.stream()`: * `request` **Changed** (Breaking ⚠️) * `response.[].data.choices[].delta.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.fim.complete()`: `response.choices[].message.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.fim.stream()`: `response.[].data.choices[].delta.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.workflows.get_workflow_registration()`: `response.workflow_registration` **Changed** (Breaking ⚠️) * `mistral.workflows.execute_workflow_registration()`: `request.input` **Changed** (Breaking ⚠️) * `mistral.workflows.execute_workflow()`: `request.input` **Changed** (Breaking ⚠️) * `mistral.workflows.get_workflow_registrations()`: `response.workflow_registrations[]` **Changed** (Breaking ⚠️) * `mistral.classifiers.classify_chat()`: * `request.input.union(InstructRequest).messages[].union(assistant).tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.classifiers.moderate_chat()`: * `request.inputs.union(Array<>)[].union(assistant).tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.agents.stream()`: * `request` **Changed** (Breaking ⚠️) * `response.[].data.choices[].delta.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.agents.complete()`: * `request` **Changed** (Breaking ⚠️) * `response.choices[].message.tool_calls[].type` **Changed** (Breaking ⚠️) * `mistral.beta.observability.datasets.list()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.import_from_explorer()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.list()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.fetch()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.delete()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.update()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.judge_conversation()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.create()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.list()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.fetch()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.delete()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.fetch_status()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.campaigns.list_events()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.create()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.fields.fetch_option_counts()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.fetch()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.delete()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.update()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.list_records()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.create_record()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.import_from_campaign()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.judges.create()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.import_from_file()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.import_from_playground()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.import_from_dataset_records()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.export_to_jsonl()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.fetch_task()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.list_tasks()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.records.fetch()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.records.delete()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.fields.fetch_options()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.fields.list()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.judge()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.fetch_similar_events()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.fetch()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.search_ids()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.chat_completion_events.search()`: `error.detail.error_code` **Changed** * `mistral.workflows.workers.whoami()`: **Removed** (Breaking ⚠️) * `mistral.beta.observability.datasets.records.bulk_delete()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.records.judge()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.records.update_payload()`: `error.detail.error_code` **Changed** * `mistral.beta.observability.datasets.records.update_properties()`: `error.detail.error_code` **Changed** * chore: align pyproject.toml and uv.lock to version 2.3.0 * custom code: change type hinting execute_workflow_and_wait to handle pydantic BaseModel * fix(mypy): changed type hinting of tools --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Antoine Hoorelbeke <antoine.hoorelbeke@mistral.ai>
1 parent 77a33ed commit eee98b9

File tree

90 files changed

+1851
-678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1851
-678
lines changed

.speakeasy/gen.lock

Lines changed: 172 additions & 178 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: false
3333
skipResponseBodyAssertions: false
3434
python:
35-
version: 2.2.0
35+
version: 2.3.0
3636
additionalDependencies:
3737
dev:
3838
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.754.0
1+
speakeasyVersion: 1.761.1
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
@@ -16,8 +16,8 @@ sources:
1616
- speakeasy-sdk-regen-1773084660
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
19-
sourceRevisionDigest: sha256:8a9e51d8532d887897d3335b416422973f6d1adb687a88dc288bfb51e1fdacdf
20-
sourceBlobDigest: sha256:ad19d950e5564f613ce71b9b0b98eadf76609f0ff96db0e083b20c8190c718e3
19+
sourceRevisionDigest: sha256:81c5da3669badf36ebd872b50b44e946d9d55546c163e7973ecf7e75d0ed46b3
20+
sourceBlobDigest: sha256:ffca608665624fae7a884937d899788f639e36ac5b9c94d09e3acc5d6512f78a
2121
tags:
2222
- latest
2323
targets:
@@ -38,13 +38,13 @@ targets:
3838
mistralai-sdk:
3939
source: mistral-openapi
4040
sourceNamespace: mistral-openapi
41-
sourceRevisionDigest: sha256:8a9e51d8532d887897d3335b416422973f6d1adb687a88dc288bfb51e1fdacdf
42-
sourceBlobDigest: sha256:ad19d950e5564f613ce71b9b0b98eadf76609f0ff96db0e083b20c8190c718e3
41+
sourceRevisionDigest: sha256:81c5da3669badf36ebd872b50b44e946d9d55546c163e7973ecf7e75d0ed46b3
42+
sourceBlobDigest: sha256:ffca608665624fae7a884937d899788f639e36ac5b9c94d09e3acc5d6512f78a
4343
codeSamplesNamespace: mistral-openapi-code-samples
44-
codeSamplesRevisionDigest: sha256:87ec31b36ce736c3f60cce2c11b8192bb5617b5ce9d881aadc0cf4a86563173c
44+
codeSamplesRevisionDigest: sha256:11e9928b89f856d16bd543b0eaa760ce88344fce7366df646847b9f3533bc4c7
4545
workflow:
4646
workflowVersion: 1.0.0
47-
speakeasyVersion: 1.754.0
47+
speakeasyVersion: 1.761.1
4848
sources:
4949
mistral-azure-source:
5050
inputs:

README-PYPI.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,6 @@ print(res.choices[0].message.content)
730730
* [schedule_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/schedules/README.md#schedule_workflow) - Schedule Workflow
731731
* [unschedule_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/schedules/README.md#unschedule_workflow) - Unschedule Workflow
732732

733-
#### [Workflows.Workers](https://github.com/mistralai/client-python/blob/main/docs/sdks/workers/README.md)
734-
735-
* [whoami](https://github.com/mistralai/client-python/blob/main/docs/sdks/workers/README.md#whoami) - Get Worker Info
736-
737733
</details>
738734
<!-- End Available Resources and Operations [operations] -->
739735

@@ -944,8 +940,8 @@ with Mistral(
944940

945941

946942
**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**:
947-
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 103 of 169 methods.*
948-
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 169 methods.*
943+
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 103 of 168 methods.*
944+
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 168 methods.*
949945
* [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/main/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.
950946

951947
</details>

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,6 @@ print(res.choices[0].message.content)
730730
* [schedule_workflow](docs/sdks/schedules/README.md#schedule_workflow) - Schedule Workflow
731731
* [unschedule_workflow](docs/sdks/schedules/README.md#unschedule_workflow) - Unschedule Workflow
732732

733-
#### [Workflows.Workers](docs/sdks/workers/README.md)
734-
735-
* [whoami](docs/sdks/workers/README.md#whoami) - Get Worker Info
736-
737733
</details>
738734
<!-- End Available Resources and Operations [operations] -->
739735

@@ -944,8 +940,8 @@ with Mistral(
944940

945941

946942
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
947-
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 103 of 169 methods.*
948-
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 169 methods.*
943+
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 103 of 168 methods.*
944+
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 168 methods.*
949945
* [`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.
950946

951947
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,4 +528,14 @@ Based on:
528528
### Generated
529529
- [python v2.2.0] .
530530
### Releases
531-
- [PyPI v2.2.0] https://pypi.org/project/mistralai/2.2.0 - .
531+
- [PyPI v2.2.0] https://pypi.org/project/mistralai/2.2.0 - .
532+
533+
## 2026-04-03 12:19:06
534+
### Changes
535+
Based on:
536+
- OpenAPI Doc
537+
- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy
538+
### Generated
539+
- [python v2.3.0] .
540+
### Releases
541+
- [PyPI v2.3.0] https://pypi.org/project/mistralai/2.3.0 - .

0 commit comments

Comments
 (0)