Skip to content

Commit 0803fb3

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - Generate MISTRAL-PYTHON-SDK-GOOGLE-CLOUD MISTRALAI-GCP-SDK 2.0.0 (#410)
* ## Python SDK Changes: * `mistral_gcp.chat.stream()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ToolReferenceChunk)` **Added** * `error.detail[]` **Changed** * `mistral_gcp.chat.complete()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ToolReferenceChunk)` **Added** * `error.detail[]` **Changed** * `mistral_gcp.fim.stream()`: `error.detail[]` **Changed** * `mistral_gcp.fim.complete()`: `error.detail[]` **Changed** * chore: align GCP pyproject.toml and uv.lock to version 2.0.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: GitHub Action <action@github.com>
1 parent 7a6c927 commit 0803fb3

File tree

18 files changed

+290
-44
lines changed

18 files changed

+290
-44
lines changed

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ sources:
99
- speakeasy-sdk-regen-1772457322
1010
mistral-google-cloud-source:
1111
sourceNamespace: mistral-openapi-google-cloud
12-
sourceRevisionDigest: sha256:b2ffad81388f92b1018cb5fe2d409920d795a4b9cd18d8d4147d06b6e53585eb
13-
sourceBlobDigest: sha256:9fbc256371243c39284852f9c44ea59244205fe4265fddf867903d3eb60f17fd
12+
sourceRevisionDigest: sha256:b2406e82ec4ce411afc0c307d5a037c7737388bcc696bbb41884fe54e22831c9
13+
sourceBlobDigest: sha256:795c0e010501e770b07cd28f1d0253cdb8f1419381e828b26575fdf149c022da
1414
tags:
1515
- latest
16-
- speakeasy-sdk-regen-1772455561
16+
- speakeasy-sdk-regen-1773084660
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
1919
sourceRevisionDigest: sha256:640293da26384ecedd813123997d7946815084924b8cbd91069aea0829d28b53
@@ -32,10 +32,10 @@ targets:
3232
mistralai-gcp-sdk:
3333
source: mistral-google-cloud-source
3434
sourceNamespace: mistral-openapi-google-cloud
35-
sourceRevisionDigest: sha256:b2ffad81388f92b1018cb5fe2d409920d795a4b9cd18d8d4147d06b6e53585eb
36-
sourceBlobDigest: sha256:9fbc256371243c39284852f9c44ea59244205fe4265fddf867903d3eb60f17fd
35+
sourceRevisionDigest: sha256:b2406e82ec4ce411afc0c307d5a037c7737388bcc696bbb41884fe54e22831c9
36+
sourceBlobDigest: sha256:795c0e010501e770b07cd28f1d0253cdb8f1419381e828b26575fdf149c022da
3737
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
38-
codeSamplesRevisionDigest: sha256:79c3a6d89d6c6f01f0400a619531f4f1cf18875754ff488558c337535fd83ce9
38+
codeSamplesRevisionDigest: sha256:c5a968a0454378d7f03ace500b309c0c709ea0b88d79700091d9ca7ea82c55a2
3939
mistralai-sdk:
4040
source: mistral-openapi
4141
sourceNamespace: mistral-openapi

packages/gcp/.speakeasy/gen.lock

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: ec60f2d8-7869-45c1-918e-773d41a8cf74
33
management:
4-
docChecksum: 58bc2dcdd83a2b7c4856971baa20641b
4+
docChecksum: 6f32cd54fc5f3d2a609ff3933cbf34b8
55
docVersion: 1.0.0
66
speakeasyVersion: 1.729.0
77
generationVersion: 2.841.0
8-
releaseVersion: 2.0.0rc1
9-
configChecksum: 5b0554f4a04c849bc6f376bec69654aa
8+
releaseVersion: 2.0.0
9+
configChecksum: d208fbfc438189901f0d6546484d5f26
1010
repoURL: https://github.com/mistralai/client-python.git
1111
repoSubDirectory: packages/gcp
1212
installationURL: https://github.com/mistralai/client-python.git#subdirectory=packages/gcp
1313
published: true
1414
persistentEdits:
15-
generation_id: 724d8b32-d30d-4743-9e65-0bd450961ed2
16-
pristine_commit_hash: 7ef9f2e9ed9ed33b6f502afc01b1354bd0c499d1
17-
pristine_tree_hash: 19a1b62b3168a95e58538e2da4215028949b1ba2
15+
generation_id: 4c7dd269-a55c-4b55-a90a-e8fec97c6b98
16+
pristine_commit_hash: 81f2700802a475a353aad9d56a4a9845f061ce74
17+
pristine_tree_hash: 0984d2a0c850ed3ed1b0ca1e96672c03a46be7d5
1818
features:
1919
python:
2020
additionalDependencies: 1.0.0
@@ -68,6 +68,10 @@ trackedFiles:
6868
id: 9f1795bbe642
6969
last_write_checksum: sha1:1ce4066623a8d62d969e5ed3a088d73a9ba26643
7070
pristine_git_object: 047b7cf95f4db203bf2c501680b73ca0562a122d
71+
docs/models/builtinconnectors.md:
72+
id: 9d14e972f08a
73+
last_write_checksum: sha1:1f32eb515e32c58685d0bdc15de09656194c508c
74+
pristine_git_object: f96f50444aaa23ca291db2fd0dc69db0d9d149d9
7175
docs/models/chatcompletionchoice.md:
7276
id: 0d15c59ab501
7377
last_write_checksum: sha1:a6274a39a4239e054816d08517bf8507cb5c4564
@@ -132,6 +136,10 @@ trackedFiles:
132136
id: d2d3a32080cd
133137
last_write_checksum: sha1:5839a26cdc412b78caad7fb59df97bdcea57be6d
134138
pristine_git_object: 22023e8b19692df969693b7a14f8cf6e0143859f
139+
docs/models/context.md:
140+
id: e8f2f9e54b8e
141+
last_write_checksum: sha1:4c14b386f9f89d98f4dd9487ab030f10478c0e63
142+
pristine_git_object: 107f1bd428b1f39b36f75e5a10532bc462967ce5
135143
docs/models/deltamessage.md:
136144
id: 6c5ed6b60968
137145
last_write_checksum: sha1:00052476b9b2474dbc149f18dd18c71c86d0fc74
@@ -242,8 +250,8 @@ trackedFiles:
242250
pristine_git_object: b07f598ebc5f0e9c041186c081dc98bc21104bdb
243251
docs/models/thinking.md:
244252
id: 07234f8dd364
245-
last_write_checksum: sha1:a5962d1615b57996730da19e59fbfaa684321442
246-
pristine_git_object: c7a0d5c9811ea37aaf9e16b6e93c833ab979573f
253+
last_write_checksum: sha1:90c0b34284137712678b0671e9f4bfb319548cbf
254+
pristine_git_object: d9e51d7dc93b24edd807b018393eab38143d46f4
247255
docs/models/tool.md:
248256
id: 8966139dbeed
249257
last_write_checksum: sha1:1725bf53fc9f1ca3f332322d91de24c9d58adc6a
@@ -268,10 +276,18 @@ trackedFiles:
268276
id: f0522d2d3c93
269277
last_write_checksum: sha1:783769c0200baa1b6751327aa3e009fa83da72ee
270278
pristine_git_object: 5c76091fbd2c8e0d768921fab19c7b761df73411
279+
docs/models/toolreferencechunk.md:
280+
id: 10414b39b7b3
281+
last_write_checksum: sha1:a0e93881de5ecaf765300d45a18ab21dcffe54f9
282+
pristine_git_object: 9fc10399fe4ce9eb3b5e87a6bc609643d6a2cb3a
271283
docs/models/tooltypes.md:
272284
id: adb50fe63ea2
273285
last_write_checksum: sha1:f224c3d8732450b9c969b3e04027b7df7892694c
274286
pristine_git_object: 84e49253c9b9bd1bd314e2a126106404cbb52f16
287+
docs/models/toolunion.md:
288+
id: ad708b0ce4e0
289+
last_write_checksum: sha1:61909a56240c784e05f13dff8d9787272e1aa8bc
290+
pristine_git_object: 2dcb3deec9f05d1e578c485a47a8ddd10b375f48
275291
docs/models/usageinfo.md:
276292
id: ec6fe65028a9
277293
last_write_checksum: sha1:cf71fb9676d870eba7c4d10a69636e1db4054adc
@@ -290,8 +306,8 @@ trackedFiles:
290306
pristine_git_object: 69dd549ec7f5f885101d08dd502e25748183aebf
291307
docs/models/validationerror.md:
292308
id: 304bdf06ef8b
293-
last_write_checksum: sha1:1889f608099577e6a116c14b211a6811d6b22786
294-
pristine_git_object: 7a1654a1a5cfb3ab92360b361e8e962bf2db4582
309+
last_write_checksum: sha1:1f297f34069668f6107f2c0389606efe413ff5a8
310+
pristine_git_object: 5bcea5b5d12e72222720af2c014d64ec4bdfee4a
295311
py.typed:
296312
id: 258c3ed47ae4
297313
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60
@@ -326,8 +342,8 @@ trackedFiles:
326342
pristine_git_object: ea95bed210db9180824efddfb1b3e47f5bf96489
327343
src/mistralai/gcp/client/_version.py:
328344
id: f87319e32c7b
329-
last_write_checksum: sha1:05656d6552e7c9cc97c9bbe6483ee906050d28ea
330-
pristine_git_object: 7415341f2a4519b074f4b8ffa0f06c5ac2ac45e3
345+
last_write_checksum: sha1:2c22a5ebb7568968607db20612021af35240f714
346+
pristine_git_object: 377c9836b5f8bdf65e87ba375232422114af2966
331347
src/mistralai/gcp/client/basesdk.py:
332348
id: 4d594572857b
333349
last_write_checksum: sha1:d8ef9e2f4fa97d402eb9f5472ceb80fb39693991
@@ -370,12 +386,16 @@ trackedFiles:
370386
pristine_git_object: 89560b566073785535643e694c112bedbd3db13d
371387
src/mistralai/gcp/client/models/__init__.py:
372388
id: d9e976d01972
373-
last_write_checksum: sha1:97ddfc7f70abd5e1a0b36be6dce209b69e9d5c73
374-
pristine_git_object: 575f64040c90152e74954b749ea89bce5a07e02e
389+
last_write_checksum: sha1:9ba03a47ef26bb6d64366ec4a2b466a6d417aa82
390+
pristine_git_object: e42ed4bb30a39afd1d63dc2f9918e86981f2bf94
375391
src/mistralai/gcp/client/models/assistantmessage.py:
376392
id: d39c4bdd289e
377393
last_write_checksum: sha1:c813783bcbeec4e40f12e007d1dde4aed8ec71cf
378394
pristine_git_object: 702ac4708abb95fc18d138500b8353715c2dbc98
395+
src/mistralai/gcp/client/models/builtinconnectors.py:
396+
id: 7bbec8f3c9c7
397+
last_write_checksum: sha1:4e94744e3854d4cdc9d1272e4f1d9371f9829a5f
398+
pristine_git_object: 6a3b2476d54096722eb3e7a271629d108028bd35
379399
src/mistralai/gcp/client/models/chatcompletionchoice.py:
380400
id: 8e65b56f3e6d
381401
last_write_checksum: sha1:e6d1382e9f880b866130d900fd866997aaf80e45
@@ -490,8 +510,8 @@ trackedFiles:
490510
pristine_git_object: 690322725c0f852a005d08c5b722c41709868b22
491511
src/mistralai/gcp/client/models/thinkchunk.py:
492512
id: 59a1d1ef2020
493-
last_write_checksum: sha1:066eeb10de301264e601a9ec64d21e1cc13b0c20
494-
pristine_git_object: 33ec83949499d99a28c55bb20429ab948bb5b1e8
513+
last_write_checksum: sha1:f2f07f8bf1094cff718fb0f3ef760890c54e4003
514+
pristine_git_object: d534fc1ecc2a127d9ac9ac3d7a7aba7156faf7c2
495515
src/mistralai/gcp/client/models/tool.py:
496516
id: 4b27d45e56ad
497517
last_write_checksum: sha1:cb0d879a55218fd7753bdd005be8a155982feb8f
@@ -512,6 +532,10 @@ trackedFiles:
512532
id: b3774786c2e9
513533
last_write_checksum: sha1:3d414da8132467d1472ebe485802ffc78eb6f7e4
514534
pristine_git_object: ce160391f37ce3568daf2877f8dc1aa0f3694821
535+
src/mistralai/gcp/client/models/toolreferencechunk.py:
536+
id: 16363389756d
537+
last_write_checksum: sha1:42abb2395ed4aa06831723288ce3d20f53f38da7
538+
pristine_git_object: 0a2a7fa3b80417ac2462126c4fae1e9f777df534
515539
src/mistralai/gcp/client/models/tooltypes.py:
516540
id: 5926c64f5229
517541
last_write_checksum: sha1:ffd576511eed9f823c3d67df9fc5574d8d53c54b
@@ -526,8 +550,8 @@ trackedFiles:
526550
pristine_git_object: e237e900421a9e65fd15aede29ade0e510b189f6
527551
src/mistralai/gcp/client/models/validationerror.py:
528552
id: 6b4f4910ea9c
529-
last_write_checksum: sha1:2792fd656f55519902f37670fb9fb3b43b4aa016
530-
pristine_git_object: 2d330e9acb579cc4928fa27fdd72288ce8832b8b
553+
last_write_checksum: sha1:1fd1ffba68b202465f3a0269d7099b4fee5c85c9
554+
pristine_git_object: 3ff872c15f6380c3a7f9dc9be1b80be159f752ba
531555
src/mistralai/gcp/client/py.typed:
532556
id: 98b8ab80ab0d
533557
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60
@@ -653,6 +677,7 @@ examples:
653677
application/json: {"id": "447e3e0d457e42e98248b5d2ef52a2a3", "object": "chat.completion", "model": "codestral-2508", "usage": {"prompt_tokens": 8, "completion_tokens": 91, "total_tokens": 99}, "created": 1759496862, "choices": [{"index": 0, "message": {"role": "assistant", "content": "add_numbers(a: int, b: int) -> int:\n \"\"\"\n You are given two integers `a` and `b`. Your task is to write a function that\n returns the sum of these two integers. The function should be implemented in a\n way that it can handle very large integers (up to 10^18). As a reminder, your\n code has to be in python\n \"\"\"\n", "tool_calls": null, "prefix": false}, "finish_reason": "stop"}]}
654678
examplesVersion: 1.0.2
655679
generatedTests: {}
680+
releaseNotes: "## Python SDK Changes:\n* `mistral_gcp.chat.stream()`: \n * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ToolReferenceChunk)` **Added**\n * `error.detail[]` **Changed**\n* `mistral_gcp.chat.complete()`: \n * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ToolReferenceChunk)` **Added**\n * `error.detail[]` **Changed**\n* `mistral_gcp.fim.stream()`: `error.detail[]` **Changed**\n* `mistral_gcp.fim.complete()`: `error.detail[]` **Changed**\n"
656681
generatedFiles:
657682
- .gitattributes
658683
- .vscode/settings.json

packages/gcp/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: false
3131
skipResponseBodyAssertions: false
3232
python:
33-
version: 2.0.0rc1
33+
version: 2.0.0
3434
additionalDependencies:
3535
dev:
3636
pytest: ^8.2.2

packages/gcp/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ Based on:
2828
### Generated
2929
- [python v2.0.0rc1] packages/gcp
3030
### Releases
31-
- [PyPI v2.0.0rc1] https://pypi.org/project/mistralai-gcp/2.0.0rc1 - packages/gcp
31+
- [PyPI v2.0.0rc1] https://pypi.org/project/mistralai-gcp/2.0.0rc1 - packages/gcp
32+
33+
## 2026-03-09 19:30:40
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc
37+
- Speakeasy CLI 1.729.0 (2.841.0) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [python v2.0.0] packages/gcp
40+
### Releases
41+
- [PyPI v2.0.0] https://pypi.org/project/mistralai-gcp/2.0.0 - packages/gcp
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BuiltInConnectors
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| -------------------- | -------------------- |
8+
| `WEB_SEARCH` | web_search |
9+
| `WEB_SEARCH_PREMIUM` | web_search_premium |
10+
| `CODE_INTERPRETER` | code_interpreter |
11+
| `IMAGE_GENERATION` | image_generation |
12+
| `DOCUMENT_LIBRARY` | document_library |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Context
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------- | ----------- | ----------- | ----------- |

packages/gcp/docs/models/thinking.md

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

44
## Supported Types
55

6-
### `models.ReferenceChunk`
6+
### `models.TextChunk`
77

88
```python
9-
value: models.ReferenceChunk = /* values here */
9+
value: models.TextChunk = /* values here */
1010
```
1111

12-
### `models.TextChunk`
12+
### `models.ToolReferenceChunk`
1313

1414
```python
15-
value: models.TextChunk = /* values here */
15+
value: models.ToolReferenceChunk = /* values here */
16+
```
17+
18+
### `models.ReferenceChunk`
19+
20+
```python
21+
value: models.ReferenceChunk = /* values here */
1622
```
1723

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ToolReferenceChunk
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
8+
| `type` | *Optional[Literal["tool_reference"]]* | :heavy_minus_sign: | N/A |
9+
| `tool` | [models.ToolUnion](../models/toolunion.md) | :heavy_check_mark: | N/A |
10+
| `title` | *str* | :heavy_check_mark: | N/A |
11+
| `url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
12+
| `favicon` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
13+
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ToolUnion
2+
3+
4+
## Supported Types
5+
6+
### `models.BuiltInConnectors`
7+
8+
```python
9+
value: models.BuiltInConnectors = /* values here */
10+
```
11+
12+
### `str`
13+
14+
```python
15+
value: str = /* values here */
16+
```
17+

packages/gcp/docs/models/validationerror.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8-
| `loc` | List[[models.Loc](../models/loc.md)] | :heavy_check_mark: | N/A |
9-
| `msg` | *str* | :heavy_check_mark: | N/A |
10-
| `type` | *str* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
8+
| `loc` | List[[models.Loc](../models/loc.md)] | :heavy_check_mark: | N/A |
9+
| `msg` | *str* | :heavy_check_mark: | N/A |
10+
| `type` | *str* | :heavy_check_mark: | N/A |
11+
| `input` | *Optional[Any]* | :heavy_minus_sign: | N/A |
12+
| `ctx` | [Optional[models.Context]](../models/context.md) | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)