Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
management:
docChecksum: 3589e9f1ea5775264c5c8e0887b4ea0e
docVersion: 1.0.0
docChecksum: 63f1a973632e9afab0da3d2498994c1b
docVersion: 0.0.2
speakeasyVersion: 1.517.3
generationVersion: 2.548.6
releaseVersion: 1.7.1
configChecksum: d35541d61057b11258d7d56bbc5c5260
releaseVersion: 1.7.0
configChecksum: d52ab0a71ab9e0798da08262c59bf31d
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 1.7.1
version: 1.7.0
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
11 changes: 5 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ sources:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:14f5a88b723582e80ead33d129f287568eed05815a9437b7ff5c890ca4c93318
sourceBlobDigest: sha256:230b4f22197e202aebd70f8628844a27fe70b9b27569dbc3338d3e7d5442cb88
sourceRevisionDigest: sha256:e7953d0c99d1c036d6bfe223052f231a89626f7007a105a96258dad2eedab39e
sourceBlobDigest: sha256:66ed2d18b563f3350de4ab16c9e2ca6ce425c6376feb5fcf1511d5d074908091
tags:
- latest
- speakeasy-sdk-regen-1747922489
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -37,10 +36,10 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:14f5a88b723582e80ead33d129f287568eed05815a9437b7ff5c890ca4c93318
sourceBlobDigest: sha256:230b4f22197e202aebd70f8628844a27fe70b9b27569dbc3338d3e7d5442cb88
sourceRevisionDigest: sha256:e7953d0c99d1c036d6bfe223052f231a89626f7007a105a96258dad2eedab39e
sourceBlobDigest: sha256:66ed2d18b563f3350de4ab16c9e2ca6ce425c6376feb5fcf1511d5d074908091
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:d75cede62f03f1040732d65da392f66fe75c725dab04cdfba5498ad334652c1e
codeSamplesRevisionDigest: sha256:7c657301f482932fca0a3e914d3c25820ebb7e535e1887daea3cd9240eca0444
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.517.3
Expand Down
14 changes: 1 addition & 13 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,4 @@ Based on:
### Generated
- [python v1.7.0] .
### Releases
- [PyPI v1.7.0] https://pypi.org/project/mistralai/1.7.0 - .

## 2025-05-22 14:01:13
### Changes
- Added support for `document_annotation_format` and `bbox_annotation_format` in `client.ocr.process`

Based on:
- OpenAPI Doc
- Speakeasy CLI 1.517.3 (2.548.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.7.1] .
### Releases
- [PyPI v1.7.1] https://pypi.org/project/mistralai/1.7.1 - .
- [PyPI v1.7.0] https://pypi.org/project/mistralai/1.7.0 - .
3 changes: 1 addition & 2 deletions docs/models/ocrimageobject.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
| `top_left_y` | *Nullable[int]* | :heavy_check_mark: | Y coordinate of top-left corner of the extracted image |
| `bottom_right_x` | *Nullable[int]* | :heavy_check_mark: | X coordinate of bottom-right corner of the extracted image |
| `bottom_right_y` | *Nullable[int]* | :heavy_check_mark: | Y coordinate of bottom-right corner of the extracted image |
| `image_base64` | *OptionalNullable[str]* | :heavy_minus_sign: | Base64 string of the extracted image |
| `image_annotation` | *OptionalNullable[str]* | :heavy_minus_sign: | Annotation of the extracted image in json str |
| `image_base64` | *OptionalNullable[str]* | :heavy_minus_sign: | Base64 string of the extracted image |
20 changes: 9 additions & 11 deletions docs/models/ocrrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `document` | [models.Document](../models/document.md) | :heavy_check_mark: | Document to run OCR on |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `pages` | List[*int*] | :heavy_minus_sign: | Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0 |
| `include_image_base64` | *OptionalNullable[bool]* | :heavy_minus_sign: | Include image URLs in response |
| `image_limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Max images to extract |
| `image_min_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Minimum height and width of image to extract |
| `bbox_annotation_format` | [OptionalNullable[models.ResponseFormat]](../models/responseformat.md) | :heavy_minus_sign: | Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field |
| `document_annotation_format` | [OptionalNullable[models.ResponseFormat]](../models/responseformat.md) | :heavy_minus_sign: | Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `model` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `document` | [models.Document](../models/document.md) | :heavy_check_mark: | Document to run OCR on |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `pages` | List[*int*] | :heavy_minus_sign: | Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0 |
| `include_image_base64` | *OptionalNullable[bool]* | :heavy_minus_sign: | Include image URLs in response |
| `image_limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Max images to extract |
| `image_min_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Minimum height and width of image to extract |
11 changes: 5 additions & 6 deletions docs/models/ocrresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `pages` | List[[models.OCRPageObject](../models/ocrpageobject.md)] | :heavy_check_mark: | List of OCR info for pages. |
| `model` | *str* | :heavy_check_mark: | The model used to generate the OCR. |
| `usage_info` | [models.OCRUsageInfo](../models/ocrusageinfo.md) | :heavy_check_mark: | N/A |
| `document_annotation` | *OptionalNullable[str]* | :heavy_minus_sign: | Formatted response in the request_format if provided in json str |
| Field | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `pages` | List[[models.OCRPageObject](../models/ocrpageobject.md)] | :heavy_check_mark: | List of OCR info for pages. |
| `model` | *str* | :heavy_check_mark: | The model used to generate the OCR. |
| `usage_info` | [models.OCRUsageInfo](../models/ocrusageinfo.md) | :heavy_check_mark: | N/A |
Loading
Loading