Skip to content

Commit

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

* update dry run example

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: gaspardBT <[email protected]>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent 3c56068 commit f62530a
Show file tree
Hide file tree
Showing 77 changed files with 560 additions and 205 deletions.
33 changes: 27 additions & 6 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: 87135817a5a746d7466c41070e5f581e
docChecksum: ad1a7d6946828a089ca3831e257d307d
docVersion: 0.0.2
speakeasyVersion: 1.373.1
generationVersion: 2.399.0
releaseVersion: 1.0.1
configChecksum: 374a669373f10730cda1eb9a91d59b8b
speakeasyVersion: 1.376.0
generationVersion: 2.402.5
releaseVersion: 1.0.2
configChecksum: ed07f7fc253047a5a4dd2c0f813b8ea4
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.2
core: 5.3.8
core: 5.4.1
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
examples: 3.0.0
Expand Down Expand Up @@ -163,43 +163,64 @@ generatedFiles:
- docs/models/retrievemodelv1modelsmodelidgetrequest.md
- docs/models/deletemodelout.md
- docs/models/deletemodelv1modelsmodeliddeleterequest.md
- docs/models/ftmodeloutobject.md
- docs/models/ftmodelout.md
- docs/models/ftmodelcapabilitiesout.md
- docs/models/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md
- docs/models/updateftmodelin.md
- docs/models/archiveftmodeloutobject.md
- docs/models/archiveftmodelout.md
- docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md
- docs/models/unarchiveftmodeloutobject.md
- docs/models/unarchiveftmodelout.md
- docs/models/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md
- docs/models/purpose.md
- docs/models/uploadfileout.md
- docs/models/source.md
- docs/models/sampletype.md
- docs/models/filesapiroutesuploadfilepurpose.md
- docs/models/file.md
- docs/models/filesapiroutesuploadfilemultipartbodyparams.md
- docs/models/listfilesout.md
- docs/models/fileschemapurpose.md
- docs/models/fileschema.md
- docs/models/retrievefileoutpurpose.md
- docs/models/retrievefileout.md
- docs/models/filesapiroutesretrievefilerequest.md
- docs/models/deletefileout.md
- docs/models/filesapiroutesdeletefilerequest.md
- docs/models/jobsoutobject.md
- docs/models/jobsout.md
- docs/models/status.md
- docs/models/object.md
- docs/models/integrations.md
- docs/models/repositories.md
- docs/models/jobout.md
- docs/models/jobmetadataout.md
- docs/models/githubrepositoryouttype.md
- docs/models/githubrepositoryout.md
- docs/models/type.md
- docs/models/wandbintegrationout.md
- docs/models/finetuneablemodel.md
- docs/models/trainingparameters.md
- docs/models/queryparamstatus.md
- docs/models/jobsapiroutesfinetuninggetfinetuningjobsrequest.md
- docs/models/jobsapiroutesfinetuningcreatefinetuningjobresponse.md
- docs/models/legacyjobmetadataoutobject.md
- docs/models/legacyjobmetadataout.md
- docs/models/jobinintegrations.md
- docs/models/jobinrepositories.md
- docs/models/jobin.md
- docs/models/githubrepositoryintype.md
- docs/models/githubrepositoryin.md
- docs/models/wandbintegrationtype.md
- docs/models/wandbintegration.md
- docs/models/trainingparametersin.md
- docs/models/trainingfile.md
- docs/models/detailedjoboutstatus.md
- docs/models/detailedjoboutobject.md
- docs/models/detailedjoboutintegrations.md
- docs/models/detailedjoboutrepositories.md
- docs/models/detailedjobout.md
- docs/models/checkpointout.md
- docs/models/metricout.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 1.0.1
version: 1.0.2
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.373.1
speakeasyVersion: 1.376.0
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
Expand All @@ -14,10 +14,11 @@ sources:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:088d899162941380ec90445852dc7e8c65a8e2eab6b32f552fd7f4fc6f152e76
sourceBlobDigest: sha256:feb2a952c0f5757a656e8fed5614e28bc4da195cbeb548b5aaf4fc09aee4ddac
sourceRevisionDigest: sha256:421a4bd55fd50ba00d6ebf2db603888009e9996b642b0499110c223fd6ca21c2
sourceBlobDigest: sha256:1c87b4b8287f6a3083167c13ab59c5e7ac180ab7e19ad1532f3f46495cc12a26
tags:
- latest
- main
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -34,9 +35,9 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:088d899162941380ec90445852dc7e8c65a8e2eab6b32f552fd7f4fc6f152e76
sourceBlobDigest: sha256:feb2a952c0f5757a656e8fed5614e28bc4da195cbeb548b5aaf4fc09aee4ddac
outLocation: /Users/gaspard/public-mistral/client-python
sourceRevisionDigest: sha256:421a4bd55fd50ba00d6ebf2db603888009e9996b642b0499110c223fd6ca21c2
sourceBlobDigest: sha256:1c87b4b8287f6a3083167c13ab59c5e7ac180ab7e19ad1532f3f46495cc12a26
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,15 +651,18 @@ if res is not None:
<!-- Start Debugging [debug] -->
## Debugging

To emit debug logs for SDK requests and responses you can pass a logger object directly into your SDK object.
You can setup your SDK to emit debug logs for SDK requests and responses.

You can pass your own logger class directly into your SDK.
```python
from mistralai import Mistral
import logging

logging.basicConfig(level=logging.DEBUG)
s = Mistral(debug_logger=logging.getLogger("mistralai"))
```

You can also enable a default debug logger by setting an environment variable `MISTRAL_DEBUG` to true.
<!-- End Debugging [debug] -->

<!-- Start IDE Support [idesupport] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ Based on:
### Generated
- [python v1.0.1] .
### Releases
- [PyPI v1.0.1] https://pypi.org/project/mistralai/1.0.1 - .
- [PyPI v1.0.1] https://pypi.org/project/mistralai/1.0.1 - .

## 2024-08-20 08:36:28
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.376.0 (2.402.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.0.2] .
### Releases
- [PyPI v1.0.2] https://pypi.org/project/mistralai/1.0.2 - .
10 changes: 5 additions & 5 deletions docs/models/archiveftmodelout.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `id` | *str* | :heavy_check_mark: | N/A |
| `object` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `archived` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `id` | *str* | :heavy_check_mark: | N/A |
| `object` | [Optional[models.ArchiveFTModelOutObject]](../models/archiveftmodeloutobject.md) | :heavy_minus_sign: | N/A |
| `archived` | *Optional[bool]* | :heavy_minus_sign: | N/A |
8 changes: 8 additions & 0 deletions docs/models/archiveftmodeloutobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ArchiveFTModelOutObject


## Values

| Name | Value |
| ------- | ------- |
| `MODEL` | model |
6 changes: 3 additions & 3 deletions docs/models/detailedjobout.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
| `modified_at` | *int* | :heavy_check_mark: | N/A |
| `training_files` | List[*str*] | :heavy_check_mark: | N/A |
| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A |
| `object` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `object` | [Optional[models.DetailedJobOutObject]](../models/detailedjoboutobject.md) | :heavy_minus_sign: | N/A |
| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `integrations` | List[[models.WandbIntegrationOut](../models/wandbintegrationout.md)] | :heavy_minus_sign: | N/A |
| `integrations` | List[[models.DetailedJobOutIntegrations](../models/detailedjoboutintegrations.md)] | :heavy_minus_sign: | N/A |
| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
| `repositories` | List[[models.GithubRepositoryOut](../models/githubrepositoryout.md)] | :heavy_minus_sign: | N/A |
| `repositories` | List[[models.DetailedJobOutRepositories](../models/detailedjoboutrepositories.md)] | :heavy_minus_sign: | N/A |
| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A |
| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. |
| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A |
11 changes: 11 additions & 0 deletions docs/models/detailedjoboutintegrations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DetailedJobOutIntegrations


## Supported Types

### `models.WandbIntegrationOut`

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

8 changes: 8 additions & 0 deletions docs/models/detailedjoboutobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# DetailedJobOutObject


## Values

| Name | Value |
| ----- | ----- |
| `JOB` | job |
11 changes: 11 additions & 0 deletions docs/models/detailedjoboutrepositories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DetailedJobOutRepositories


## Supported Types

### `models.GithubRepositoryOut`

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

Loading

0 comments on commit f62530a

Please sign in to comment.