Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/mistral

Package Overview
Dependencies
Maintainers
3
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/mistral - npm Package Compare versions

Comparing version
3.0.13
to
3.0.14
+6
-0
CHANGELOG.md
# @ai-sdk/mistral
## 3.0.14
### Patch Changes
- 3988c08: docs: fix incorrect and outdated provider docs
## 3.0.13

@@ -4,0 +10,0 @@

+15
-15

@@ -21,8 +21,8 @@ import { ProviderV3, LanguageModelV3, EmbeddingModelV3 } from '@ai-sdk/provider';

/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
languageModel(modelId: MistralChatModelId): LanguageModelV3;
/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
chat(modelId: MistralChatModelId): LanguageModelV3;

@@ -48,19 +48,19 @@ /**

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://api.mistral.ai/v1`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://api.mistral.ai/v1`.
*/
baseURL?: string;
/**
API key that is being send using the `Authorization` header.
It defaults to the `MISTRAL_API_KEY` environment variable.
* API key that is being send using the `Authorization` header.
* It defaults to the `MISTRAL_API_KEY` environment variable.
*/
apiKey?: string;
/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;

@@ -70,7 +70,7 @@ generateId?: () => string;

/**
Create a Mistral AI provider instance.
* Create a Mistral AI provider instance.
*/
declare function createMistral(options?: MistralProviderSettings): MistralProvider;
/**
Default Mistral provider instance.
* Default Mistral provider instance.
*/

@@ -77,0 +77,0 @@ declare const mistral: MistralProvider;

@@ -21,8 +21,8 @@ import { ProviderV3, LanguageModelV3, EmbeddingModelV3 } from '@ai-sdk/provider';

/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
languageModel(modelId: MistralChatModelId): LanguageModelV3;
/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
chat(modelId: MistralChatModelId): LanguageModelV3;

@@ -48,19 +48,19 @@ /**

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://api.mistral.ai/v1`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://api.mistral.ai/v1`.
*/
baseURL?: string;
/**
API key that is being send using the `Authorization` header.
It defaults to the `MISTRAL_API_KEY` environment variable.
* API key that is being send using the `Authorization` header.
* It defaults to the `MISTRAL_API_KEY` environment variable.
*/
apiKey?: string;
/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;

@@ -70,7 +70,7 @@ generateId?: () => string;

/**
Create a Mistral AI provider instance.
* Create a Mistral AI provider instance.
*/
declare function createMistral(options?: MistralProviderSettings): MistralProvider;
/**
Default Mistral provider instance.
* Default Mistral provider instance.
*/

@@ -77,0 +77,0 @@ declare const mistral: MistralProvider;

@@ -237,6 +237,6 @@ "use strict";

/**
Whether to inject a safety prompt before all conversations.
Defaults to `false`.
*/
* Whether to inject a safety prompt before all conversations.
*
* Defaults to `false`.
*/
safePrompt: import_v4.z.boolean().optional(),

@@ -832,3 +832,3 @@ documentImageLimit: import_v4.z.number().optional(),

// src/version.ts
var VERSION = true ? "3.0.13" : "0.0.0-test";
var VERSION = true ? "3.0.14" : "0.0.0-test";

@@ -835,0 +835,0 @@ // src/mistral-provider.ts

@@ -225,6 +225,6 @@ // src/mistral-provider.ts

/**
Whether to inject a safety prompt before all conversations.
Defaults to `false`.
*/
* Whether to inject a safety prompt before all conversations.
*
* Defaults to `false`.
*/
safePrompt: z.boolean().optional(),

@@ -828,3 +828,3 @@ documentImageLimit: z.number().optional(),

// src/version.ts
var VERSION = true ? "3.0.13" : "0.0.0-test";
var VERSION = true ? "3.0.14" : "0.0.0-test";

@@ -831,0 +831,0 @@ // src/mistral-provider.ts

{
"name": "@ai-sdk/mistral",
"version": "3.0.13",
"version": "3.0.14",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -29,5 +29,5 @@ import { z } from 'zod/v4';

/**
Whether to inject a safety prompt before all conversations.
Defaults to `false`.
* Whether to inject a safety prompt before all conversations.
*
* Defaults to `false`.
*/

@@ -34,0 +34,0 @@ safePrompt: z.boolean().optional(),

@@ -23,9 +23,9 @@ import {

/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
languageModel(modelId: MistralChatModelId): LanguageModelV3;
/**
Creates a model for text generation.
*/
* Creates a model for text generation.
*/
chat(modelId: MistralChatModelId): LanguageModelV3;

@@ -56,4 +56,4 @@

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://api.mistral.ai/v1`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://api.mistral.ai/v1`.
*/

@@ -63,4 +63,4 @@ baseURL?: string;

/**
API key that is being send using the `Authorization` header.
It defaults to the `MISTRAL_API_KEY` environment variable.
* API key that is being send using the `Authorization` header.
* It defaults to the `MISTRAL_API_KEY` environment variable.
*/

@@ -70,10 +70,10 @@ apiKey?: string;

/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;

@@ -85,3 +85,3 @@

/**
Create a Mistral AI provider instance.
* Create a Mistral AI provider instance.
*/

@@ -150,4 +150,4 @@ export function createMistral(

/**
Default Mistral provider instance.
* Default Mistral provider instance.
*/
export const mistral = createMistral();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet