Mistral
Mistral Large 3
Kod üretimi ve analizi için
Input 500 kredi/1M token
Output 1.500 kredi/1M token
Hakkında
Mistral Large 3, Mistral AI tarafından geliştirilen flagship yapay zeka modelidir. 128K token bağlam penceresi, kod yazma ve araç kullanımı (tool use) destekler. Avrupa (Fransa) yapımı olup GDPR uyumludur. Dense Transformer mimarisi ile yüksek kaliteli çıktılar sağlar. Parel platformunda kurumsal sohbet, kodlama ve Avrupa veri uyumluluğu gerektiren projelerde kullanılabilir.
Kullanım Alanları
- › Chatbot ve müşteri destek otomasyonu
- › İçerik üretimi ve metin özeti
- › Kod üretimi, inceleme ve hata ayıklama
- › RAG (Retrieval-Augmented Generation) sistemleri
- Provider
- Mistral
- Tür
- LLM
- Context
- 131K token
- Model ID
- mistral-large-3
- Input Fiyat
- 500 kredi/1M token
- Output Fiyat
- 1.500 kredi/1M token
Benzer Modeller
OpenAI SDK ile dakikalar içinde entegre edin.
Authentication #
API anahtarınızı ortam değişkeni olarak tanımlayın.
import os
os.environ["OPENAI_API_KEY"] = "pk-..."Kurulum #
OpenAI SDK'yi yükleyin.
pip install openaiChat Completions #
Temel sohbet tamamlama isteği.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="mistral-large-3",
messages=[
{"role": "user", "content": "Merhaba!"}
],
)
print(response.choices[0].message.content)Streaming #
Yanıtları token token akın halinde alın.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
stream = client.chat.completions.create(
model="mistral-large-3",
messages=[
{"role": "user", "content": "Türkiye'nin başkenti neresidir?"}
],
stream=True,
)
for chunk in stream:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)System Prompt #
Modelin davranisini system mesajiyla yonlendirin.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="mistral-large-3",
messages=[
{
"role": "system",
"content": "Sen yardimci bir Turkce asistansin. Kisa ve net cevaplar ver."
},
{
"role": "user",
"content": "KVKK nedir?"
}
],
)
print(response.choices[0].message.content)Parametreler #
Yanıt kalitesini ve çeşitliliğini ayarlayın.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="mistral-large-3",
messages=[
{"role": "user", "content": "Yaratici bir hikaye yaz."}
],
temperature=0.9, # 0-2: dusuk = deterministik, yuksek = yaratici
max_tokens=2048, # maksimum cikti token sayisi
top_p=0.95, # nucleus sampling esigi
)
print(response.choices[0].message.content)Kayıt olun, API anahtarınızı alın.