Skip to content

Commit 01e7b82

Browse files
github-actions[bot]speakeasybotjean-malo
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [v1] 1.12.3 (#353)
* ## Python SDK Changes: * `mistral.fine-tuning.jobs.create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `mistral.models.update()`: `response` **Changed** **Breaking** ⚠️ * `mistral.models.archive()`: `response.object` **Changed** **Breaking** ⚠️ * `mistral.models.unarchive()`: `response.object` **Changed** **Breaking** ⚠️ * `mistral.batch.jobs.cancel()`: `response.object` **Changed** **Breaking** ⚠️ * `mistral.batch.jobs.get()`: `response.object` **Changed** **Breaking** ⚠️ * `mistral.batch.jobs.create()`: `response.object` **Changed** **Breaking** ⚠️ * `mistral.batch.jobs.list()`: * `request.order_by` **Added** * `response` **Changed** **Breaking** ⚠️ * `mistral.fine-tuning.jobs.start()`: `response` **Changed** **Breaking** ⚠️ * `mistral.fine-tuning.jobs.cancel()`: `response` **Changed** **Breaking** ⚠️ * `mistral.fine-tuning.jobs.get()`: `response` **Changed** **Breaking** ⚠️ * `mistral.fine-tuning.jobs.list()`: `response` **Changed** **Breaking** ⚠️ * `mistral.beta.agents.list()`: * `request.search` **Added** * `response.[].version_message` **Added** * `mistral.beta.agents.get_version()`: `response.version_message` **Added** * `mistral.beta.agents.list_versions()`: `response.[].version_message` **Added** * `mistral.beta.agents.update_version()`: `response.version_message` **Added** * `mistral.beta.agents.update()`: * `request.version_message` **Added** * `response.version_message` **Added** * `mistral.beta.agents.get()`: `response.version_message` **Added** * `mistral.beta.agents.delete_version_alias()`: **Added** * `mistral.beta.agents.create()`: * `request.version_message` **Added** * `response.version_message` **Added** * ci * fix: run on v1 * feat(ci): add manual confirmation for v2 SDK publishing This change introduces a workflow modification that requires manual confirmation before publishing the v2 SDK (mistralai.client namespace), which is still in WIP/alpha status. The workflow now also auto-publishes from the v1 branch without requiring manual confirmation. This ensures that only intentional publishing of the v2 SDK occurs while maintaining automated publishing for the stable v1 SDK. * feat(realtime): add support for target streaming delay in realtime transcription This commit introduces the ability to specify a target streaming delay in milliseconds for realtime transcription sessions. The feature is implemented across the library and examples, allowing users to control the latency between audio input and transcription output. The changes include: - Adding a new parameter to the `transcribe_stream` method and related functions - Updating the RealtimeConnection class to handle streaming delay updates - Modifying the example scripts to demonstrate dual-delay transcription - Adding proper type hints and documentation for the new functionality The feature is backward compatible, maintaining existing behavior when no delay is specified. --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: jean-malo <jm@mistral.ai>
1 parent 2ca81d4 commit 01e7b82

File tree

96 files changed

+1442
-799
lines changed

Some content is hidden

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

96 files changed

+1442
-799
lines changed

β€Ž.github/workflows/run_example_scripts.yamlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
branches:
99
- main
10+
- v1
1011

1112
jobs:
1213
run_examples:

β€Ž.github/workflows/sdk_publish_mistralai_sdk.yamlβ€Ž

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@ permissions:
66
statuses: write
77
"on":
88
workflow_dispatch:
9+
inputs:
10+
confirm_publish:
11+
description: 'WARNING: This will publish v2 SDK (mistralai.client namespace) which is still WIP/alpha. To publish v1 (mistralai namespace), use the v1 branch instead. Type "publish" to confirm.'
12+
required: false
13+
type: string
914
push:
1015
branches:
11-
- main
16+
- v1
1217
paths:
1318
- RELEASES.md
1419
- "*/RELEASES.md"
1520
jobs:
1621
publish:
22+
# Auto-publish from v1 branch; require manual confirmation from main
23+
if: |
24+
github.ref == 'refs/heads/v1' ||
25+
(github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_publish == 'publish')
1726
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@7951d9dce457425b900b2dd317253499d98c2587 # v15
1827
secrets:
1928
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2029
pypi_token: ${{ secrets.PYPI_TOKEN }}
21-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
30+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 148 additions & 212 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
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: false
2727
skipResponseBodyAssertions: false
2828
python:
29-
version: 1.12.2
29+
version: 1.12.3
3030
additionalDependencies:
3131
dev:
3232
pytest: ^8.2.2

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:4e49849eba5334a3fe4a3d081baa9afdecd8f41dfc4c2a5115bc19ead4d92d13
18-
sourceBlobDigest: sha256:3ab3c61ac6a4e9fab37d924d516838ca27dd7e57a1b5e9059d4db2ef29efec56
17+
sourceRevisionDigest: sha256:68e24d172497384492f80cf1ec23b4fc8ad59fa199d511ef160a0fbc64aa0647
18+
sourceBlobDigest: sha256:de8480a3fb194b27118816d5960d922d9ee87d35c00768fa64086bf232c8cef7
1919
tags:
2020
- latest
21+
- speakeasy-sdk-regen-v1-1771338985
2122
targets:
2223
mistralai-azure-sdk:
2324
source: mistral-azure-source
@@ -36,10 +37,10 @@ targets:
3637
mistralai-sdk:
3738
source: mistral-openapi
3839
sourceNamespace: mistral-openapi
39-
sourceRevisionDigest: sha256:4e49849eba5334a3fe4a3d081baa9afdecd8f41dfc4c2a5115bc19ead4d92d13
40-
sourceBlobDigest: sha256:3ab3c61ac6a4e9fab37d924d516838ca27dd7e57a1b5e9059d4db2ef29efec56
40+
sourceRevisionDigest: sha256:68e24d172497384492f80cf1ec23b4fc8ad59fa199d511ef160a0fbc64aa0647
41+
sourceBlobDigest: sha256:de8480a3fb194b27118816d5960d922d9ee87d35c00768fa64086bf232c8cef7
4142
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:683d30c7914996145aed198cc36b086810a2a6f24347214a30dccabf3bd1de0e
43+
codeSamplesRevisionDigest: sha256:017e32d4895b127fb81874746a264c38fb6e7f9afb57f482416bbc9be1208501
4344
workflow:
4445
workflowVersion: 1.0.0
4546
speakeasyVersion: 1.685.0

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
477477
* [get_version](docs/sdks/mistralagents/README.md#get_version) - Retrieve a specific version of an agent.
478478
* [create_version_alias](docs/sdks/mistralagents/README.md#create_version_alias) - Create or update an agent version alias.
479479
* [list_version_aliases](docs/sdks/mistralagents/README.md#list_version_aliases) - List all aliases for an agent.
480+
* [delete_version_alias](docs/sdks/mistralagents/README.md#delete_version_alias) - Delete an agent version alias.
480481

481482
### [Beta.Conversations](docs/sdks/conversations/README.md)
482483

@@ -754,7 +755,7 @@ with Mistral(
754755

755756

756757
**Inherit from [`MistralError`](./src/mistralai/models/mistralerror.py)**:
757-
* [`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 52 of 74 methods.*
758+
* [`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 53 of 75 methods.*
758759
* [`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.
759760

760761
</details>

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,4 +388,14 @@ Based on:
388388
### Generated
389389
- [python v1.12.2] .
390390
### Releases
391-
- [PyPI v1.12.2] https://pypi.org/project/mistralai/1.12.2 - .
391+
- [PyPI v1.12.2] https://pypi.org/project/mistralai/1.12.2 - .
392+
393+
## 2026-02-17 14:44:43
394+
### Changes
395+
Based on:
396+
- OpenAPI Doc
397+
- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
398+
### Generated
399+
- [python v1.12.3] .
400+
### Releases
401+
- [PyPI v1.12.3] https://pypi.org/project/mistralai/1.12.3 - .

β€Ždocs/models/agent.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
2121
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
2222
| `deployment_chat` | *bool* | :heavy_check_mark: | N/A |
23-
| `source` | *str* | :heavy_check_mark: | N/A |
23+
| `source` | *str* | :heavy_check_mark: | N/A |
24+
| `version_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |

β€Ždocs/models/agentcreationrequest.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
| `name` | *str* | :heavy_check_mark: | N/A |
1313
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1414
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
15-
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
15+
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
16+
| `version_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# AgentsAPIV1AgentsDeleteAliasRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `agent_id` | *str* | :heavy_check_mark: | N/A |
9+
| `alias` | *str* | :heavy_check_mark: | N/A |

0 commit comments

Comments
Β (0)