Defines Mistral models such as Codestral with capabilities, pricing, and defaults for the LLM framework.
// Source: https://github.com/mperkins0155/bolt.diy_V2.0 | License: MIT | Copyright 2024 StackBlitz, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { createMistral } from '@ai-sdk/mistral';
import type { Provider, ProviderConfig } from './types';
export const mistralConfig: ProviderConfig = {
id: 'mistral',
name: 'Mistral',
apiKeyEnvVar: 'MISTRAL_API_KEY',
models: [
{
id: 'codestral-latest',
name: 'Codestral 25.08',
description: 'Optimized for low-latency coding. 2x faster with 80+ programming languages support.',
provider: 'mistral',
maxTokens: 8192,
contextWindow: 256000,
capabilities: {
tools: true,
coding: true,
fast: true,
},
pricing: {
input: 0.3,
ou
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key