Skip to content

Commit

Permalink
Merge pull request #63 from mistralai/speakeasy-sdk-regen-1733305353
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate MISTRALAI-SDK 1.3.5
  • Loading branch information
aac228 authored Dec 4, 2024
2 parents da73a50 + 4b50719 commit f03501e
Show file tree
Hide file tree
Showing 176 changed files with 3,378 additions and 313 deletions.
34 changes: 23 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 81b65c50-f2e3-40a3-bd65-346524007b3d
management:
docChecksum: d066d98bdd0ef905d4126e0e69940946
docChecksum: 36ad3563d9d2b3af47015100d060570b
docVersion: 0.0.2
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 1.3.4
configChecksum: 4cee1a313f733ed74b7e454a4b175e31
speakeasyVersion: 1.451.1
generationVersion: 2.470.1
releaseVersion: 1.3.5
configChecksum: d2307fad7fbd3b81b133559b4741a46a
repoURL: https://github.com/mistralai/client-ts.git
installationURL: https://github.com/mistralai/client-ts
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.3
core: 3.18.8
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
downloadStreams: 0.1.1
Expand All @@ -35,7 +35,6 @@ features:
serverEvents: 0.1.5
serverEventsSentinels: 0.1.0
serverIDs: 2.81.2
tests: 0.7.0
unions: 2.85.8
uploadStreams: 0.1.0
generatedFiles:
Expand Down Expand Up @@ -108,12 +107,12 @@ generatedFiles:
- docs/models/components/eventout.md
- docs/models/components/filepurpose.md
- docs/models/components/fileschema.md
- docs/models/components/filesignedurl.md
- docs/models/components/fimcompletionrequest.md
- docs/models/components/fimcompletionrequeststop.md
- docs/models/components/fimcompletionresponse.md
- docs/models/components/fimcompletionstreamrequest.md
- docs/models/components/fimcompletionstreamrequeststop.md
- docs/models/components/finetuneablemodel.md
- docs/models/components/finishreason.md
- docs/models/components/ftmodelcapabilitiesout.md
- docs/models/components/ftmodelcard.md
Expand Down Expand Up @@ -196,6 +195,7 @@ generatedFiles:
- docs/models/operations/deletemodelv1modelsmodeliddeleterequest.md
- docs/models/operations/filesapiroutesdeletefilerequest.md
- docs/models/operations/filesapiroutesdownloadfilerequest.md
- docs/models/operations/filesapiroutesgetsignedurlrequest.md
- docs/models/operations/filesapirouteslistfilesrequest.md
- docs/models/operations/filesapiroutesretrievefilerequest.md
- docs/models/operations/filesapiroutesuploadfilemultipartbodyparams.md
Expand Down Expand Up @@ -242,6 +242,7 @@ generatedFiles:
- src/funcs/embeddingsCreate.ts
- src/funcs/filesDelete.ts
- src/funcs/filesDownload.ts
- src/funcs/filesGetSignedUrl.ts
- src/funcs/filesList.ts
- src/funcs/filesRetrieve.ts
- src/funcs/filesUpload.ts
Expand Down Expand Up @@ -313,10 +314,10 @@ generatedFiles:
- src/models/components/eventout.ts
- src/models/components/filepurpose.ts
- src/models/components/fileschema.ts
- src/models/components/filesignedurl.ts
- src/models/components/fimcompletionrequest.ts
- src/models/components/fimcompletionresponse.ts
- src/models/components/fimcompletionstreamrequest.ts
- src/models/components/finetuneablemodel.ts
- src/models/components/ftmodelcapabilitiesout.ts
- src/models/components/ftmodelcard.ts
- src/models/components/ftmodelout.ts
Expand Down Expand Up @@ -371,6 +372,7 @@ generatedFiles:
- src/models/operations/deletemodelv1modelsmodeliddelete.ts
- src/models/operations/filesapiroutesdeletefile.ts
- src/models/operations/filesapiroutesdownloadfile.ts
- src/models/operations/filesapiroutesgetsignedurl.ts
- src/models/operations/filesapirouteslistfiles.ts
- src/models/operations/filesapiroutesretrievefile.ts
- src/models/operations/filesapiroutesuploadfile.ts
Expand Down Expand Up @@ -493,7 +495,7 @@ examples:
application/json: {"model": "codestral-latest"}
responses:
"200":
application/json: {"id": "a621cf02-1cd9-4cf5-8403-315211a509a3", "auto_start": false, "model": "open-mistral-7b", "status": "FAILED", "job_type": "<value>", "created_at": 550483, "modified_at": 906537, "training_files": ["74c2becc-3769-4177-b5e0-24985613de0e"]}
application/json: {"id": "a621cf02-1cd9-4cf5-8403-315211a509a3", "auto_start": false, "model": "2", "status": "FAILED", "job_type": "<value>", "created_at": 550483, "modified_at": 906537, "training_files": ["74c2becc-3769-4177-b5e0-24985613de0e"]}
jobs_api_routes_fine_tuning_get_fine_tuning_job:
speakeasy-default-jobs-api-routes-fine-tuning-get-fine-tuning-job:
parameters:
Expand Down Expand Up @@ -560,7 +562,7 @@ examples:
application/json: {"input": ["Embed this sentence.", "As well as this one."], "model": "Wrangler"}
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}]}
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}]}
"422": {}
moderations_v1_moderations_post:
speakeasy-default-moderations-v1-moderations-post:
Expand Down Expand Up @@ -611,3 +613,13 @@ examples:
responses:
"200":
application/json: {"id": "<id>", "input_files": ["50fbe4e3-e326-4135-8744-d82f3fd6b3c1", "eb45e247-ac10-4cdc-8311-2f7cc9241230", "4afaa0f8-4bd4-4945-9116-89d07a64aa72"], "endpoint": "<value>", "model": "Alpine", "errors": [{"message": "<value>"}, {"message": "<value>"}], "status": "QUEUED", "created_at": 709109, "total_requests": 275794, "completed_requests": 158938, "succeeded_requests": 12381, "failed_requests": 11864}
files_api_routes_get_signed_url:
speakeasy-default-files-api-routes-get-signed-url:
parameters:
path:
file_id: "<id>"
query: {}
responses:
"200":
application/json: {"url": "https://scornful-daughter.com/"}
generatedTests: {}
1 change: 1 addition & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ typescript:
author: Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableReactQuery: false
enumFormat: union
envVarPrefix: MISTRAL
flattenGlobalSecurity: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ sources:
- speakeasy-sdk-regen-1733235231
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:9b6ad47076b570f4e23494bf744a7822547d0003e4b10985f26f1c3b5128e631
sourceBlobDigest: sha256:150e3da2a6bfb74e86e2ce864e9a094fc796f3a08df91f6a6e8745b54b3e16bc
sourceRevisionDigest: sha256:f74c08bdc7ae39f5fe2394df8f31ae623ece30a7f65019ab6b7bcea352953f05
sourceBlobDigest: sha256:5de08a038994ec94c0889341d434b598f541459d114f9935deb9ef3b3af90c5f
tags:
- latest
- main
- speakeasy-sdk-regen-1733305353
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -39,10 +39,10 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:9b6ad47076b570f4e23494bf744a7822547d0003e4b10985f26f1c3b5128e631
sourceBlobDigest: sha256:150e3da2a6bfb74e86e2ce864e9a094fc796f3a08df91f6a6e8745b54b3e16bc
sourceRevisionDigest: sha256:f74c08bdc7ae39f5fe2394df8f31ae623ece30a7f65019ab6b7bcea352953f05
sourceBlobDigest: sha256:5de08a038994ec94c0889341d434b598f541459d114f9935deb9ef3b3af90c5f
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:261925abf2036898c032e021086d2a1d6cb2241c9063bf5202adb256144836b2
codeSamplesRevisionDigest: sha256:e7989c74aebc408acdc20321b57b71a93a5ac3b1e121ab1d2b77b070fcb13671
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,27 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Mistral Typescript Client](#mistral-typescript-client)
* [SDK Installation](#sdk-installation)
* [Requirements](#requirements)
* [API Key Setup](#api-key-setup)
* [SDK Example Usage](#sdk-example-usage)
* [Providers' SDKs](#providers-sdks)
* [Available Resources and Operations](#available-resources-and-operations)
* [Server-sent event streaming](#server-sent-event-streaming)
* [File uploads](#file-uploads)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Providers Support](#providers-support)
* [Standalone functions](#standalone-functions)
* [Debugging](#debugging)
* [Development](#development)
* [Contributions](#contributions)

* [SDK Installation](#sdk-installation)
* [Requirements](#requirements)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Standalone functions](#standalone-functions)
* [Server-sent event streaming](#server-sent-event-streaming)
* [File uploads](#file-uploads)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Debugging](#debugging)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -246,6 +253,7 @@ We have dedicated SDKs for the following providers:
* [retrieve](docs/sdks/files/README.md#retrieve) - Retrieve File
* [delete](docs/sdks/files/README.md#delete) - Delete File
* [download](docs/sdks/files/README.md#download) - Download File
* [getSignedUrl](docs/sdks/files/README.md#getsignedurl) - Get Signed Url

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

Expand Down Expand Up @@ -657,6 +665,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`embeddingsCreate`](docs/sdks/embeddings/README.md#create) - Embeddings
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete File
- [`filesDownload`](docs/sdks/files/README.md#download) - Download File
- [`filesGetSignedUrl`](docs/sdks/files/README.md#getsignedurl) - Get Signed Url
- [`filesList`](docs/sdks/files/README.md#list) - List Files
- [`filesRetrieve`](docs/sdks/files/README.md#retrieve) - Retrieve File
- [`filesUpload`](docs/sdks/files/README.md#upload) - Upload File
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,14 @@ Based on:
### Generated
- [typescript v1.3.4] .
### Releases
- [NPM v1.3.4] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.4 - .
- [NPM v1.3.4] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.4 - .

## 2024-12-04 09:42:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.451.1 (2.470.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.3.5] .
### Releases
- [NPM v1.3.5] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.5 - .
4 changes: 1 addition & 3 deletions docs/models/components/agentscompletionrequestmessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const value: components.SystemMessage = {
const value: components.ToolMessage = {
content: [
{
imageUrl: {
url: "https://whimsical-impostor.name",
},
imageUrl: "https://exalted-coast.net",
},
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const value: components.ToolChoice = {
### `components.ToolChoiceEnum`

```typescript
const value: components.ToolChoiceEnum = "required";
const value: components.ToolChoiceEnum = "any";
```

14 changes: 6 additions & 8 deletions docs/models/components/agentscompletionstreamrequestmessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@ const value: components.SystemMessage = {

```typescript
const value: components.ToolMessage = {
content: [
{
referenceIds: [
815524,
],
},
],
content: "<value>",
};
```

### `components.UserMessage`

```typescript
const value: components.UserMessage = {
content: "<value>",
content: [
{
text: "<value>",
},
],
};
```

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const value: components.ToolChoice = {
### `components.ToolChoiceEnum`

```typescript
const value: components.ToolChoiceEnum = "any";
const value: components.ToolChoiceEnum = "required";
```

6 changes: 4 additions & 2 deletions docs/models/components/apiendpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
```typescript
import { ApiEndpoint } from "@mistralai/mistralai/models/components";

let value: ApiEndpoint = "/v1/moderations";
let value: ApiEndpoint = "/v1/fim/completions";
```

## Values

This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.

```typescript
"/v1/chat/completions" | "/v1/embeddings" | "/v1/fim/completions" | "/v1/moderations"
"/v1/chat/completions" | "/v1/embeddings" | "/v1/fim/completions" | "/v1/moderations" | "/v1/chat/moderations" | Unrecognized<string>
```
2 changes: 1 addition & 1 deletion docs/models/components/assistantmessagecontent.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const value: string = "<value>";
const value: components.ContentChunk[] = [
{
imageUrl: {
url: "https://entire-ceramics.com/",
url: "https://serpentine-address.net/",
},
},
];
Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/batchjobin.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { BatchJobIn } from "@mistralai/mistralai/models/components";

let value: BatchJobIn = {
inputFiles: [
"17fe5f3f-fcad-44d9-b052-f77a52d3831d",
"e5f3ffca-d4d9-4052-bf77-a52d3831dffe",
],
endpoint: "/v1/moderations",
model: "Taurus",
endpoint: "/v1/embeddings",
model: "A8",
};
```

Expand Down
16 changes: 8 additions & 8 deletions docs/models/components/batchjobout.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import { BatchJobOut } from "@mistralai/mistralai/models/components";
let value: BatchJobOut = {
id: "<id>",
inputFiles: [
"b4380365-749d-4182-9b69-2275fcbe189f",
"80365749-d182-4b69-8227-5fcbe189f431",
],
endpoint: "<value>",
model: "Camry",
model: "V90",
errors: [
{
message: "<value>",
},
],
status: "QUEUED",
createdAt: 16429,
totalRequests: 929530,
completedRequests: 669917,
succeededRequests: 785153,
failedRequests: 281730,
status: "TIMEOUT_EXCEEDED",
createdAt: 785153,
totalRequests: 281730,
completedRequests: 586410,
succeededRequests: 63955,
failedRequests: 485628,
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/batchjobsout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { BatchJobsOut } from "@mistralai/mistralai/models/components";

let value: BatchJobsOut = {
total: 947371,
total: 213312,
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/batchjobstatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { BatchJobStatus } from "@mistralai/mistralai/models/components";

let value: BatchJobStatus = "TIMEOUT_EXCEEDED";
let value: BatchJobStatus = "CANCELLED";
```

## Values
Expand Down
10 changes: 6 additions & 4 deletions docs/models/components/chatclassificationrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { ChatClassificationRequest } from "@mistralai/mistralai/models/component

let value: ChatClassificationRequest = {
inputs: [
{
content: "<value>",
},
[
{
content: "<value>",
},
],
],
model: "Volt",
model: "Corvette",
};
```

Expand Down
Loading

0 comments on commit f03501e

Please sign in to comment.