Codestral

Yazılım geliştiriciler için 80'den fazla programlama dilinde optimize edilmiştir. IDE'lerde otomatik tamamlama için hızlı ve etkilidir.

Ücretli code Mistral AI Non-Production

Teknik Özellikler

Bağlam Penceresi 33K token
Maks. Çıktı 8K token
Parametre Sayısı 22B
Eğitim Kesimi 2024-05
Lisans Mistral AI Non-Production
Mimari Transformer
Modaliteler: text
Diller: en

Kabiliyetler

💬 Sohbet
💻 Kod Üretimi
👁️ Görsel Anlama
🎨 Görsel Üretimi
🔧 Fonksiyon Çağırma
Streaming
📋 JSON Modu
🧠 Akıl Yürütme
🔍 Web Arama
📁 Dosya Yükleme

Kullanım Alanları

📌 Kod yazma asistanı
📌 Sözdizimi düzeltme
📌 Kod yorumlama

Araç Seti & IDE'ler

🖥️ IDE'ler

VS CodeJetBrains

🤖 Ajanlar

Continue.dev

🌐 Platformlar

Mistral API

API Kullanımı

cURL
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-mamba",
    "messages": [
      {"role": "user", "content": "Merhaba!"}
    ]
  }'
JavaScript (fetch)
const response = await fetch('https://openrouter.ai/api/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'mistralai/codestral-mamba',
    messages: [{ role: 'user', content: 'Merhaba!' }],
  }),
});
const data = await response.json();
console.log(data.choices[0].message.content);