Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 1.2.3 (#157)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.440.1

* update gcp client

* update azure client

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: gaspardBT <[email protected]>
  • Loading branch information
3 people authored Nov 18, 2024
1 parent ab11009 commit 0fd4241
Show file tree
Hide file tree
Showing 45 changed files with 411 additions and 98 deletions.
20 changes: 12 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
management:
docChecksum: 87f5a2bcfbc64bec79241e2b0de25b9f
docChecksum: d066d98bdd0ef905d4126e0e69940946
docVersion: 0.0.2
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 1.2.2
configChecksum: bfa571f32b68bdb4917b69135c2eb818
speakeasyVersion: 1.440.1
generationVersion: 2.460.1
releaseVersion: 1.2.3
configChecksum: 25fa33668bf14110dfe5bac267dcc8b4
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.4
core: 5.6.4
constsAndDefaults: 1.0.5
core: 5.6.5
defaultEnabledRetries: 0.2.0
downloadStreams: 1.0.1
enumUnions: 0.1.0
Expand Down Expand Up @@ -166,6 +166,8 @@ generatedFiles:
- docs/models/object.md
- docs/models/one.md
- docs/models/queryparamstatus.md
- docs/models/referencechunk.md
- docs/models/referencechunktype.md
- docs/models/repositories.md
- docs/models/responseformat.md
- docs/models/responseformats.md
Expand All @@ -187,6 +189,7 @@ generatedFiles:
- docs/models/toolchoice.md
- docs/models/toolchoiceenum.md
- docs/models/toolmessage.md
- docs/models/toolmessagecontent.md
- docs/models/toolmessagerole.md
- docs/models/tooltypes.md
- docs/models/trainingfile.md
Expand Down Expand Up @@ -318,6 +321,7 @@ generatedFiles:
- src/mistralai/models/metricout.py
- src/mistralai/models/modelcapabilities.py
- src/mistralai/models/modellist.py
- src/mistralai/models/referencechunk.py
- src/mistralai/models/responseformat.py
- src/mistralai/models/responseformats.py
- src/mistralai/models/retrieve_model_v1_models_model_id_getop.py
Expand Down Expand Up @@ -563,7 +567,7 @@ examples:
moderations_chat_v1_chat_moderations_post:
speakeasy-default-moderations-chat-v1-chat-moderations-post:
requestBody:
application/json: {"input": [[{"content": "<value>"}, {"content": []}, {"content": "<value>"}], []], "model": "V90"}
application/json: {"input": [[{"content": "<value>"}, {"content": "<value>"}, {"content": "<value>"}], [{"content": "<value>"}]], "model": "V90"}
responses:
"200":
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 1.2.2
version: 1.2.3
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
34 changes: 17 additions & 17 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
speakeasyVersion: 1.438.1
speakeasyVersion: 1.440.1
sources:
mistral-azure-source:
sourceNamespace: mistral-azure-source
sourceRevisionDigest: sha256:2e3e3792ec63f3d59dd2a4de2f97ea6a80bd46f8905576069c54810feb930c12
sourceBlobDigest: sha256:da059f78d331ea36f2ec69dfc6c5aa65be0bf0eda011597281cea6499b7ebac8
sourceRevisionDigest: sha256:c441f2d21e7879f5fb9d8d99e2ae242d1e5a84c0c06db971911eb578173e7f62
sourceBlobDigest: sha256:de4af0f100f15fef89e093a6b5393302b2218fb154230594ec811aacdd4f2ec7
tags:
- latest
mistral-google-cloud-source:
sourceNamespace: mistral-google-cloud-source
sourceRevisionDigest: sha256:22da209c58cb1591b3fde77467a9affce33c874724b220dd68f11a8f5fe92fbe
sourceBlobDigest: sha256:79c11900db52030ed8d8fff8066f9fe716670f4eadca41936f2cbc1a270fb087
sourceRevisionDigest: sha256:d3e3d15303dcc1acb27b8895aa3064328bd5b8013ea635c2bce553b6e647b498
sourceBlobDigest: sha256:db72004ee842a27c3e77980be28a727811e0581daa7a51ad34d142302f8ba2f3
tags:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e44702b93f6a8ac450f1d85b4197f6640f8efb3d5e06be98418ea79acd8f70be
sourceBlobDigest: sha256:94a9891a3bdf3fafea5c41cee226c5e366c206e91e39e734cd2d1163af74f688
sourceRevisionDigest: sha256:9b6ad47076b570f4e23494bf744a7822547d0003e4b10985f26f1c3b5128e631
sourceBlobDigest: sha256:150e3da2a6bfb74e86e2ce864e9a094fc796f3a08df91f6a6e8745b54b3e16bc
tags:
- latest
- main
- speakeasy-sdk-regen-1731693697
targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-azure-source
sourceRevisionDigest: sha256:2e3e3792ec63f3d59dd2a4de2f97ea6a80bd46f8905576069c54810feb930c12
sourceBlobDigest: sha256:da059f78d331ea36f2ec69dfc6c5aa65be0bf0eda011597281cea6499b7ebac8
sourceRevisionDigest: sha256:c441f2d21e7879f5fb9d8d99e2ae242d1e5a84c0c06db971911eb578173e7f62
sourceBlobDigest: sha256:de4af0f100f15fef89e093a6b5393302b2218fb154230594ec811aacdd4f2ec7
codeSamplesNamespace: mistral-openapi-azure-code-samples
codeSamplesRevisionDigest: sha256:e90c3293cb23081fed599d4528b168335a2ac58deb76ecc3afd7140d49b68816
codeSamplesRevisionDigest: sha256:5db0b04cc2b3962de41cb07e87fe817dd5ec8bc5d8b0254245b26faf70ede027
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-google-cloud-source
sourceRevisionDigest: sha256:22da209c58cb1591b3fde77467a9affce33c874724b220dd68f11a8f5fe92fbe
sourceBlobDigest: sha256:79c11900db52030ed8d8fff8066f9fe716670f4eadca41936f2cbc1a270fb087
sourceRevisionDigest: sha256:d3e3d15303dcc1acb27b8895aa3064328bd5b8013ea635c2bce553b6e647b498
sourceBlobDigest: sha256:db72004ee842a27c3e77980be28a727811e0581daa7a51ad34d142302f8ba2f3
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
codeSamplesRevisionDigest: sha256:8539ff0f99be949906dad55250e1d230dfebf062e8f7c38398713e11c6bb48ec
codeSamplesRevisionDigest: sha256:7d95ba7aa230088b9975be341ba638e51cc574b6e863bd3a0f53e9c5ee261bba
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e44702b93f6a8ac450f1d85b4197f6640f8efb3d5e06be98418ea79acd8f70be
sourceBlobDigest: sha256:94a9891a3bdf3fafea5c41cee226c5e366c206e91e39e734cd2d1163af74f688
sourceRevisionDigest: sha256:9b6ad47076b570f4e23494bf744a7822547d0003e4b10985f26f1c3b5128e631
sourceBlobDigest: sha256:150e3da2a6bfb74e86e2ce864e9a094fc796f3a08df91f6a6e8745b54b3e16bc
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:9e9f8f0da360280a8d42e2ccbee423871b74abd07e872e10892636ba4be4e3a5
codeSamplesRevisionDigest: sha256:d1ea6603d96bdc063cc747cde1cadcbf443be580935e12438e7b915d0cd9a019
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ Based on:
### Generated
- [python v1.2.2] .
### Releases
- [PyPI v1.2.2] https://pypi.org/project/mistralai/1.2.2 - .
- [PyPI v1.2.2] https://pypi.org/project/mistralai/1.2.2 - .

## 2024-11-15 18:37:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.2.3] .
### Releases
- [PyPI v1.2.3] https://pypi.org/project/mistralai/1.2.3 - .
6 changes: 6 additions & 0 deletions docs/models/contentchunk.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ value: models.ImageURLChunk = /* values here */
value: models.TextChunk = /* values here */
```

### `models.ReferenceChunk`

```python
value: models.ReferenceChunk = /* values here */
```

9 changes: 9 additions & 0 deletions docs/models/referencechunk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ReferenceChunk


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `reference_ids` | List[*int*] | :heavy_check_mark: | N/A |
| `type` | [Optional[models.ReferenceChunkType]](../models/referencechunktype.md) | :heavy_minus_sign: | N/A |
8 changes: 8 additions & 0 deletions docs/models/referencechunktype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ReferenceChunkType


## Values

| Name | Value |
| ----------- | ----------- |
| `REFERENCE` | reference |
12 changes: 6 additions & 6 deletions docs/models/toolmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `content` | *str* | :heavy_check_mark: | N/A |
| `tool_call_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `role` | [Optional[models.ToolMessageRole]](../models/toolmessagerole.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `content` | [Nullable[models.ToolMessageContent]](../models/toolmessagecontent.md) | :heavy_check_mark: | N/A |
| `tool_call_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `role` | [Optional[models.ToolMessageRole]](../models/toolmessagerole.md) | :heavy_minus_sign: | N/A |
17 changes: 17 additions & 0 deletions docs/models/toolmessagecontent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ToolMessageContent


## Supported Types

### `str`

```python
value: str = /* values here */
```

### `List[models.ContentChunk]`

```python
value: List[models.ContentChunk] = /* values here */
```

7 changes: 6 additions & 1 deletion docs/sdks/classifiers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ s = Mistral(
res = s.classifiers.moderate_chat(inputs=[
[
{
"content": "<value>",
"content": [
{
"text": "<value>",
"type": "text",
},
],
},
],
], model="V90")
Expand Down
18 changes: 11 additions & 7 deletions packages/mistralai_azure/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: dc40fa48-2c4d-46ad-ac8b-270749770f34
management:
docChecksum: 1eac78d7698423fcd3bc58124f860d30
docChecksum: d0000cbe03848bfe843794965cba332f
docVersion: 0.0.2
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 1.2.0
configChecksum: f69f129b40abc60e88685a36201ebb87
speakeasyVersion: 1.440.1
generationVersion: 2.460.1
releaseVersion: 1.2.3
configChecksum: 60295c765204eb0aa26205ec02e574fc
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.4
core: 5.6.4
constsAndDefaults: 1.0.5
core: 5.6.5
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
Expand Down Expand Up @@ -64,6 +64,8 @@ generatedFiles:
- docs/models/httpvalidationerror.md
- docs/models/loc.md
- docs/models/messages.md
- docs/models/referencechunk.md
- docs/models/referencechunktype.md
- docs/models/responseformat.md
- docs/models/responseformats.md
- docs/models/role.md
Expand All @@ -77,6 +79,7 @@ generatedFiles:
- docs/models/toolchoice.md
- docs/models/toolchoiceenum.md
- docs/models/toolmessage.md
- docs/models/toolmessagecontent.md
- docs/models/toolmessagerole.md
- docs/models/tooltypes.md
- docs/models/type.md
Expand Down Expand Up @@ -115,6 +118,7 @@ generatedFiles:
- src/mistralai_azure/models/functioncall.py
- src/mistralai_azure/models/functionname.py
- src/mistralai_azure/models/httpvalidationerror.py
- src/mistralai_azure/models/referencechunk.py
- src/mistralai_azure/models/responseformat.py
- src/mistralai_azure/models/responseformats.py
- src/mistralai_azure/models/sdkerror.py
Expand Down
2 changes: 1 addition & 1 deletion packages/mistralai_azure/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 1.2.0
version: 1.2.3
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
6 changes: 6 additions & 0 deletions packages/mistralai_azure/docs/models/contentchunk.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
value: models.TextChunk = /* values here */
```

### `models.ReferenceChunk`

```python
value: models.ReferenceChunk = /* values here */
```

9 changes: 9 additions & 0 deletions packages/mistralai_azure/docs/models/referencechunk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ReferenceChunk


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `reference_ids` | List[*int*] | :heavy_check_mark: | N/A |
| `type` | [Optional[models.ReferenceChunkType]](../models/referencechunktype.md) | :heavy_minus_sign: | N/A |
8 changes: 8 additions & 0 deletions packages/mistralai_azure/docs/models/referencechunktype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ReferenceChunkType


## Values

| Name | Value |
| ----------- | ----------- |
| `REFERENCE` | reference |
12 changes: 6 additions & 6 deletions packages/mistralai_azure/docs/models/toolmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `content` | *str* | :heavy_check_mark: | N/A |
| `tool_call_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `role` | [Optional[models.ToolMessageRole]](../models/toolmessagerole.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `content` | [Nullable[models.ToolMessageContent]](../models/toolmessagecontent.md) | :heavy_check_mark: | N/A |
| `tool_call_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `role` | [Optional[models.ToolMessageRole]](../models/toolmessagerole.md) | :heavy_minus_sign: | N/A |
17 changes: 17 additions & 0 deletions packages/mistralai_azure/docs/models/toolmessagecontent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ToolMessageContent


## Supported Types

### `str`

```python
value: str = /* values here */
```

### `List[models.ContentChunk]`

```python
value: List[models.ContentChunk] = /* values here */
```

2 changes: 1 addition & 1 deletion packages/mistralai_azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mistralai_azure"
version = "1.2.0"
version = "1.2.3"
description = "Python Client SDK for the Mistral AI API in Azure."
authors = ["Mistral",]
readme = "README-PYPI.md"
Expand Down
Loading

0 comments on commit 0fd4241

Please sign in to comment.