Skip to content

Commit aee92fa

Browse files
authored
fix fc streaming (#127)
1 parent b0e02bc commit aee92fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+389
-286
lines changed

.github/workflows/sdk_generation_mistralai_sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
mode: pr
2323
set_version: ${{ github.event.inputs.set_version }}
2424
speakeasy_version: latest
25-
target: mistralai-sdk
25+
target: all
2626
secrets:
2727
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2828
pypi_token: ${{ secrets.PYPI_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
README-PYPI.md
12
.venv/
23
pyrightconfig.json
34
src/*.egg-info/

.speakeasy/gen.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
lockVersion: 2.0.0
22
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
33
management:
4-
docChecksum: 9e7a46648104410da4d94d5c2b373d20
4+
docChecksum: a7c4268dd1228c969aecfd7cfdb6ca3c
55
docVersion: 0.0.2
6-
speakeasyVersion: 1.356.0
7-
generationVersion: 2.388.1
8-
releaseVersion: 1.0.0
9-
configChecksum: ab3daea0e59b8225d1742719ddfb86f4
6+
speakeasyVersion: 1.357.4
7+
generationVersion: 2.390.6
8+
releaseVersion: 1.0.2
9+
configChecksum: ed07f7fc253047a5a4dd2c0f813b8ea4
1010
repoURL: https://github.com/mistralai/client-python.git
1111
installationURL: https://github.com/mistralai/client-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.2
17-
core: 5.3.4
17+
core: 5.3.7
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.1
2020
examples: 3.0.0
2121
flatRequests: 1.0.1
2222
flattening: 3.0.0
23-
globalSecurity: 3.0.1
23+
globalSecurity: 3.0.2
2424
globalSecurityCallbacks: 1.0.0
2525
globalSecurityFlattening: 1.0.0
2626
globalServerURLs: 3.0.0
@@ -51,6 +51,7 @@ generatedFiles:
5151
- py.typed
5252
- pylintrc
5353
- scripts/compile.sh
54+
- scripts/prepare-readme.py
5455
- scripts/publish.sh
5556
- src/mistralai/__init__.py
5657
- src/mistralai/basesdk.py

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 1.0.0
15+
version: 1.0.2
1616
additionalDependencies:
1717
dev:
1818
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.356.0
1+
speakeasyVersion: 1.357.4
22
sources: {}
33
targets:
44
mistralai-azure-sdk:
@@ -9,7 +9,7 @@ targets:
99
outLocation: ./packages/mistralai_gcp
1010
mistralai-sdk:
1111
source: mistral-openapi
12-
outLocation: /github/workspace/repo
12+
outLocation: /Users/gaspard/public-mistral/client-python
1313
workflow:
1414
workflowVersion: 1.0.0
1515
speakeasyVersion: latest

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ This SDK supports the following security scheme globally:
629629
| -------------------- | -------------------- | -------------------- | -------------------- |
630630
| `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
631631

632-
To authenticate with the API the `null` parameter must be set when initializing the SDK client instance. For example:
632+
To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
633633
```python
634634
from mistralai import Mistral
635635
import os
@@ -662,6 +662,16 @@ s = Mistral(debug_logger=logging.getLogger("mistralai"))
662662
```
663663
<!-- End Debugging [debug] -->
664664

665+
<!-- Start IDE Support [idesupport] -->
666+
## IDE Support
667+
668+
### PyCharm
669+
670+
Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.
671+
672+
- [PyCharm Pydantic Plugin](https://docs.pydantic.dev/latest/integrations/pycharm/)
673+
<!-- End IDE Support [idesupport] -->
674+
665675
<!-- Placeholder for Future Speakeasy SDK Sections -->
666676

667677
# Development

docs/models/deltamessage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
8-
| `role` | *Optional[str]* | :heavy_minus_sign: | N/A |
9-
| `content` | *Optional[str]* | :heavy_minus_sign: | N/A |
10-
| `tool_calls` | [OptionalNullable[models.ToolCall]](../models/toolcall.md) | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
8+
| `role` | *Optional[str]* | :heavy_minus_sign: | N/A |
9+
| `content` | *Optional[str]* | :heavy_minus_sign: | N/A |
10+
| `tool_calls` | List[[models.ToolCall](../models/toolcall.md)] | :heavy_minus_sign: | N/A |

packages/mistralai_azure/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
README-PYPI.md
12
.venv/
23
venv/
34
src/*.egg-info/

packages/mistralai_azure/.speakeasy/gen.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
lockVersion: 2.0.0
22
id: dc40fa48-2c4d-46ad-ac8b-270749770f34
33
management:
4-
docChecksum: f04749e097bb06d5fb8850400b089250
4+
docChecksum: ec02d5407fd9354b416518c4b8fa8b95
55
docVersion: 0.0.2
6-
speakeasyVersion: 1.356.0
7-
generationVersion: 2.388.1
8-
releaseVersion: 1.0.0-rc.2
9-
configChecksum: 98e9cf39c9535097961a0ca73dbac10b
6+
speakeasyVersion: 1.357.4
7+
generationVersion: 2.390.6
8+
releaseVersion: 1.0.0-rc.4
9+
configChecksum: ad8d0273f78dacd83fbba33510acd0a5
1010
published: true
1111
features:
1212
python:
1313
additionalDependencies: 1.0.0
1414
constsAndDefaults: 1.0.2
15-
core: 5.3.4
15+
core: 5.3.7
1616
defaultEnabledRetries: 0.2.0
1717
envVarSecurityUsage: 0.3.1
1818
examples: 3.0.0
1919
flatRequests: 1.0.1
20-
globalSecurity: 3.0.1
20+
globalSecurity: 3.0.2
2121
globalSecurityCallbacks: 1.0.0
2222
globalSecurityFlattening: 1.0.0
2323
globalServerURLs: 3.0.0
@@ -39,6 +39,7 @@ generatedFiles:
3939
- pylintrc
4040
- pyproject.toml
4141
- scripts/compile.sh
42+
- scripts/prepare-readme.py
4243
- scripts/publish.sh
4344
- src/mistralai_azure/__init__.py
4445
- src/mistralai_azure/basesdk.py

packages/mistralai_azure/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 1.0.0-rc.2
15+
version: 1.0.0-rc.4
1616
additionalDependencies:
1717
dev:
1818
pytest: ^8.2.2

0 commit comments

Comments
 (0)