Skip to content

Commit fde481b

Browse files
github-actions[bot]speakeasybotGaspardBT
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 1.6.0 (#209)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.517.3 * update azure * update gcp --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: gaspardBT <gaspard@mistral.ai>
1 parent b93ff4e commit fde481b

File tree

145 files changed

+2733
-983
lines changed

Some content is hidden

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

145 files changed

+2733
-983
lines changed

.speakeasy/gen.lock

+30-21
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
lockVersion: 2.0.0
22
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
33
management:
4-
docChecksum: 406e00c323dba0db26d6994620926af4
4+
docChecksum: 292a97e4dd465554d420c92d78d70c5f
55
docVersion: 0.0.2
6-
speakeasyVersion: 1.477.0
7-
generationVersion: 2.497.0
8-
releaseVersion: 1.5.2
9-
configChecksum: 27786d5cae3bfccc8b434aba9bde02a3
6+
speakeasyVersion: 1.517.3
7+
generationVersion: 2.548.6
8+
releaseVersion: 1.6.0
9+
configChecksum: 1cfb4e3f53a140213b7b400e79811fe5
1010
repoURL: https://github.com/mistralai/client-python.git
1111
installationURL: https://github.com/mistralai/client-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.10.5
17+
core: 5.12.3
1818
customCodeRegions: 0.1.1
1919
defaultEnabledRetries: 0.2.0
2020
downloadStreams: 1.0.1
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
2323
examples: 3.0.1
2424
flatRequests: 1.0.1
25-
flattening: 3.1.0
26-
globalSecurity: 3.0.2
25+
flattening: 3.1.1
26+
globalSecurity: 3.0.3
2727
globalSecurityCallbacks: 1.0.0
2828
globalSecurityFlattening: 1.0.0
2929
globalServerURLs: 3.1.0
3030
methodArguments: 1.0.2
3131
multipartFileContentType: 1.0.0
3232
nameOverrides: 3.0.1
33-
nullables: 1.0.0
33+
nullables: 1.0.1
3434
openEnums: 1.0.0
3535
responseFormat: 1.0.1
3636
retries: 3.0.2
37-
sdkHooks: 1.0.0
37+
sdkHooks: 1.0.1
3838
serverEvents: 1.0.7
3939
serverEventsSentinels: 0.1.0
4040
serverIDs: 3.0.0
@@ -239,7 +239,7 @@ generatedFiles:
239239
- poetry.toml
240240
- py.typed
241241
- pylintrc
242-
- scripts/prepare-readme.py
242+
- scripts/prepare_readme.py
243243
- scripts/publish.sh
244244
- src/mistralai/__init__.py
245245
- src/mistralai/_hooks/__init__.py
@@ -449,7 +449,7 @@ examples:
449449
files_api_routes_upload_file:
450450
speakeasy-default-files-api-routes-upload-file:
451451
requestBody:
452-
multipart/form-data: {"file": {"": "x-file: example.file"}}
452+
multipart/form-data: {"file": {}}
453453
responses:
454454
"200":
455455
application/json: {"id": "497f6eca-6276-4993-bfeb-53cbbbba6f09", "object": "file", "bytes": 13000, "created_at": 1716963433, "filename": "files_upload.jsonl", "purpose": "fine-tune", "sample_type": "batch_request", "source": "repository"}
@@ -505,38 +505,38 @@ examples:
505505
created_by_me: false
506506
responses:
507507
"200":
508-
application/json: {"total": 768578}
508+
application/json: {"object": "list", "total": 768578}
509509
jobs_api_routes_fine_tuning_create_fine_tuning_job:
510510
speakeasy-default-jobs-api-routes-fine-tuning-create-fine-tuning-job:
511511
requestBody:
512512
application/json: {"model": "Fiesta", "hyperparameters": {"learning_rate": 0.0001}}
513513
responses:
514514
"200":
515-
application/json: {"expected_duration_seconds": 220, "cost": 10, "cost_currency": "EUR", "train_tokens_per_step": 131072, "train_tokens": 1310720, "data_tokens": 305375, "deprecated": true, "details": "<value>", "epochs": 4.2922, "training_steps": 10}
515+
application/json: {"expected_duration_seconds": 220, "cost": 10, "cost_currency": "EUR", "train_tokens_per_step": 131072, "train_tokens": 1310720, "data_tokens": 305375, "deprecated": true, "details": "<value>", "epochs": 4.2922, "training_steps": 10, "object": "job.metadata"}
516516
jobs_api_routes_fine_tuning_get_fine_tuning_job:
517517
speakeasy-default-jobs-api-routes-fine-tuning-get-fine-tuning-job:
518518
parameters:
519519
path:
520520
job_id: "b888f774-3e7c-4135-a18c-6b985523c4bc"
521521
responses:
522522
"200":
523-
application/json: {"id": "e50f7622-81da-484b-9c66-1c8a99c6b71b", "auto_start": false, "hyperparameters": {"learning_rate": 0.0001}, "model": "Model Y", "status": "CANCELLED", "job_type": "<value>", "created_at": 415305, "modified_at": 149108, "training_files": ["8f7112aa-f0ab-44e4-83b4-cca3716f6208", "7aa1f8cf-05d8-49d5-88ee-381f6b4b885c"], "checkpoints": [{"metrics": {}, "step_number": 856562, "created_at": 1716963433}, {"metrics": {}, "step_number": 328633, "created_at": 1716963433}]}
523+
application/json: {"id": "e50f7622-81da-484b-9c66-1c8a99c6b71b", "auto_start": false, "hyperparameters": {"learning_rate": 0.0001}, "model": "Model Y", "status": "CANCELLED", "job_type": "<value>", "created_at": 415305, "modified_at": 149108, "training_files": ["8f7112aa-f0ab-44e4-83b4-cca3716f6208", "7aa1f8cf-05d8-49d5-88ee-381f6b4b885c"], "object": "job", "checkpoints": [{"metrics": {}, "step_number": 856562, "created_at": 1716963433}, {"metrics": {}, "step_number": 328633, "created_at": 1716963433}]}
524524
jobs_api_routes_fine_tuning_cancel_fine_tuning_job:
525525
speakeasy-default-jobs-api-routes-fine-tuning-cancel-fine-tuning-job:
526526
parameters:
527527
path:
528528
job_id: "0f713502-9233-41c6-9ebd-c570b7edb496"
529529
responses:
530530
"200":
531-
application/json: {"id": "d50fbe4e-3e32-4613-8574-4d82f3fd6b3c", "auto_start": true, "hyperparameters": {"learning_rate": 0.0001}, "model": "Taurus", "status": "SUCCESS", "job_type": "<value>", "created_at": 251316, "modified_at": 342605, "training_files": ["247ac10c-dc31-412f-a7cc-924123024afa", "0f84bd49-4511-4689-9d07-a64aa724280b", "200aa489-3801-4d6e-a454-eb14cac448cb"], "checkpoints": [{"metrics": {}, "step_number": 949854, "created_at": 1716963433}, {"metrics": {}, "step_number": 516599, "created_at": 1716963433}, {"metrics": {}, "step_number": 439590, "created_at": 1716963433}]}
531+
application/json: {"id": "d50fbe4e-3e32-4613-8574-4d82f3fd6b3c", "auto_start": true, "hyperparameters": {"learning_rate": 0.0001}, "model": "Taurus", "status": "SUCCESS", "job_type": "<value>", "created_at": 251316, "modified_at": 342605, "training_files": ["247ac10c-dc31-412f-a7cc-924123024afa", "0f84bd49-4511-4689-9d07-a64aa724280b", "200aa489-3801-4d6e-a454-eb14cac448cb"], "object": "job", "checkpoints": [{"metrics": {}, "step_number": 949854, "created_at": 1716963433}, {"metrics": {}, "step_number": 516599, "created_at": 1716963433}, {"metrics": {}, "step_number": 439590, "created_at": 1716963433}]}
532532
jobs_api_routes_fine_tuning_start_fine_tuning_job:
533533
speakeasy-default-jobs-api-routes-fine-tuning-start-fine-tuning-job:
534534
parameters:
535535
path:
536536
job_id: "0bf0f9e6-c3e5-4d61-aac8-0e36dcac0dfc"
537537
responses:
538538
"200":
539-
application/json: {"id": "b676fe58-2c47-483e-831e-c71dbed4c90a", "auto_start": false, "hyperparameters": {"learning_rate": 0.0001}, "model": "A4", "status": "CANCELLED", "job_type": "<value>", "created_at": 874397, "modified_at": 483387, "training_files": [], "checkpoints": [{"metrics": {}, "step_number": 331375, "created_at": 1716963433}, {"metrics": {}, "step_number": 590686, "created_at": 1716963433}, {"metrics": {}, "step_number": 543177, "created_at": 1716963433}]}
539+
application/json: {"id": "b676fe58-2c47-483e-831e-c71dbed4c90a", "auto_start": false, "hyperparameters": {"learning_rate": 0.0001}, "model": "A4", "status": "CANCELLED", "job_type": "<value>", "created_at": 874397, "modified_at": 483387, "training_files": [], "object": "job", "checkpoints": [{"metrics": {}, "step_number": 331375, "created_at": 1716963433}, {"metrics": {}, "step_number": 590686, "created_at": 1716963433}, {"metrics": {}, "step_number": 543177, "created_at": 1716963433}]}
540540
jobs_api_routes_batch_get_batch_jobs:
541541
speakeasy-default-jobs-api-routes-batch-get-batch-jobs:
542542
parameters:
@@ -546,30 +546,30 @@ examples:
546546
created_by_me: false
547547
responses:
548548
"200":
549-
application/json: {"total": 768578}
549+
application/json: {"object": "list", "total": 768578}
550550
jobs_api_routes_batch_create_batch_job:
551551
speakeasy-default-jobs-api-routes-batch-create-batch-job:
552552
requestBody:
553553
application/json: {"input_files": ["a621cf02-1cd9-4cf5-8403-315211a509a3"], "endpoint": "/v1/fim/completions", "model": "2", "timeout_hours": 24}
554554
responses:
555555
"200":
556-
application/json: {"id": "<id>", "input_files": ["8e774c2b-ecc3-4769-b177-5e024985613d", "0ee803d5-6a1d-4f94-836b-fd39494798bc"], "endpoint": "<value>", "model": "Impala", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "RUNNING", "created_at": 770370, "total_requests": 350586, "completed_requests": 95214, "succeeded_requests": 930830, "failed_requests": 617761}
556+
application/json: {"id": "<id>", "object": "batch", "input_files": ["8e774c2b-ecc3-4769-b177-5e024985613d", "0ee803d5-6a1d-4f94-836b-fd39494798bc"], "endpoint": "<value>", "model": "Impala", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "RUNNING", "created_at": 770370, "total_requests": 350586, "completed_requests": 95214, "succeeded_requests": 930830, "failed_requests": 617761}
557557
jobs_api_routes_batch_get_batch_job:
558558
speakeasy-default-jobs-api-routes-batch-get-batch-job:
559559
parameters:
560560
path:
561561
job_id: "b888f774-3e7c-4135-a18c-6b985523c4bc"
562562
responses:
563563
"200":
564-
application/json: {"id": "<id>", "input_files": ["50f76228-1da8-44bc-b661-c8a99c6b71b6", "cd62b8f7-112a-4af0-bab4-e43b4cca3716", "620807aa-1f8c-4f05-ad89-d58ee381f6b4"], "endpoint": "<value>", "model": "Golf", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "SUCCESS", "created_at": 790898, "total_requests": 55097, "completed_requests": 578320, "succeeded_requests": 856562, "failed_requests": 328633}
564+
application/json: {"id": "<id>", "object": "batch", "input_files": ["50f76228-1da8-44bc-b661-c8a99c6b71b6", "cd62b8f7-112a-4af0-bab4-e43b4cca3716", "620807aa-1f8c-4f05-ad89-d58ee381f6b4"], "endpoint": "<value>", "model": "Golf", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "SUCCESS", "created_at": 790898, "total_requests": 55097, "completed_requests": 578320, "succeeded_requests": 856562, "failed_requests": 328633}
565565
jobs_api_routes_batch_cancel_batch_job:
566566
speakeasy-default-jobs-api-routes-batch-cancel-batch-job:
567567
parameters:
568568
path:
569569
job_id: "0f713502-9233-41c6-9ebd-c570b7edb496"
570570
responses:
571571
"200":
572-
application/json: {"id": "<id>", "input_files": ["50fbe4e3-e326-4135-8744-d82f3fd6b3c1", "eb45e247-ac10-4cdc-8311-2f7cc9241230", "4afaa0f8-4bd4-4945-9116-89d07a64aa72"], "endpoint": "<value>", "model": "Alpine", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "QUEUED", "created_at": 709109, "total_requests": 275794, "completed_requests": 158938, "succeeded_requests": 12381, "failed_requests": 11864}
572+
application/json: {"id": "<id>", "object": "batch", "input_files": ["50fbe4e3-e326-4135-8744-d82f3fd6b3c1", "eb45e247-ac10-4cdc-8311-2f7cc9241230", "4afaa0f8-4bd4-4945-9116-89d07a64aa72"], "endpoint": "<value>", "model": "Alpine", "errors": [{"message": "<value>", "count": 1}, {"message": "<value>", "count": 1}], "status": "QUEUED", "created_at": 709109, "total_requests": 275794, "completed_requests": 158938, "succeeded_requests": 12381, "failed_requests": 11864}
573573
chat_completion_v1_chat_completions_post:
574574
speakeasy-default-chat-completion-v1-chat-completions-post:
575575
requestBody:
@@ -657,5 +657,14 @@ examples:
657657
application/json: {"pages": [], "model": "A4", "usage_info": {"pages_processed": 442675}}
658658
"422":
659659
application/json: {}
660+
chat_moderations_v1_chat_moderations_post:
661+
speakeasy-default-chat-moderations-v1-chat-moderations-post:
662+
requestBody:
663+
application/json: {"model": "Model Y", "input": [[{"content": [], "role": "system"}, {"content": "<value>", "role": "tool"}], [{"prefix": false, "role": "assistant"}, {"content": "<value>", "role": "user"}, {"prefix": false, "role": "assistant"}], [{"content": "<value>", "role": "system"}, {"content": [{"image_url": "https://fatherly-colon.name", "type": "image_url"}], "role": "user"}, {"content": "<value>", "role": "user"}]], "truncate_for_context_length": false}
664+
responses:
665+
"200":
666+
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
667+
"422":
668+
application/json: {}
660669
examplesVersion: 1.0.0
661670
generatedTests: {}

.speakeasy/gen.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ generation:
77
useClassNamesForArrayFields: true
88
fixes:
99
nameResolutionDec2023: true
10+
nameResolutionFeb2025: false
1011
parameterOrderingFeb2024: true
1112
requestResponseComponentNamesFeb2024: true
13+
securityFeb2025: false
1214
auth:
1315
oAuth2ClientCredentialsEnabled: true
1416
oAuth2PasswordEnabled: false
1517
python:
16-
version: 1.5.2
18+
version: 1.6.0
1719
additionalDependencies:
1820
dev:
1921
pytest: ^8.2.2
@@ -44,5 +46,6 @@ python:
4446
methodArguments: infer-optional-args
4547
outputModelSuffix: output
4648
packageName: mistralai
49+
pytestTimeout: 0
4750
responseFormat: flat
4851
templateVersion: v2

.speakeasy/workflow.lock

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
speakeasyVersion: 1.477.0
1+
speakeasyVersion: 1.517.3
22
sources:
33
mistral-azure-source:
4-
sourceNamespace: mistral-azure-source
5-
sourceRevisionDigest: sha256:ff181b1e0e3894a4925f7ae87415323058538a13bae9d9d508a8fe3b6ec0e333
6-
sourceBlobDigest: sha256:a2b4fd69298ebb9adb0d3c8dfb452db52defac512a7532203eebffb6a252df76
4+
sourceNamespace: mistral-openapi-azure
5+
sourceRevisionDigest: sha256:c5931a7e0cc2db844149d71db57dfc2178665f0400bc26c90ee113795ea2872f
6+
sourceBlobDigest: sha256:504fff788fdac8d781e33d85e3a04d35f6d9f7a3ef5ed40da8b4567074e94f03
77
tags:
88
- latest
99
mistral-google-cloud-source:
10-
sourceNamespace: mistral-google-cloud-source
11-
sourceRevisionDigest: sha256:36c7de11e35023dc8fa5f3c0fb0e486d2a102275a2df808c08cfe9d43089be04
12-
sourceBlobDigest: sha256:dd65bfa5d0448ad1851ebb18b57aa675533cd3e166beb86a390b0ab51d16a1c1
10+
sourceNamespace: mistral-openapi-google-cloud
11+
sourceRevisionDigest: sha256:4a5343e63c6a78152e472b00ccc46d7bcb15594496bc94c8040039d3a9d4c5f8
12+
sourceBlobDigest: sha256:3327f078a11596abdcbc21cd8a1adcf0b2aa474975cd9ab1feb745a2e50d555f
1313
tags:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:8655bba5635f9f9bc3aa94690c26d6124c778e03478786074288cd63414a7a84
18-
sourceBlobDigest: sha256:cd9280b2b089ef5e0b06ba94ed2736b928f7e4e542d04f408df84e6912049ba6
17+
sourceRevisionDigest: sha256:15e39124d61c30c69260e298a909e60996ac6e8623c202d1745b88fc3e67cb2f
18+
sourceBlobDigest: sha256:d16b98efd9214ceb1c89beedc40e67dd09349d5122076f6e16d1a552ee5b3e63
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1742407785
21+
- speakeasy-sdk-regen-1742466858
2222
targets:
2323
mistralai-azure-sdk:
2424
source: mistral-azure-source
25-
sourceNamespace: mistral-azure-source
26-
sourceRevisionDigest: sha256:ff181b1e0e3894a4925f7ae87415323058538a13bae9d9d508a8fe3b6ec0e333
27-
sourceBlobDigest: sha256:a2b4fd69298ebb9adb0d3c8dfb452db52defac512a7532203eebffb6a252df76
25+
sourceNamespace: mistral-openapi-azure
26+
sourceRevisionDigest: sha256:c5931a7e0cc2db844149d71db57dfc2178665f0400bc26c90ee113795ea2872f
27+
sourceBlobDigest: sha256:504fff788fdac8d781e33d85e3a04d35f6d9f7a3ef5ed40da8b4567074e94f03
2828
codeSamplesNamespace: mistral-openapi-azure-code-samples
29-
codeSamplesRevisionDigest: sha256:28356dba7ea28436035e20182b8ce4d1951e19503b5accef6a128d860361e5c0
29+
codeSamplesRevisionDigest: sha256:e242a7fc42e44d2bbc8e5637d4a6455da7fb3d0307dc275ee4c64867f5c4be55
3030
mistralai-gcp-sdk:
3131
source: mistral-google-cloud-source
32-
sourceNamespace: mistral-google-cloud-source
33-
sourceRevisionDigest: sha256:36c7de11e35023dc8fa5f3c0fb0e486d2a102275a2df808c08cfe9d43089be04
34-
sourceBlobDigest: sha256:dd65bfa5d0448ad1851ebb18b57aa675533cd3e166beb86a390b0ab51d16a1c1
32+
sourceNamespace: mistral-openapi-google-cloud
33+
sourceRevisionDigest: sha256:4a5343e63c6a78152e472b00ccc46d7bcb15594496bc94c8040039d3a9d4c5f8
34+
sourceBlobDigest: sha256:3327f078a11596abdcbc21cd8a1adcf0b2aa474975cd9ab1feb745a2e50d555f
3535
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
36-
codeSamplesRevisionDigest: sha256:7de23f90d6543356f310f46375bef4db7f43eb22b2871ad4dfe1b7d0cc875bb4
36+
codeSamplesRevisionDigest: sha256:03b3e82c20d10faa8622f14696632b96b1a2e8d747b266fff345061298d5f3e4
3737
mistralai-sdk:
3838
source: mistral-openapi
3939
sourceNamespace: mistral-openapi
40-
sourceRevisionDigest: sha256:8655bba5635f9f9bc3aa94690c26d6124c778e03478786074288cd63414a7a84
41-
sourceBlobDigest: sha256:cd9280b2b089ef5e0b06ba94ed2736b928f7e4e542d04f408df84e6912049ba6
40+
sourceRevisionDigest: sha256:15e39124d61c30c69260e298a909e60996ac6e8623c202d1745b88fc3e67cb2f
41+
sourceBlobDigest: sha256:d16b98efd9214ceb1c89beedc40e67dd09349d5122076f6e16d1a552ee5b3e63
4242
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:d98cc101a0bdcb0666e965e71e7a472ea1e9ab6170aa7e2b4676987107704a58
43+
codeSamplesRevisionDigest: sha256:4de7cac024939b19dfba3601531280e278d2d8188dc063827694bda3992666fc
4444
workflow:
4545
workflowVersion: 1.0.0
46-
speakeasyVersion: 1.477.0
46+
speakeasyVersion: 1.517.3
4747
sources:
4848
mistral-azure-source:
4949
inputs:

0 commit comments

Comments
 (0)