Skip to content

Commit 821aa40

Browse files
publish 1.0.0 (#125)
Co-authored-by: speakeasybot <[email protected]>
1 parent 0fb8b64 commit 821aa40

File tree

9 files changed

+36
-23
lines changed

9 files changed

+36
-23
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
lockVersion: 2.0.0
22
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
33
management:
4-
docChecksum: ab9fe4a3c278619e334a828e2c336554
4+
docChecksum: 9e7a46648104410da4d94d5c2b373d20
55
docVersion: 0.0.2
66
speakeasyVersion: 1.356.0
77
generationVersion: 2.388.1
8-
releaseVersion: 1.0.0-rc.2
9-
configChecksum: 09abab5b4ed374c8d48d4e9b9ca6eb65
8+
releaseVersion: 1.0.0
9+
configChecksum: ab3daea0e59b8225d1742719ddfb86f4
10+
repoURL: https://github.com/mistralai/client-python.git
11+
installationURL: https://github.com/mistralai/client-python.git
1012
published: true
1113
features:
1214
python:

.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
1616
additionalDependencies:
1717
dev:
1818
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ targets:
99
outLocation: ./packages/mistralai_gcp
1010
mistralai-sdk:
1111
source: mistral-openapi
12-
outLocation: /Users/gaspard/public-mistral/client-python
12+
outLocation: /github/workspace/repo
1313
workflow:
1414
workflowVersion: 1.0.0
1515
speakeasyVersion: latest

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
324324

325325
### [agents](docs/sdks/agents/README.md)
326326

327-
* [complete](docs/sdks/agents/README.md#complete) - Chat Completion
327+
* [complete](docs/sdks/agents/README.md#complete) - Agents Completion
328328
* [stream](docs/sdks/agents/README.md#stream) - Stream Agents completion
329329

330330
### [embeddings](docs/sdks/embeddings/README.md)
@@ -450,10 +450,10 @@ if res is not None:
450450

451451
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.
452452

453-
| Error Object | Status Code | Content Type |
454-
| -------------------------- | ----------- | ---------------- |
455-
| models.HTTPValidationError | 422 | application/json |
456-
| models.SDKError | 4xx-5xx | */* |
453+
| Error Object | Status Code | Content Type |
454+
| -------------------------- | -------------------------- | -------------------------- |
455+
| models.HTTPValidationError | 422 | application/json |
456+
| models.SDKError | 4xx-5xx | */* |
457457

458458
### Example
459459

@@ -490,9 +490,9 @@ if res is not None:
490490

491491
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:
492492

493-
| Name | Server | Variables |
494-
| ------ | ------------------------ | --------- |
495-
| `prod` | `https://api.mistral.ai` | None |
493+
| Name | Server | Variables |
494+
| ----- | ------ | --------- |
495+
| `prod` | `https://api.mistral.ai` | None |
496496

497497
#### Example
498498

@@ -625,9 +625,9 @@ s = Mistral(async_client=CustomClient(httpx.AsyncClient()))
625625

626626
This SDK supports the following security scheme globally:
627627

628-
| Name | Type | Scheme | Environment Variable |
629-
| --------- | ---- | ----------- | -------------------- |
630-
| `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
628+
| Name | Type | Scheme | Environment Variable |
629+
| -------------------- | -------------------- | -------------------- | -------------------- |
630+
| `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
631631

632632
To authenticate with the API the `null` parameter must be set when initializing the SDK client instance. For example:
633633
```python

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2024-08-07 14:25:13
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.356.0 (2.388.1) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [python v1.0.0] .
10+
### Releases
11+
- [PyPI v1.0.0] https://pypi.org/project/mistralai/1.0.0 - .

docs/sdks/agents/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Agents API.
77

88
### Available Operations
99

10-
* [complete](#complete) - Chat Completion
10+
* [complete](#complete) - Agents Completion
1111
* [stream](#stream) - Stream Agents completion
1212

1313
## complete
1414

15-
Chat Completion
15+
Agents Completion
1616

1717
### Example Usage
1818

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mistralai"
3-
version = "1.0.0-rc.2"
3+
version = "1.0.0"
44
description = "Python Client SDK for the Mistral AI API."
55
authors = ["Mistral"]
66
readme = "README.md"

src/mistralai/agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def complete(
2727
server_url: Optional[str] = None,
2828
timeout_ms: Optional[int] = None,
2929
) -> Optional[models.ChatCompletionResponse]:
30-
r"""Chat Completion
30+
r"""Agents Completion
3131
3232
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
3333
:param agent_id: The ID of the agent to use for this completion.
@@ -131,7 +131,7 @@ async def complete_async(
131131
server_url: Optional[str] = None,
132132
timeout_ms: Optional[int] = None,
133133
) -> Optional[models.ChatCompletionResponse]:
134-
r"""Chat Completion
134+
r"""Agents Completion
135135
136136
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
137137
:param agent_id: The ID of the agent to use for this completion.

src/mistralai/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class SDKConfiguration:
2929
server: Optional[str] = ""
3030
language: str = "python"
3131
openapi_doc_version: str = "0.0.2"
32-
sdk_version: str = "1.0.0-rc.2"
32+
sdk_version: str = "1.0.0"
3333
gen_version: str = "2.388.1"
34-
user_agent: str = "speakeasy-sdk/python 1.0.0-rc.2 2.388.1 0.0.2 mistralai"
34+
user_agent: str = "speakeasy-sdk/python 1.0.0 2.388.1 0.0.2 mistralai"
3535
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
3636
timeout_ms: Optional[int] = None
3737

0 commit comments

Comments
 (0)