Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.376.0 (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Aug 22, 2024
1 parent d32057e commit 1db94ae
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 24 deletions.
7 changes: 4 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
speakeasyVersion: 1.373.1
speakeasyVersion: 1.376.0
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:becb324b11dfc5155aa0cc420ca312d0af5aecfcbad22fe90066a09561ae4e6a
sourceRevisionDigest: sha256:908fd38167347d1ad63b470b52ca11983df56e7c5e86759534cfa94b6dfabb81
sourceBlobDigest: sha256:84928a6297c3a838dce719ffa3da1e221cba968ce4a6c74d5c3bb41bf86a7e5d
tags:
- latest
- main
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:7fee22ae1a434b8919112c7feae87af7f1378952fcc6bde081deb55f65e5bfc2
Expand All @@ -22,7 +23,7 @@ targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:becb324b11dfc5155aa0cc420ca312d0af5aecfcbad22fe90066a09561ae4e6a
sourceRevisionDigest: sha256:908fd38167347d1ad63b470b52ca11983df56e7c5e86759534cfa94b6dfabb81
sourceBlobDigest: sha256:84928a6297c3a838dce719ffa3da1e221cba968ce4a6c74d5c3bb41bf86a7e5d
outLocation: ./packages/mistralai-azure
mistralai-gcp-sdk:
Expand Down
12 changes: 6 additions & 6 deletions packages/mistralai-azure/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ id: 01e8a40b-3df3-4d9a-9501-2eb9e0d26c05
management:
docChecksum: 9128fabc3ae45ecc9ed7fae8991b3d3e
docVersion: 0.0.2
speakeasyVersion: 1.373.1
generationVersion: 2.399.0
releaseVersion: 1.1.2
configChecksum: a56cbf1087f24fcd07809bce6cf083c4
speakeasyVersion: 1.376.0
generationVersion: 2.402.5
releaseVersion: 1.0.3
configChecksum: 72a41446245fe7d583177bc15f02efe9
repoURL: https://github.com/mistralai/client-ts.git
repoSubDirectory: packages/mistralai-azure
installationURL: https://gitpkg.now.sh/mistralai/client-ts/packages/mistralai-azure
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
envVarSecurityUsage: 0.1.1
examples: 2.81.4
Expand Down
2 changes: 1 addition & 1 deletion packages/mistralai-azure/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 1.1.2
version: 1.0.3
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
12 changes: 11 additions & 1 deletion packages/mistralai-azure/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ Based on:
### Generated
- [typescript v1.0.2] packages/mistralai-azure
### Releases
- [NPM v1.0.2] https://www.npmjs.com/package/@mistralai/mistralai-azure/v/1.0.2 - packages/mistralai-azure
- [NPM v1.0.2] https://www.npmjs.com/package/@mistralai/mistralai-azure/v/1.0.2 - packages/mistralai-azure

## 2024-08-20 08:43:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.376.0 (2.402.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.0.3] packages/mistralai-azure
### Releases
- [NPM v1.0.3] https://www.npmjs.com/package/@mistralai/mistralai-azure/v/1.0.3 - packages/mistralai-azure
2 changes: 1 addition & 1 deletion packages/mistralai-azure/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@mistralai/mistralai-azure",
"version": "1.1.2",
"version": "1.0.3",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/mistralai-azure/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 packages/mistralai-azure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mistralai/mistralai-azure",
"version": "1.1.2",
"version": "1.0.3",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions packages/mistralai-azure/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.2",
sdkVersion: "1.1.2",
genVersion: "2.399.0",
userAgent: "speakeasy-sdk/typescript 1.1.2 2.399.0 0.0.2 @mistralai/mistralai-azure",
sdkVersion: "1.0.3",
genVersion: "2.402.5",
userAgent: "speakeasy-sdk/typescript 1.0.3 2.402.5 0.0.2 @mistralai/mistralai-azure",
} as const;
4 changes: 4 additions & 0 deletions packages/mistralai-azure/src/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import * as z from "zod";

export interface Env {
MISTRAL_API_KEY?: string | undefined;

MISTRAL_DEBUG?: boolean | undefined;
}

export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z
.object({
MISTRAL_API_KEY: z.string(),

MISTRAL_DEBUG: z.coerce.boolean(),
})
.partial();

Expand Down
4 changes: 4 additions & 0 deletions packages/mistralai-azure/src/lib/sdks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { stringToBase64 } from "./base64.js";
import { SDKOptions, SDK_METADATA, serverURLFromOptions } from "./config.js";
import { SDKHooks } from "../hooks/hooks.js";
import { HookContext } from "../hooks/types.js";
import { env } from "./env.js";
import {
ConnectionError,
InvalidRequestError,
Expand Down Expand Up @@ -104,6 +105,9 @@ export class ClientSDK {
this.baseURL = baseURL;
this.httpClient = client;
this.logger = options.debugLogger;
if (!this.logger && env().MISTRAL_DEBUG) {
this.logger = console;
}
}

public createRequest$(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const AssistantMessage$inboundSchema: z.ZodType<AssistantMessage, z.ZodTy
.object({
content: z.nullable(z.string()).optional(),
tool_calls: z.nullable(z.array(ToolCall$inboundSchema)).optional(),
prefix: z.boolean().default(false),
prefix: z.boolean(),
role: AssistantMessageRole$inboundSchema.default("assistant"),
})
.transform((v) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const ChatCompletionRequest$inboundSchema: z.ZodType<
top_p: z.number().default(1),
max_tokens: z.nullable(z.number().int()).optional(),
min_tokens: z.nullable(z.number().int()).optional(),
stream: z.boolean().default(false),
stream: z.boolean(),
stop: z.union([z.string(), z.array(z.string())]).optional(),
random_seed: z.nullable(z.number().int()).optional(),
messages: z.array(
Expand All @@ -251,7 +251,7 @@ export const ChatCompletionRequest$inboundSchema: z.ZodType<
response_format: ResponseFormat$inboundSchema.optional(),
tools: z.nullable(z.array(Tool$inboundSchema)).optional(),
tool_choice: ChatCompletionRequestToolChoice$inboundSchema.default("auto"),
safe_prompt: z.boolean().default(false),
safe_prompt: z.boolean(),
})
.transform((v) => {
return remap$(v, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const ChatCompletionStreamRequest$inboundSchema: z.ZodType<
response_format: ResponseFormat$inboundSchema.optional(),
tools: z.nullable(z.array(Tool$inboundSchema)).optional(),
tool_choice: ToolChoice$inboundSchema.default("auto"),
safe_prompt: z.boolean().default(false),
safe_prompt: z.boolean(),
})
.transform((v) => {
return remap$(v, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type ContentChunk = {

/** @internal */
export const ContentChunk$inboundSchema: z.ZodType<ContentChunk, z.ZodTypeDef, unknown> = z.object({
type: z.literal("text").default("text" as const),
type: z.literal("text").default("text"),
text: z.string(),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type TextChunk = {

/** @internal */
export const TextChunk$inboundSchema: z.ZodType<TextChunk, z.ZodTypeDef, unknown> = z.object({
type: z.literal("text").default("text" as const),
type: z.literal("text").default("text"),
text: z.string(),
});

Expand Down

0 comments on commit 1db94ae

Please sign in to comment.