Skip to content

Commit

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

* fix readme

* change pydantic constraint

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: gaspardBT <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 290e1bf commit d8ba2ef
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 162 deletions.
9 changes: 5 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
management:
docChecksum: e75ca54601920b2770d9a559b299d272
docVersion: 0.0.2
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
releaseVersion: 1.1.1
configChecksum: 450e609764e2b24aa8ece63616b81348
speakeasyVersion: 1.398.0
generationVersion: 2.415.8
releaseVersion: 1.1.0
configChecksum: 49094e0f156d020bd164f8b4bd41e97b
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
Expand Down Expand Up @@ -194,6 +194,7 @@ generatedFiles:
- poetry.toml
- py.typed
- pylintrc
- pyproject.toml
- scripts/compile.sh
- scripts/prepare-readme.py
- scripts/publish.sh
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.1.1
version: 1.1.0
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.396.7
speakeasyVersion: 1.398.0
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ if res is not None:

Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.

| Error Object | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4xx-5xx | */* |
| Error Object | Status Code | Content Type |
| -------------------------- | ----------- | ---------------- |
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4xx-5xx | */* |

### Example

Expand Down Expand Up @@ -520,9 +520,9 @@ except models.SDKError as e:

You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:

| Name | Server | Variables |
| ----- | ------ | --------- |
| `prod` | `https://api.mistral.ai` | None |
| Name | Server | Variables |
| ------ | ------------------------ | --------- |
| `prod` | `https://api.mistral.ai` | None |

#### Example

Expand Down Expand Up @@ -653,9 +653,9 @@ s = Mistral(async_client=CustomClient(httpx.AsyncClient()))

This SDK supports the following security scheme globally:

| Name | Type | Scheme | Environment Variable |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
| Name | Type | Scheme | Environment Variable |
| --------- | ---- | ----------- | -------------------- |
| `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |

To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
```python
Expand Down Expand Up @@ -709,4 +709,4 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
## Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [python v1.0.3] .
### Releases
- [PyPI v1.0.3] https://pypi.org/project/mistralai/1.0.3 - .
- [PyPI v1.0.3] https://pypi.org/project/mistralai/1.0.3 - .

## 2024-09-13 16:21:24
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.7 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.0] .
### Releases
- [PyPI v1.1.0] https://pypi.org/project/mistralai/1.1.0 - .
Loading

0 comments on commit d8ba2ef

Please sign in to comment.