@byokey/mistral
v0.2.0
Published
Mistral AI provider adapter for the BYOK Infrastructure Toolkit
Downloads
314
Maintainers
Readme
@byokey/mistral
Mistral AI provider adapter for the BYOK Infrastructure Toolkit.
Supports Mistral Large 3, Mistral Small 4, Magistral, Devstral, and Ministral models.
Installation
npm install @byokey/core @byokey/mistralUsage
import { createClient } from '@byokey/core';
import { mistral } from '@byokey/mistral';
const client = createClient({ adapters: [mistral()] });
const response = await client.execute({
provider: 'mistral',
model: 'mistral-large-latest',
credential: 'your-mistral-key', // Your Mistral API key
messages: [{ role: 'user', content: 'Hello!' }]
});Configuration
mistral({
baseUrl: 'https://api.mistral.ai/v1/chat/completions', // Custom endpoint
timeoutMs: 30000, // Request timeout
});