Skip to content

Commit 93b9b7a

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.3 (#424)
* ## Python SDK Changes: * `mistral.beta.conversations.append_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.chat.complete()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.start()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.append()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.get_history()`: `response.entries[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.get_messages()`: `response.messages[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.restart()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.start_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.classifiers.classify_chat()`: * `request.input.union(InstructRequest).messages[].union(user).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.classifiers.moderate_chat()`: * `request.inputs.union(Array<>)[].union(tool).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.beta.conversations.restart_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.chat.stream()`: * `request.messages[].union(tool).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.fim.complete()`: `response.choices[].message.content.union(Array<ContentChunk>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.fim.stream()`: `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.agents.complete()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.agents.stream()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking ⚠️) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking ⚠️) * `mistral.models.list()`: `response.data[].union(base).capabilities` **Changed** * `mistral.models.retrieve()`: `response.union(base).capabilities` **Changed** * chore: align pyproject.toml and uv.lock to version 2.0.3 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: GitHub Action <action@github.com>
1 parent ed25660 commit 93b9b7a

File tree

290 files changed

+1946
-1381
lines changed

Some content is hidden

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

290 files changed

+1946
-1381
lines changed

.speakeasy/gen.lock

Lines changed: 582 additions & 582 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
@@ -31,7 +31,7 @@ generation:
3131
generateNewTests: false
3232
skipResponseBodyAssertions: false
3333
python:
34-
version: 2.0.2
34+
version: 2.0.3
3535
additionalDependencies:
3636
dev:
3737
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.729.0
1+
speakeasyVersion: 1.754.0
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
@@ -16,11 +16,10 @@ sources:
1616
- speakeasy-sdk-regen-1773084660
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
19-
sourceRevisionDigest: sha256:8e520bf6342e9820336a36b3b1f0308513c31f537579c630c1a48424d5f4caac
20-
sourceBlobDigest: sha256:1353b6824cfc37c4033c16d8c9d291ea06b123d7ee3e095936b2c93a31fefed0
19+
sourceRevisionDigest: sha256:430c8c8196f530e54f438a623547c32d06017080aac046b240edbaeff28a2ebd
20+
sourceBlobDigest: sha256:3fb3b90d358c986a52bbf12154853ba827cd614548d494c95569bedda3e57fe4
2121
tags:
2222
- latest
23-
- speakeasy-sdk-regen-1773407111
2423
targets:
2524
mistralai-azure-sdk:
2625
source: mistral-azure-source
@@ -39,10 +38,10 @@ targets:
3938
mistralai-sdk:
4039
source: mistral-openapi
4140
sourceNamespace: mistral-openapi
42-
sourceRevisionDigest: sha256:8e520bf6342e9820336a36b3b1f0308513c31f537579c630c1a48424d5f4caac
43-
sourceBlobDigest: sha256:1353b6824cfc37c4033c16d8c9d291ea06b123d7ee3e095936b2c93a31fefed0
41+
sourceRevisionDigest: sha256:430c8c8196f530e54f438a623547c32d06017080aac046b240edbaeff28a2ebd
42+
sourceBlobDigest: sha256:3fb3b90d358c986a52bbf12154853ba827cd614548d494c95569bedda3e57fe4
4443
codeSamplesNamespace: mistral-openapi-code-samples
45-
codeSamplesRevisionDigest: sha256:5e5b3cfb6d3b5e303545a9aebbaaf38e7dbb865000ca11e38232dcc659083d25
44+
codeSamplesRevisionDigest: sha256:966edb4cf55689daff001456afa27a7370113efcc5c0ba0896782f65b1e6fba5
4645
workflow:
4746
workflowVersion: 1.0.0
4847
speakeasyVersion: 1.729.0

README-PYPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ with Mistral(
683683
"tool_call_id": "<id>",
684684
"result": "<value>",
685685
},
686-
], stream=True, completion_args={
686+
], completion_args={
687687
"response_format": {
688688
"type": "text",
689689
},

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ with Mistral(
683683
"tool_call_id": "<id>",
684684
"result": "<value>",
685685
},
686-
], stream=True, completion_args={
686+
], completion_args={
687687
"response_format": {
688688
"type": "text",
689689
},

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,14 @@ Based on:
418418
### Generated
419419
- [python v2.0.2] .
420420
### Releases
421-
- [PyPI v2.0.2] https://pypi.org/project/mistralai/2.0.2 - .
421+
- [PyPI v2.0.2] https://pypi.org/project/mistralai/2.0.2 - .
422+
423+
## 2026-03-13 19:33:58
424+
### Changes
425+
Based on:
426+
- OpenAPI Doc
427+
- Speakeasy CLI 1.754.0 (2.862.0) https://github.com/speakeasy-api/speakeasy
428+
### Generated
429+
- [python v2.0.3] .
430+
### Releases
431+
- [PyPI v2.0.3] https://pypi.org/project/mistralai/2.0.3 - .

docs/models/apiendpoint.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# APIEndpoint
22

3+
## Example Usage
4+
5+
```python
6+
from mistralai.client.models import APIEndpoint
7+
8+
# Open enum: unrecognized values are captured as UnrecognizedStr
9+
value: APIEndpoint = "/v1/chat/completions"
10+
```
11+
312

413
## Values
514

6-
| Name | Value |
7-
| ------------------------------ | ------------------------------ |
8-
| `ROOT_V1_CHAT_COMPLETIONS` | /v1/chat/completions |
9-
| `ROOT_V1_EMBEDDINGS` | /v1/embeddings |
10-
| `ROOT_V1_FIM_COMPLETIONS` | /v1/fim/completions |
11-
| `ROOT_V1_MODERATIONS` | /v1/moderations |
12-
| `ROOT_V1_CHAT_MODERATIONS` | /v1/chat/moderations |
13-
| `ROOT_V1_OCR` | /v1/ocr |
14-
| `ROOT_V1_CLASSIFICATIONS` | /v1/classifications |
15-
| `ROOT_V1_CHAT_CLASSIFICATIONS` | /v1/chat/classifications |
16-
| `ROOT_V1_CONVERSATIONS` | /v1/conversations |
17-
| `ROOT_V1_AUDIO_TRANSCRIPTIONS` | /v1/audio/transcriptions |
15+
This is an open enum. Unrecognized values will not fail type checks.
16+
17+
- `"/v1/chat/completions"`
18+
- `"/v1/embeddings"`
19+
- `"/v1/fim/completions"`
20+
- `"/v1/moderations"`
21+
- `"/v1/chat/moderations"`
22+
- `"/v1/ocr"`
23+
- `"/v1/classifications"`
24+
- `"/v1/chat/classifications"`
25+
- `"/v1/conversations"`
26+
- `"/v1/audio/transcriptions"`

docs/models/audience.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
# Audience
22

3+
## Example Usage
4+
5+
```python
6+
from mistralai.client.models import Audience
7+
8+
# Open enum: unrecognized values are captured as UnrecognizedStr
9+
value: Audience = "user"
10+
```
11+
312

413
## Values
514

6-
| Name | Value |
7-
| ----------- | ----------- |
8-
| `USER` | user |
9-
| `ASSISTANT` | assistant |
15+
This is an open enum. Unrecognized values will not fail type checks.
16+
17+
- `"user"`
18+
- `"assistant"`

docs/models/audioencoding.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# AudioEncoding
22

3+
## Example Usage
4+
5+
```python
6+
from mistralai.client.models import AudioEncoding
7+
8+
# Open enum: unrecognized values are captured as UnrecognizedStr
9+
value: AudioEncoding = "pcm_s16le"
10+
```
11+
312

413
## Values
514

6-
| Name | Value |
7-
| ----------- | ----------- |
8-
| `PCM_S16LE` | pcm_s16le |
9-
| `PCM_S32LE` | pcm_s32le |
10-
| `PCM_F16LE` | pcm_f16le |
11-
| `PCM_F32LE` | pcm_f32le |
12-
| `PCM_MULAW` | pcm_mulaw |
13-
| `PCM_ALAW` | pcm_alaw |
15+
This is an open enum. Unrecognized values will not fail type checks.
16+
17+
- `"pcm_s16le"`
18+
- `"pcm_s32le"`
19+
- `"pcm_f16le"`
20+
- `"pcm_f32le"`
21+
- `"pcm_mulaw"`
22+
- `"pcm_alaw"`

docs/models/basemodelcard.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8-
| `id` | *str* | :heavy_check_mark: | N/A |
9-
| `object` | *Optional[str]* | :heavy_minus_sign: | N/A |
10-
| `created` | *Optional[int]* | :heavy_minus_sign: | N/A |
11-
| `owned_by` | *Optional[str]* | :heavy_minus_sign: | N/A |
12-
| `capabilities` | [models.ModelCapabilities](../models/modelcapabilities.md) | :heavy_check_mark: | N/A |
13-
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14-
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
15-
| `max_context_length` | *Optional[int]* | :heavy_minus_sign: | N/A |
16-
| `aliases` | List[*str*] | :heavy_minus_sign: | N/A |
17-
| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
18-
| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
19-
| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
20-
| `type` | *Literal["base"]* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | N/A |
9+
| `object` | *Optional[str]* | :heavy_minus_sign: | N/A |
10+
| `created` | *Optional[int]* | :heavy_minus_sign: | N/A |
11+
| `owned_by` | *Optional[str]* | :heavy_minus_sign: | N/A |
12+
| `capabilities` | [models.ModelCapabilities](../models/modelcapabilities.md) | :heavy_check_mark: | This is populated by Harmattan, but some fields have a name<br/>that we don't want to expose in the API. |
13+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14+
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
15+
| `max_context_length` | *Optional[int]* | :heavy_minus_sign: | N/A |
16+
| `aliases` | List[*str*] | :heavy_minus_sign: | N/A |
17+
| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
18+
| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
19+
| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
20+
| `type` | *Literal["base"]* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)