Skip to content

Commit 59545ee

Browse files
feat: regenerate SDK with schema renames
- Apply x-mistral-sdk-name renames from dashboard PR #18251 - Change constFieldCasing to normal (aligns with v1 branch PR #361)
1 parent 8490078 commit 59545ee

274 files changed

Lines changed: 2646 additions & 1976 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 434 additions & 451 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
python:
32-
version: 2.0.0a3
32+
version: 2.0.0-a5
3333
additionalDependencies:
3434
dev:
3535
pytest: ^8.2.2
@@ -42,7 +42,7 @@ python:
4242
- Mistral
4343
baseErrorName: MistralError
4444
clientServerStatusCodesAsErrors: true
45-
constFieldCasing: upper
45+
constFieldCasing: normal
4646
defaultErrorName: SDKError
4747
description: Python Client SDK for the Mistral AI API.
4848
enableCustomCodeRegions: true

.speakeasy/workflow.lock

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,42 @@ speakeasyVersion: 1.685.0
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
5-
sourceRevisionDigest: sha256:d303e640ad565cc8a9801519b20dc7eab226efdfdab951c11256962d9e479f74
6-
sourceBlobDigest: sha256:6e4c789de61b2c9c604bf581e0abbadae90e360491d95ec4247678f4f70cee87
5+
sourceRevisionDigest: sha256:afbd5d558293713b45fb44b75291c75ebac49e8a34130432a1979842651b0de1
6+
sourceBlobDigest: sha256:02d98c0b158e63f9e80177520d24abdb42552703dd96c6485ec8e8ed2da0716c
77
tags:
88
- latest
99
mistral-google-cloud-source:
1010
sourceNamespace: mistral-openapi-google-cloud
11-
sourceRevisionDigest: sha256:351c4d392b8b2220c337a207e98ed5665ed27fd85de854871a70c4bc2b9c0784
12-
sourceBlobDigest: sha256:d79b21f70efb93b0cd261d2044939a288beaf8707a7caae86aca5c4d5de3821b
11+
sourceRevisionDigest: sha256:71eee9c9e0aa538b0334c2cb399406b014dc95acd0fb2483ae310089dc51e028
12+
sourceBlobDigest: sha256:04333ba9d94b1cafe97ee16b4fc29e2516b1cb49ca5ca4212c86d1f51ffa308e
1313
tags:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624
18-
sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2
17+
sourceRevisionDigest: sha256:b2ef1cd4a58a37896758d15d59e744f2a0ab1baa18e7fc91edcf345702a47958
18+
sourceBlobDigest: sha256:e2578a9ae97fbbfb9964ed03d3533dd5d7a553a06cd15041c30607972d80d2c4
1919
tags:
2020
- latest
2121
targets:
2222
mistralai-azure-sdk:
2323
source: mistral-azure-source
2424
sourceNamespace: mistral-openapi-azure
25-
sourceRevisionDigest: sha256:d303e640ad565cc8a9801519b20dc7eab226efdfdab951c11256962d9e479f74
26-
sourceBlobDigest: sha256:6e4c789de61b2c9c604bf581e0abbadae90e360491d95ec4247678f4f70cee87
25+
sourceRevisionDigest: sha256:afbd5d558293713b45fb44b75291c75ebac49e8a34130432a1979842651b0de1
26+
sourceBlobDigest: sha256:02d98c0b158e63f9e80177520d24abdb42552703dd96c6485ec8e8ed2da0716c
2727
codeSamplesNamespace: mistral-openapi-azure-code-samples
28-
codeSamplesRevisionDigest: sha256:0109302b87fa17b0103ef1e372fae76356811b3c552103e659bd5373d537d759
28+
codeSamplesRevisionDigest: sha256:cd231c9171f857c7babb76fecf8ac7b87faede807fd12e32350beacb6f4fb7d7
2929
mistralai-gcp-sdk:
3030
source: mistral-google-cloud-source
3131
sourceNamespace: mistral-openapi-google-cloud
32-
sourceRevisionDigest: sha256:351c4d392b8b2220c337a207e98ed5665ed27fd85de854871a70c4bc2b9c0784
33-
sourceBlobDigest: sha256:d79b21f70efb93b0cd261d2044939a288beaf8707a7caae86aca5c4d5de3821b
32+
sourceRevisionDigest: sha256:71eee9c9e0aa538b0334c2cb399406b014dc95acd0fb2483ae310089dc51e028
33+
sourceBlobDigest: sha256:04333ba9d94b1cafe97ee16b4fc29e2516b1cb49ca5ca4212c86d1f51ffa308e
3434
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
35-
codeSamplesRevisionDigest: sha256:09bb7cbf291076170d228116db05d1c9606af541b301b6564609c4d76633258a
35+
codeSamplesRevisionDigest: sha256:92a9c44223b59807d2946a3d0f323a9cd1d37eb071af0a1fc8ed9413524a623b
3636
mistralai-sdk:
3737
source: mistral-openapi
3838
sourceNamespace: mistral-openapi
39-
sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624
40-
sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2
41-
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:f37fb6188ad25957bef4cadaa03f454a4f9ab0c045db633a46d9cc89af145ba2
39+
sourceRevisionDigest: sha256:b2ef1cd4a58a37896758d15d59e744f2a0ab1baa18e7fc91edcf345702a47958
40+
sourceBlobDigest: sha256:e2578a9ae97fbbfb9964ed03d3533dd5d7a553a06cd15041c30607972d80d2c4
4341
workflow:
4442
workflowVersion: 1.0.0
4543
speakeasyVersion: 1.685.0

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ $ source ~/.zshenv
2727
<!-- Start Summary [summary] -->
2828
## Summary
2929

30-
Mistral AI API: Dora OpenAPI schema
31-
32-
Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
30+
Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
3331
<!-- End Summary [summary] -->
3432

3533
<!-- Start Table of Contents [toc] -->
@@ -161,8 +159,8 @@ with Mistral(
161159

162160
res = mistral.chat.complete(model="mistral-large-latest", messages=[
163161
{
164-
"content": "Who is the best French painter? Answer in one short sentence.",
165162
"role": "user",
163+
"content": "Who is the best French painter? Answer in one short sentence.",
166164
},
167165
], stream=False, response_format={
168166
"type": "text",
@@ -190,8 +188,8 @@ async def main():
190188

191189
res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
192190
{
193-
"content": "Who is the best French painter? Answer in one short sentence.",
194191
"role": "user",
192+
"content": "Who is the best French painter? Answer in one short sentence.",
195193
},
196194
], stream=False, response_format={
197195
"type": "text",
@@ -269,8 +267,8 @@ with Mistral(
269267

270268
res = mistral.agents.complete(messages=[
271269
{
272-
"content": "Who is the best French painter? Answer in one short sentence.",
273270
"role": "user",
271+
"content": "Who is the best French painter? Answer in one short sentence.",
274272
},
275273
], agent_id="<id>", stream=False, response_format={
276274
"type": "text",
@@ -298,8 +296,8 @@ async def main():
298296

299297
res = await mistral.agents.complete_async(messages=[
300298
{
301-
"content": "Who is the best French painter? Answer in one short sentence.",
302299
"role": "user",
300+
"content": "Who is the best French painter? Answer in one short sentence.",
303301
},
304302
], agent_id="<id>", stream=False, response_format={
305303
"type": "text",

USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ with Mistral(
1515

1616
res = mistral.chat.complete(model="mistral-large-latest", messages=[
1717
{
18-
"content": "Who is the best French painter? Answer in one short sentence.",
1918
"role": "user",
19+
"content": "Who is the best French painter? Answer in one short sentence.",
2020
},
2121
], stream=False, response_format={
2222
"type": "text",
@@ -44,8 +44,8 @@ async def main():
4444

4545
res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
4646
{
47-
"content": "Who is the best French painter? Answer in one short sentence.",
4847
"role": "user",
48+
"content": "Who is the best French painter? Answer in one short sentence.",
4949
},
5050
], stream=False, response_format={
5151
"type": "text",
@@ -123,8 +123,8 @@ with Mistral(
123123

124124
res = mistral.agents.complete(messages=[
125125
{
126-
"content": "Who is the best French painter? Answer in one short sentence.",
127126
"role": "user",
127+
"content": "Who is the best French painter? Answer in one short sentence.",
128128
},
129129
], agent_id="<id>", stream=False, response_format={
130130
"type": "text",
@@ -152,8 +152,8 @@ async def main():
152152

153153
res = await mistral.agents.complete_async(messages=[
154154
{
155-
"content": "Who is the best French painter? Answer in one short sentence.",
156155
"role": "user",
156+
"content": "Who is the best French painter? Answer in one short sentence.",
157157
},
158158
], agent_id="<id>", stream=False, response_format={
159159
"type": "text",

docs/models/agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1414
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
1515
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
16-
| `object` | [Optional[models.AgentObject]](../models/agentobject.md) | :heavy_minus_sign: | N/A |
16+
| `object` | *Optional[Literal["agent"]]* | :heavy_minus_sign: | N/A |
1717
| `id` | *str* | :heavy_check_mark: | N/A |
1818
| `version` | *int* | :heavy_check_mark: | N/A |
1919
| `versions` | List[*int*] | :heavy_check_mark: | N/A |

docs/models/agentconversation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. |
99
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. |
1010
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Custom metadata for the conversation. |
11-
| `object` | [Optional[models.AgentConversationObject]](../models/agentconversationobject.md) | :heavy_minus_sign: | N/A |
11+
| `object` | *Optional[Literal["conversation"]]* | :heavy_minus_sign: | N/A |
1212
| `id` | *str* | :heavy_check_mark: | N/A |
1313
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
1414
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |

docs/models/agentconversationobject.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)