Skip to content

Commit

Permalink
Merge pull request #7 from mistralai/speakeasy-sdk-regen-1723140337
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate MISTRALAI-SDK 1.0.2
  • Loading branch information
GaspardBT authored Aug 8, 2024
2 parents 69d827f + 0db0b03 commit 8046f80
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 26 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
lockVersion: 2.0.0
id: 81b65c50-f2e3-40a3-bd65-346524007b3d
management:
docChecksum: 9e7a46648104410da4d94d5c2b373d20
docChecksum: a7c4268dd1228c969aecfd7cfdb6ca3c
docVersion: 0.0.2
speakeasyVersion: 1.356.0
generationVersion: 2.388.1
releaseVersion: 1.0.1
configChecksum: 9ca527cc3afc6d9feda073e428a6cab7
speakeasyVersion: 1.357.4
generationVersion: 2.390.6
releaseVersion: 1.0.2
configChecksum: 6c6983431817f47e5b2f8404eb1ab0dd
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.6
core: 3.12.2
core: 3.12.3
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
envVarSecurityUsage: 0.1.1
examples: 2.81.4
globalSecurity: 2.82.10
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.4
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 1.0.1
version: 1.0.2
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ This SDK supports the following security scheme globally:
| -------------------- | -------------------- | -------------------- | -------------------- |
| `apiKey` | http | HTTP Bearer | `MISTRAL_API_KEY` |

To authenticate with the API the `nullT` parameter must be set when initializing the SDK client instance. For example:
To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
```typescript
import { Mistral } from "@mistralai/mistralai";

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ Based on:
### Generated
- [typescript v1.0.1] .
### Releases
- [NPM v1.0.1] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.1 - .
- [NPM v1.0.1] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.1 - .

## 2024-08-08 18:05:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.357.4 (2.390.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.0.2] .
### Releases
- [NPM v1.0.2] https://www.npmjs.com/package/@mistralai/mistralai/v/1.0.2 - .
10 changes: 5 additions & 5 deletions docs/models/components/deltamessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `role` | *string* | :heavy_minus_sign: | N/A |
| `content` | *string* | :heavy_minus_sign: | N/A |
| `toolCalls` | [components.ToolCall](../../models/components/toolcall.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `role` | *string* | :heavy_minus_sign: | N/A |
| `content` | *string* | :heavy_minus_sign: | N/A |
| `toolCalls` | [components.ToolCall](../../models/components/toolcall.md)[] | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@mistralai/mistralai",
"version": "1.0.1",
"version": "1.0.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mistralai/mistralai",
"version": "1.0.1",
"version": "1.0.2",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.2",
sdkVersion: "1.0.1",
genVersion: "2.388.1",
userAgent: "speakeasy-sdk/typescript 1.0.1 2.388.1 0.0.2 @mistralai/mistralai",
sdkVersion: "1.0.2",
genVersion: "2.390.6",
userAgent: "speakeasy-sdk/typescript 1.0.2 2.390.6 0.0.2 @mistralai/mistralai",
} as const;
8 changes: 4 additions & 4 deletions src/models/components/deltamessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import * as z from "zod";
export type DeltaMessage = {
role?: string | undefined;
content?: string | undefined;
toolCalls?: ToolCall | null | undefined;
toolCalls?: Array<ToolCall> | null | undefined;
};

/** @internal */
export const DeltaMessage$inboundSchema: z.ZodType<DeltaMessage, z.ZodTypeDef, unknown> = z
.object({
role: z.string().optional(),
content: z.string().optional(),
tool_calls: z.nullable(ToolCall$inboundSchema).optional(),
tool_calls: z.nullable(z.array(ToolCall$inboundSchema)).optional(),
})
.transform((v) => {
return remap$(v, {
Expand All @@ -34,7 +34,7 @@ export const DeltaMessage$inboundSchema: z.ZodType<DeltaMessage, z.ZodTypeDef, u
export type DeltaMessage$Outbound = {
role?: string | undefined;
content?: string | undefined;
tool_calls?: ToolCall$Outbound | null | undefined;
tool_calls?: Array<ToolCall$Outbound> | null | undefined;
};

/** @internal */
Expand All @@ -46,7 +46,7 @@ export const DeltaMessage$outboundSchema: z.ZodType<
.object({
role: z.string().optional(),
content: z.string().optional(),
toolCalls: z.nullable(ToolCall$outboundSchema).optional(),
toolCalls: z.nullable(z.array(ToolCall$outboundSchema)).optional(),
})
.transform((v) => {
return remap$(v, {
Expand Down

0 comments on commit 8046f80

Please sign in to comment.