Skip to content

Commit

Permalink
Showing 79 changed files with 1,171 additions and 124 deletions.
35 changes: 28 additions & 7 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: 87135817a5a746d7466c41070e5f581e
docChecksum: ad1a7d6946828a089ca3831e257d307d
docVersion: 0.0.2
speakeasyVersion: 1.373.1
generationVersion: 2.399.0
releaseVersion: 1.1.3
configChecksum: 82af20b5faaac173abb6d630c7f4194f
speakeasyVersion: 1.376.0
generationVersion: 2.402.5
releaseVersion: 1.0.3
configChecksum: 29f53c823f9a93ba50ba681063a0f8e8
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.8
core: 3.13.2
constsAndDefaults: 0.1.10
core: 3.14.1
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
envVarSecurityUsage: 0.1.1
@@ -187,33 +187,53 @@ generatedFiles:
- docs/models/components/loc.md
- docs/models/components/validationerror.md
- docs/models/components/deletemodelout.md
- docs/models/components/ftmodeloutobject.md
- docs/models/components/ftmodelout.md
- docs/models/components/ftmodelcapabilitiesout.md
- docs/models/components/updateftmodelin.md
- docs/models/components/archiveftmodeloutobject.md
- docs/models/components/archiveftmodelout.md
- docs/models/components/unarchiveftmodeloutobject.md
- docs/models/components/unarchiveftmodelout.md
- docs/models/components/purpose.md
- docs/models/components/uploadfileout.md
- docs/models/components/source.md
- docs/models/components/sampletype.md
- docs/models/components/listfilesout.md
- docs/models/components/fileschemapurpose.md
- docs/models/components/fileschema.md
- docs/models/components/retrievefileoutpurpose.md
- docs/models/components/retrievefileout.md
- docs/models/components/deletefileout.md
- docs/models/components/jobsoutobject.md
- docs/models/components/jobsout.md
- docs/models/components/status.md
- docs/models/components/objectt.md
- docs/models/components/integrations.md
- docs/models/components/repositories.md
- docs/models/components/jobout.md
- docs/models/components/jobmetadataout.md
- docs/models/components/githubrepositoryouttype.md
- docs/models/components/githubrepositoryout.md
- docs/models/components/type.md
- docs/models/components/wandbintegrationout.md
- docs/models/components/finetuneablemodel.md
- docs/models/components/trainingparameters.md
- docs/models/components/legacyjobmetadataoutobject.md
- docs/models/components/legacyjobmetadataout.md
- docs/models/components/jobinintegrations.md
- docs/models/components/jobinrepositories.md
- docs/models/components/jobin.md
- docs/models/components/githubrepositoryintype.md
- docs/models/components/githubrepositoryin.md
- docs/models/components/wandbintegrationtype.md
- docs/models/components/wandbintegration.md
- docs/models/components/trainingparametersin.md
- docs/models/components/trainingfile.md
- docs/models/components/detailedjoboutstatus.md
- docs/models/components/detailedjoboutobject.md
- docs/models/components/detailedjoboutintegrations.md
- docs/models/components/detailedjoboutrepositories.md
- docs/models/components/detailedjobout.md
- docs/models/components/checkpointout.md
- docs/models/components/metricout.md
@@ -280,6 +300,7 @@ generatedFiles:
- docs/models/operations/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md
- docs/models/operations/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md
- docs/models/operations/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md
- docs/models/operations/purpose.md
- docs/models/operations/filet.md
- docs/models/operations/filesapiroutesuploadfilemultipartbodyparams.md
- docs/models/operations/filesapiroutesretrievefilerequest.md
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 1.1.3
version: 1.0.3
additionalDependencies:
dependencies: {}
devDependencies: {}
11 changes: 6 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -16,10 +16,11 @@ sources:
- main
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:088d899162941380ec90445852dc7e8c65a8e2eab6b32f552fd7f4fc6f152e76
sourceBlobDigest: sha256:feb2a952c0f5757a656e8fed5614e28bc4da195cbeb548b5aaf4fc09aee4ddac
sourceRevisionDigest: sha256:421a4bd55fd50ba00d6ebf2db603888009e9996b642b0499110c223fd6ca21c2
sourceBlobDigest: sha256:1c87b4b8287f6a3083167c13ab59c5e7ac180ab7e19ad1532f3f46495cc12a26
tags:
- latest
- main
targets:
mistralai-azure-sdk:
source: mistral-azure-source
@@ -36,9 +37,9 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:088d899162941380ec90445852dc7e8c65a8e2eab6b32f552fd7f4fc6f152e76
sourceBlobDigest: sha256:feb2a952c0f5757a656e8fed5614e28bc4da195cbeb548b5aaf4fc09aee4ddac
outLocation: /Users/gaspard/public-mistral/client-ts
sourceRevisionDigest: sha256:421a4bd55fd50ba00d6ebf2db603888009e9996b642b0499110c223fd6ca21c2
sourceBlobDigest: sha256:1c87b4b8287f6a3083167c13ab59c5e7ac180ab7e19ad1532f3f46495cc12a26
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -577,7 +577,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
<!-- Start Debugging [debug] -->
## Debugging

To log HTTP requests and responses, you can pass a logger that matches `console`'s interface as an SDK option.
You can setup your SDK to emit debug logs for SDK requests and responses.

You can pass a logger that matches `console`'s interface as an SDK option.

> [!WARNING]
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
@@ -587,6 +589,8 @@ import { Mistral } from "@mistralai/mistralai";

const sdk = new Mistral({ debugLogger: console });
```

You can also enable a default debug logger by setting an environment variable `MISTRAL_DEBUG` to true.
<!-- End Debugging [debug] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
@@ -28,4 +28,14 @@ Based on:
### Generated
- [typescript v1.0.2] .
### Releases
- [NPM v1.0.2] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.2 - .
- [NPM v1.0.2] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.2 - .

## 2024-08-20 08:43:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.376.0 (2.402.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.0.3] .
### Releases
- [NPM v1.0.3] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.3 - .
10 changes: 5 additions & 5 deletions docs/models/components/archiveftmodelout.md
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ let value: ArchiveFTModelOut = {

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `id` | *string* | :heavy_check_mark: | N/A |
| `object` | *string* | :heavy_minus_sign: | N/A |
| `archived` | *boolean* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `id` | *string* | :heavy_check_mark: | N/A |
| `object` | [components.ArchiveFTModelOutObject](../../models/components/archiveftmodeloutobject.md) | :heavy_minus_sign: | N/A |
| `archived` | *boolean* | :heavy_minus_sign: | N/A |
15 changes: 15 additions & 0 deletions docs/models/components/archiveftmodeloutobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ArchiveFTModelOutObject

## Example Usage

```typescript
import { ArchiveFTModelOutObject } from "@mistralai/mistralai/models/components";

let value: ArchiveFTModelOutObject = "model";
```

## Values

```typescript
"model"
```
6 changes: 3 additions & 3 deletions docs/models/components/detailedjobout.md
Original file line number Diff line number Diff line change
@@ -39,12 +39,12 @@ let value: DetailedJobOut = {
| `modifiedAt` | *number* | :heavy_check_mark: | N/A |
| `trainingFiles` | *string*[] | :heavy_check_mark: | N/A |
| `validationFiles` | *string*[] | :heavy_minus_sign: | N/A |
| `object` | *string* | :heavy_minus_sign: | N/A |
| `object` | [components.DetailedJobOutObject](../../models/components/detailedjoboutobject.md) | :heavy_minus_sign: | N/A |
| `fineTunedModel` | *string* | :heavy_minus_sign: | N/A |
| `suffix` | *string* | :heavy_minus_sign: | N/A |
| `integrations` | [components.WandbIntegrationOut](../../models/components/wandbintegrationout.md)[] | :heavy_minus_sign: | N/A |
| `integrations` | *components.DetailedJobOutIntegrations*[] | :heavy_minus_sign: | N/A |
| `trainedTokens` | *number* | :heavy_minus_sign: | N/A |
| `repositories` | [components.GithubRepositoryOut](../../models/components/githubrepositoryout.md)[] | :heavy_minus_sign: | N/A |
| `repositories` | *components.DetailedJobOutRepositories*[] | :heavy_minus_sign: | N/A |
| `metadata` | [components.JobMetadataOut](../../models/components/jobmetadataout.md) | :heavy_minus_sign: | N/A |
| `events` | [components.EventOut](../../models/components/eventout.md)[] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. |
| `checkpoints` | [components.CheckpointOut](../../models/components/checkpointout.md)[] | :heavy_minus_sign: | N/A |
20 changes: 20 additions & 0 deletions docs/models/components/detailedjoboutintegrations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# DetailedJobOutIntegrations

## Example Usage

```typescript
import { DetailedJobOutIntegrations } from "@mistralai/mistralai/models/components";

let value: DetailedJobOutIntegrations = {
project: "<value>",
};
```

## Supported Types

### `components.WandbIntegrationOut`

```typescript
const value: components.WandbIntegrationOut = /* values here */
```

15 changes: 15 additions & 0 deletions docs/models/components/detailedjoboutobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DetailedJobOutObject

## Example Usage

```typescript
import { DetailedJobOutObject } from "@mistralai/mistralai/models/components";

let value: DetailedJobOutObject = "job";
```

## Values

```typescript
"job"
```
22 changes: 22 additions & 0 deletions docs/models/components/detailedjoboutrepositories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# DetailedJobOutRepositories

## Example Usage

```typescript
import { DetailedJobOutRepositories } from "@mistralai/mistralai/models/components";

let value: DetailedJobOutRepositories = {
name: "<value>",
owner: "<value>",
commitId: "<value>",
};
```

## Supported Types

### `components.GithubRepositoryOut`

```typescript
const value: components.GithubRepositoryOut = /* values here */
```

Loading

0 comments on commit b540ca7

Please sign in to comment.