Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate MISTRALAI-GCP-SDK 1.3.0 (#43)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.434.7

* support for futur naming scheme

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: gaspardBT <[email protected]>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent 5b905fb commit 19605ac
Show file tree
Hide file tree
Showing 63 changed files with 809 additions and 601 deletions.
10 changes: 6 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ sources:
- main
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:3047ad3ff8797fded89618b375d1398d48924a3a5f9ea1000c4284a110567c43
sourceBlobDigest: sha256:02bbcef310f965d7ad089fb46d57b39f45b47cbc8f5cf90f728db03e960bdbca
sourceRevisionDigest: sha256:b2ce8e0e63674ea7ccfa3a75ff231bb97a39748331bcc0a3629f29c158f5b31e
sourceBlobDigest: sha256:a895adbf903776492b28daa3dd8c624f509decbbfe9ca6cda6510a33226604be
tags:
- latest
- main
Expand All @@ -32,8 +32,10 @@ targets:
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:6d8dfe3442be38fdac56eadabec39bcbe9e2d652080802d9cc46a68c28b38dbc
sourceBlobDigest: sha256:a4c011f461c73809a7d6cf1c9823d3c51d5050895aad246287ff14ac971efb8c
sourceRevisionDigest: sha256:b2ce8e0e63674ea7ccfa3a75ff231bb97a39748331bcc0a3629f29c158f5b31e
sourceBlobDigest: sha256:a895adbf903776492b28daa3dd8c624f509decbbfe9ca6cda6510a33226604be
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
codeSamplesRevisionDigest: sha256:5126fed27553befa9735d0e0c2abdc089d6f6a22efe89475df630e375b496241
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
Expand Down
23 changes: 13 additions & 10 deletions packages/mistralai-gcp/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: c6044247-eaf9-46da-b078-0e1334e93be2
management:
docChecksum: 823d9b94fcb9c6588d0af16b7301f4ac
docChecksum: 46baf8da7636ea1bf44557571d011045
docVersion: 0.0.2
speakeasyVersion: 1.399.3
generationVersion: 2.420.2
releaseVersion: 1.1.0
configChecksum: 814cc68b27946d6b8e7bc99c8a2cbf1b
speakeasyVersion: 1.434.7
generationVersion: 2.452.0
releaseVersion: 1.3.0
configChecksum: 3b3800ab2f8b198bdbd47807fbe76770
repoURL: https://github.com/mistralai/client-ts.git
repoSubDirectory: packages/mistralai-gcp
installationURL: https://gitpkg.now.sh/mistralai/client-ts/packages/mistralai-gcp
Expand All @@ -15,10 +15,10 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.17.5
core: 3.18.3
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.1
envVarSecurityUsage: 0.1.2
examples: 2.81.4
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
Expand All @@ -29,11 +29,12 @@ features:
openEnums: 0.1.1
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
serverEvents: 0.1.4
sdkHooks: 0.2.0
serverEvents: 0.1.5
serverEventsSentinels: 0.1.0
serverIDs: 2.81.2
unions: 2.85.7
tests: 0.7.0
unions: 2.85.8
generatedFiles:
- .eslintrc.cjs
- .gitattributes
Expand All @@ -43,6 +44,7 @@ generatedFiles:
- docs/lib/utils/retryconfig.md
- docs/models/components/arguments.md
- docs/models/components/assistantmessage.md
- docs/models/components/assistantmessagecontent.md
- docs/models/components/assistantmessagerole.md
- docs/models/components/chatcompletionchoice.md
- docs/models/components/chatcompletionchoicefinishreason.md
Expand Down Expand Up @@ -76,6 +78,7 @@ generatedFiles:
- docs/models/components/security.md
- docs/models/components/stop.md
- docs/models/components/systemmessage.md
- docs/models/components/systemmessagecontent.md
- docs/models/components/textchunk.md
- docs/models/components/tool.md
- docs/models/components/toolcall.md
Expand Down
4 changes: 3 additions & 1 deletion packages/mistralai-gcp/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 1.1.0
version: 1.3.0
additionalDependencies:
dependencies:
google-auth-library: ^9.11.0
Expand All @@ -23,6 +24,7 @@ typescript:
clientServerStatusCodesAsErrors: true
enumFormat: union
flattenGlobalSecurity: true
flatteningOrder: body-first
imports:
option: openapi
paths:
Expand Down
2 changes: 1 addition & 1 deletion packages/mistralai-gcp/FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function run() {
const { value: result } = res;

// Handle the result
console.log(result)
console.log(result);
}

run();
Expand Down
12 changes: 11 additions & 1 deletion packages/mistralai-gcp/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ Based on:
### Generated
- [typescript v1.1.0] packages/mistralai-gcp
### Releases
- [NPM v1.1.0] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.1.0 - packages/mistralai-gcp
- [NPM v1.1.0] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.1.0 - packages/mistralai-gcp

## 2024-11-08 13:01:40
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.7 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.3.0] packages/mistralai-gcp
### Releases
- [NPM v1.3.0] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.3.0 - packages/mistralai-gcp
13 changes: 4 additions & 9 deletions packages/mistralai-gcp/docs/models/components/arguments.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# Arguments

## Example Usage

```typescript
import { Arguments } from "@mistralai/mistralai-gcp/models/components";

let value: Arguments = "<value>";
```

## Supported Types

### `{ [k: string]: any }`

```typescript
const value: { [k: string]: any } = /* values here */
const value: { [k: string]: any } = {
"key": "<value>",
};
```

### `string`

```typescript
const value: string = /* values here */
const value: string = "<value>";
```

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ let value: AssistantMessage = {};

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `content` | *string* | :heavy_minus_sign: | N/A |
| `toolCalls` | [components.ToolCall](../../models/components/toolcall.md)[] | :heavy_minus_sign: | N/A |
| `prefix` | *boolean* | :heavy_minus_sign: | Set this to `true` when adding an assistant message as prefix to condition the model response. The role of the prefix message is to force the model to start its answer by the content of the message. |
| `role` | [components.AssistantMessageRole](../../models/components/assistantmessagerole.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `content` | *components.AssistantMessageContent* | :heavy_minus_sign: | N/A |
| `toolCalls` | [components.ToolCall](../../models/components/toolcall.md)[] | :heavy_minus_sign: | N/A |
| `prefix` | *boolean* | :heavy_minus_sign: | N/A |
| `role` | [components.AssistantMessageRole](../../models/components/assistantmessagerole.md) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# AssistantMessageContent


## Supported Types

### `string`

```typescript
const value: string = "<value>";
```

### `components.ContentChunk[]`

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

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ let value: ChatCompletionChoiceFinishReason = "stop";

## Values

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

```typescript
"stop" | "length" | "model_length" | "error" | "tool_calls"
"stop" | "length" | "model_length" | "error" | "tool_calls" | Unrecognized<string>
```
Loading

0 comments on commit 19605ac

Please sign in to comment.