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
45 changes: 35 additions & 10 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: 553c31591e8dc33a58cb75f348c3aa72
docChecksum: 81cc8be96362e2f1cb145b08a2e6c4fa
docVersion: 0.0.2
speakeasyVersion: 1.477.0
generationVersion: 2.497.0
releaseVersion: 1.5.0
configChecksum: 9a5649c5c372dc5fd2fde38a0faee40e
releaseVersion: 1.5.1
configChecksum: ef3439d915c5d16e7cfb88fe2bf94907
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
Expand Down Expand Up @@ -68,8 +68,6 @@ generatedFiles:
- docs/models/batchjobsout.md
- docs/models/batchjobsoutobject.md
- docs/models/batchjobstatus.md
- docs/models/chatclassificationrequest.md
- docs/models/chatclassificationrequestinputs.md
- docs/models/chatcompletionchoice.md
- docs/models/chatcompletionrequest.md
- docs/models/chatcompletionrequesttoolchoice.md
Expand All @@ -78,6 +76,8 @@ generatedFiles:
- docs/models/chatcompletionstreamrequestmessages.md
- docs/models/chatcompletionstreamrequeststop.md
- docs/models/chatcompletionstreamrequesttoolchoice.md
- docs/models/chatmoderationrequest.md
- docs/models/chatmoderationrequestinputs.md
- docs/models/checkpointout.md
- docs/models/classificationobject.md
- docs/models/classificationrequest.md
Expand All @@ -99,6 +99,8 @@ generatedFiles:
- docs/models/detailedjoboutobject.md
- docs/models/detailedjoboutrepositories.md
- docs/models/detailedjoboutstatus.md
- docs/models/document.md
- docs/models/documenturlchunk.md
- docs/models/embeddingrequest.md
- docs/models/embeddingresponse.md
- docs/models/embeddingresponsedata.md
Expand Down Expand Up @@ -166,9 +168,14 @@ generatedFiles:
- docs/models/modelcapabilities.md
- docs/models/modellist.md
- docs/models/object.md
- docs/models/ocrimageobject.md
- docs/models/ocrpagedimensions.md
- docs/models/ocrpageobject.md
- docs/models/ocrrequest.md
- docs/models/ocrresponse.md
- docs/models/ocrusageinfo.md
- docs/models/one.md
- docs/models/prediction.md
- docs/models/predictiontype.md
- docs/models/queryparamstatus.md
- docs/models/referencechunk.md
- docs/models/referencechunktype.md
Expand Down Expand Up @@ -227,6 +234,7 @@ generatedFiles:
- docs/sdks/mistral/README.md
- docs/sdks/mistraljobs/README.md
- docs/sdks/models/README.md
- docs/sdks/ocr/README.md
- poetry.toml
- py.typed
- pylintrc
Expand Down Expand Up @@ -261,11 +269,11 @@ generatedFiles:
- src/mistralai/models/batchjobout.py
- src/mistralai/models/batchjobsout.py
- src/mistralai/models/batchjobstatus.py
- src/mistralai/models/chatclassificationrequest.py
- src/mistralai/models/chatcompletionchoice.py
- src/mistralai/models/chatcompletionrequest.py
- src/mistralai/models/chatcompletionresponse.py
- src/mistralai/models/chatcompletionstreamrequest.py
- src/mistralai/models/chatmoderationrequest.py
- src/mistralai/models/checkpointout.py
- src/mistralai/models/classificationobject.py
- src/mistralai/models/classificationrequest.py
Expand All @@ -279,6 +287,7 @@ generatedFiles:
- src/mistralai/models/deletemodelout.py
- src/mistralai/models/deltamessage.py
- src/mistralai/models/detailedjobout.py
- src/mistralai/models/documenturlchunk.py
- src/mistralai/models/embeddingrequest.py
- src/mistralai/models/embeddingresponse.py
- src/mistralai/models/embeddingresponsedata.py
Expand Down Expand Up @@ -327,6 +336,12 @@ generatedFiles:
- src/mistralai/models/metricout.py
- src/mistralai/models/modelcapabilities.py
- src/mistralai/models/modellist.py
- src/mistralai/models/ocrimageobject.py
- src/mistralai/models/ocrpagedimensions.py
- src/mistralai/models/ocrpageobject.py
- src/mistralai/models/ocrrequest.py
- src/mistralai/models/ocrresponse.py
- src/mistralai/models/ocrusageinfo.py
- src/mistralai/models/prediction.py
- src/mistralai/models/referencechunk.py
- src/mistralai/models/responseformat.py
Expand Down Expand Up @@ -357,6 +372,7 @@ generatedFiles:
- src/mistralai/models/wandbintegration.py
- src/mistralai/models/wandbintegrationout.py
- src/mistralai/models_.py
- src/mistralai/ocr.py
- src/mistralai/py.typed
- src/mistralai/sdk.py
- src/mistralai/sdkconfiguration.py
Expand Down Expand Up @@ -607,7 +623,7 @@ examples:
embeddings_v1_embeddings_post:
speakeasy-default-embeddings-v1-embeddings-post:
requestBody:
application/json: {"input": ["Embed this sentence.", "As well as this one."], "model": "mistral-embed"}
application/json: {"model": "mistral-embed", "input": ["Embed this sentence.", "As well as this one."]}
responses:
"200":
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "data": [{"object": "embedding", "embedding": [0.1, 0.2, 0.3], "index": 0}, {"object": "embedding", "embedding": [0.4, 0.5, 0.6], "index": 1}]}
Expand All @@ -616,7 +632,7 @@ examples:
moderations_v1_moderations_post:
speakeasy-default-moderations-v1-moderations-post:
requestBody:
application/json: {"input": ["<value>"]}
application/json: {"model": "V90", "input": ["<value>"]}
responses:
"200":
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
Expand All @@ -625,11 +641,20 @@ examples:
moderations_chat_v1_chat_moderations_post:
speakeasy-default-moderations-chat-v1-chat-moderations-post:
requestBody:
application/json: {"input": [[{"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}], [{"prefix": false, "role": "assistant"}, {"content": "<value>", "role": "user"}, {"prefix": false, "role": "assistant"}]], "model": "Roadster"}
application/json: {"model": "Roadster", "input": [[{"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}], [{"prefix": false, "role": "assistant"}, {"content": "<value>", "role": "user"}, {"prefix": false, "role": "assistant"}]], "truncate_for_context_length": false}
responses:
"200":
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
"422":
application/json: {}
ocr_v1_ocr_post:
speakeasy-default-ocr-v1-ocr-post:
requestBody:
application/json: {"model": "Focus", "document": {"document_url": "https://dutiful-horst.org"}}
responses:
"200":
application/json: {"pages": [], "model": "A4", "usage_info": {"pages_processed": 442675}}
"422":
application/json: {}
examplesVersion: 1.0.0
generatedTests: {}
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.5.0
version: 1.5.1
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
Expand Up @@ -14,10 +14,11 @@ sources:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:af4a2854e017abc0ec9e4b557186611dcd69468d82d5ac7f81bfbe49165fc18d
sourceBlobDigest: sha256:9f1bbc418fba3c7b5031bacdf9d431aff476fb4b2aa3838ed50fb3922563703c
sourceRevisionDigest: sha256:bdfe3bd4e867529e1821e0f195c2d5832083f7699315f4a42d6b5551bd7847a3
sourceBlobDigest: sha256:7e8a475b75404d724fc7936bd6f585b8e5226d3dca00ab4b69807b53fb63151b
tags:
- latest
- speakeasy-sdk-regen-1741279153
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -36,13 +37,13 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:af4a2854e017abc0ec9e4b557186611dcd69468d82d5ac7f81bfbe49165fc18d
sourceBlobDigest: sha256:9f1bbc418fba3c7b5031bacdf9d431aff476fb4b2aa3838ed50fb3922563703c
sourceRevisionDigest: sha256:bdfe3bd4e867529e1821e0f195c2d5832083f7699315f4a42d6b5551bd7847a3
sourceBlobDigest: sha256:7e8a475b75404d724fc7936bd6f585b8e5226d3dca00ab4b69807b53fb63151b
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:cbf9b277d16c47816fc5d63b4c69cf0fbd1fe99d424c34ab465d2b61fcc6e5e8
codeSamplesRevisionDigest: sha256:ba10be893f3e6dae275eb8fb09a688f3652de81eebd314427f28c274800edc48
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
speakeasyVersion: 1.477.0
sources:
mistral-azure-source:
inputs:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
* [archive](docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
* [unarchive](docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model

### [ocr](docs/sdks/ocr/README.md)

* [process](docs/sdks/ocr/README.md#process) - OCR

</details>
<!-- End Available Resources and Operations [operations] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,14 @@ Based on:
### Generated
- [python v1.5.0] .
### Releases
- [PyPI v1.5.0] https://pypi.org/project/mistralai/1.5.0 - .
- [PyPI v1.5.0] https://pypi.org/project/mistralai/1.5.0 - .

## 2025-03-06 16:38:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.477.0 (2.497.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.5.1] .
### Releases
- [PyPI v1.5.1] https://pypi.org/project/mistralai/1.5.1 - .
12 changes: 6 additions & 6 deletions docs/models/assistantmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `content` | [OptionalNullable[models.AssistantMessageContent]](../models/assistantmessagecontent.md) | :heavy_minus_sign: | N/A |
| `tool_calls` | List[[models.ToolCall](../models/toolcall.md)] | :heavy_minus_sign: | N/A |
| `prefix` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `role` | [Optional[models.AssistantMessageRole]](../models/assistantmessagerole.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `content` | [OptionalNullable[models.AssistantMessageContent]](../models/assistantmessagecontent.md) | :heavy_minus_sign: | N/A |
| `tool_calls` | List[[models.ToolCall](../models/toolcall.md)] | :heavy_minus_sign: | N/A |
| `prefix` | *Optional[bool]* | :heavy_minus_sign: | Set this to `true` when adding an assistant message as prefix to condition the model response. The role of the prefix message is to force the model to start its answer by the content of the message. |
| `role` | [Optional[models.AssistantMessageRole]](../models/assistantmessagerole.md) | :heavy_minus_sign: | N/A |
9 changes: 0 additions & 9 deletions docs/models/chatclassificationrequest.md

This file was deleted.

Loading