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
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ speakeasyVersion: 1.763.6
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:a6918148cb6fdd9108b7bef0ef41fe5c9e79b18c65c0b52fc4d2afecf6db2d4d
sourceBlobDigest: sha256:dded6b429a29c2889469b10d19aecd41be2db06cde1a8408510120c8abfd9553
sourceRevisionDigest: sha256:faccd49c0a52252b8dfcc666a6a1ba3fa5c7eb36f93c58c9b49547c98a254918
sourceBlobDigest: sha256:b6f756ef1d57d93defe29a9f6789c746bd0c3b09e3f9e5fa0344ddf9ca47e5d7
tags:
- latest
- speakeasy-sdk-regen-1773084953
- speakeasy-mistralai-azure-sdk-26292833044-1
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:34edde5edcaf43acc036c9635cf4c60ce4e86f49b3fa2bed8960b995454e8d7c
Expand All @@ -24,10 +24,10 @@ targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:a6918148cb6fdd9108b7bef0ef41fe5c9e79b18c65c0b52fc4d2afecf6db2d4d
sourceBlobDigest: sha256:dded6b429a29c2889469b10d19aecd41be2db06cde1a8408510120c8abfd9553
sourceRevisionDigest: sha256:faccd49c0a52252b8dfcc666a6a1ba3fa5c7eb36f93c58c9b49547c98a254918
sourceBlobDigest: sha256:b6f756ef1d57d93defe29a9f6789c746bd0c3b09e3f9e5fa0344ddf9ca47e5d7
codeSamplesNamespace: mistral-openapi-azure-code-samples
codeSamplesRevisionDigest: sha256:b7620f11d5669423730c5790ef4a72bba3ab46dd453e6685edf420053abbcb30
codeSamplesRevisionDigest: sha256:aecd1edc929a931b5f9ce9013142d15163e9f4b9f6e11d96e96123177edd0d62
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
Expand Down
3 changes: 2 additions & 1 deletion examples/azure/chat_no_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
UserMessage(content="What is the capital of France?"),
]
res = client.chat.complete(model=AZURE_MODEL, messages=messages)
print(res.choices[0].message.content)
if res.choices and res.choices[0].message:
print(res.choices[0].message.content)
476 changes: 316 additions & 160 deletions packages/azure/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/azure/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 2.0.0
version: 2.1.0
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
12 changes: 11 additions & 1 deletion packages/azure/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [python v2.0.0] packages/azure
### Releases
- [PyPI v2.0.0] https://pypi.org/project/mistralai-azure/2.0.0 - packages/azure
- [PyPI v2.0.0] https://pypi.org/project/mistralai-azure/2.0.0 - packages/azure

## 2026-05-22 14:13:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.1.0] packages/azure
### Releases
- [PyPI v2.1.0] https://pypi.org/project/mistralai-azure/2.1.0 - packages/azure
9 changes: 9 additions & 0 deletions packages/azure/docs/models/apikeyauth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# APIKeyAuth


## Fields

| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `type` | *Literal["api-key"]* | :heavy_check_mark: | N/A |
| `value` | *str* | :heavy_check_mark: | N/A |
17 changes: 17 additions & 0 deletions packages/azure/docs/models/authorization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Authorization


## Supported Types

### `models.APIKeyAuth`

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

### `models.OAuth2TokenAuth`

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

19 changes: 12 additions & 7 deletions packages/azure/docs/models/builtinconnectors.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# BuiltInConnectors

## Example Usage

```python
from mistralai.azure.client.models import BuiltInConnectors
value: BuiltInConnectors = "web_search"
```


## Values

| Name | Value |
| -------------------- | -------------------- |
| `WEB_SEARCH` | web_search |
| `WEB_SEARCH_PREMIUM` | web_search_premium |
| `CODE_INTERPRETER` | code_interpreter |
| `IMAGE_GENERATION` | image_generation |
| `DOCUMENT_LIBRARY` | document_library |
- `"web_search"`
- `"web_search_premium"`
- `"code_interpreter"`
- `"image_generation"`
- `"document_library"`
3 changes: 2 additions & 1 deletion packages/azure/docs/models/chatcompletionchoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `index` | *int* | :heavy_check_mark: | N/A | 0 |
| `message` | [models.AssistantMessage](../models/assistantmessage.md) | :heavy_check_mark: | N/A | |
| `message` | [Optional[models.AssistantMessage]](../models/assistantmessage.md) | :heavy_minus_sign: | N/A | |
| `messages` | List[[models.DeltaMessage](../models/deltamessage.md)] | :heavy_minus_sign: | N/A | |
| `finish_reason` | [models.ChatCompletionChoiceFinishReason](../models/chatcompletionchoicefinishreason.md) | :heavy_check_mark: | N/A | stop |
23 changes: 16 additions & 7 deletions packages/azure/docs/models/chatcompletionchoicefinishreason.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# ChatCompletionChoiceFinishReason

## Example Usage

```python
from mistralai.azure.client.models import ChatCompletionChoiceFinishReason

# Open enum: unrecognized values are captured as UnrecognizedStr
value: ChatCompletionChoiceFinishReason = "stop"
```


## Values

| Name | Value |
| -------------- | -------------- |
| `STOP` | stop |
| `LENGTH` | length |
| `MODEL_LENGTH` | model_length |
| `ERROR` | error |
| `TOOL_CALLS` | tool_calls |
This is an open enum. Unrecognized values will not fail type checks.

- `"stop"`
- `"length"`
- `"model_length"`
- `"error"`
- `"tool_calls"`
Loading
Loading