mistral-deploy-integration

Featured

Deploy Mistral AI integrations to Vercel, Docker, and Cloud Run platforms. Use when deploying Mistral AI-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy mistral", "mistral Vercel", "mistral production deploy", "mistral Cloud Run", "mistral Docker".

DevOps & Infrastructure 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Mistral AI Deploy Integration ## Overview Deploy Mistral AI-powered applications to production with secure API key management. Covers Vercel (Edge + Serverless), Docker, Cloud Run, and self-hosted vLLM deployments. All connect to `api.mistral.ai` or your own inference endpoint. ## Prerequisites - Mistral AI production API key - Platform CLI installed (vercel, docker, or gcloud) - Application using `@mistralai/mistralai` SDK ## Instructions ### Step 1: Platform Secret Configuration ```bash set -euo pipefail # Vercel vercel env add MISTRAL_API_KEY production vercel env add MISTRAL_MODEL production # optional: default model # Cloud Run echo -n "your-key" | gcloud secrets create mistral-api-key --data-file=- # Docker echo "MISTRAL_API_KEY=your-key" > .env.production echo ".env.production" >> .gitignore ``` ### Step 2: Vercel Edge Function ```typescript // api/chat.ts — Vercel Edge Function with streaming import { Mistral } from '@mistralai/mistralai'; export const config = { runtime: 'edge' }; export default async function handler(req: Request) { const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY! }); const { messages, stream = false } = await req.json(); if (stream) { const streamResponse = await client.chat.stream({ model: process.env.MISTRAL_MODEL ?? 'mistral-small-latest', messages, }); const encoder = new TextEncoder(); const readable = new ReadableStream({ async start(controller) { for await (cons...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category