@ai-sdk/mistral 2.0.28 → 2.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ai-sdk/mistral
2
2
 
3
+ ## 2.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a27a978]
8
+ - @ai-sdk/provider-utils@3.0.23
9
+
10
+ ## 2.0.29
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [6a2f01b]
15
+ - Updated dependencies [17d64e3]
16
+ - @ai-sdk/provider-utils@3.0.22
17
+
3
18
  ## 2.0.28
4
19
 
5
20
  ### Patch Changes
@@ -143,12 +158,12 @@
143
158
  - 3429644: feat(provider/mistral): `MistralLanguageModelOptions` type
144
159
 
145
160
  ```ts
146
- import { mistral, type MistralLanguageModelOptions } from '@ai-sdk/mistral';
147
- import { generateText } from 'ai';
161
+ import { mistral, type MistralLanguageModelOptions } from "@ai-sdk/mistral";
162
+ import { generateText } from "ai";
148
163
 
149
164
  await generateText({
150
- model: mistral('open-mistral-7b'),
151
- prompt: 'Invent a new holiday and describe its traditions.',
165
+ model: mistral("open-mistral-7b"),
166
+ prompt: "Invent a new holiday and describe its traditions.",
152
167
  providerOptions: {
153
168
  mistral: {
154
169
  safePrompt: true,
package/dist/index.js CHANGED
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  VERSION: () => VERSION,
24
24
  createMistral: () => createMistral,
25
25
  mistral: () => mistral
26
26
  });
27
- module.exports = __toCommonJS(src_exports);
27
+ module.exports = __toCommonJS(index_exports);
28
28
 
29
29
  // src/mistral-provider.ts
30
30
  var import_provider4 = require("@ai-sdk/provider");
@@ -783,7 +783,7 @@ var MistralTextEmbeddingResponseSchema = import_v44.z.object({
783
783
  });
784
784
 
785
785
  // src/version.ts
786
- var VERSION = true ? "2.0.28" : "0.0.0-test";
786
+ var VERSION = true ? "2.0.30" : "0.0.0-test";
787
787
 
788
788
  // src/mistral-provider.ts
789
789
  function createMistral(options = {}) {
package/dist/index.mjs CHANGED
@@ -779,7 +779,7 @@ var MistralTextEmbeddingResponseSchema = z4.object({
779
779
  });
780
780
 
781
781
  // src/version.ts
782
- var VERSION = true ? "2.0.28" : "0.0.0-test";
782
+ var VERSION = true ? "2.0.30" : "0.0.0-test";
783
783
 
784
784
  // src/mistral-provider.ts
785
785
  function createMistral(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/mistral",
3
- "version": "2.0.28",
3
+ "version": "2.0.30",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@ai-sdk/provider": "2.0.1",
23
- "@ai-sdk/provider-utils": "3.0.21"
22
+ "@ai-sdk/provider-utils": "3.0.23",
23
+ "@ai-sdk/provider": "2.0.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "20.17.24",
@@ -54,9 +54,7 @@
54
54
  "build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
55
55
  "build:watch": "pnpm clean && tsup --watch",
56
56
  "clean": "del-cli dist *.tsbuildinfo",
57
- "lint": "eslint \"./**/*.ts*\"",
58
57
  "type-check": "tsc --build",
59
- "prettier-check": "prettier --check \"./**/*.ts*\"",
60
58
  "test": "pnpm test:node && pnpm test:edge",
61
59
  "test:update": "pnpm test:node -u",
62
60
  "test:watch": "vitest --config vitest.node.config.js",