The supported model
Model and context length for Mistral.ai API support:
Mistral.ai Models
Platform | Model Identifier | Notes |
---|---|---|
mistral.ai | mistral/open-mistral-7b | |
mistral.ai | mistral/open-mixtral-8x7b | |
mistral.ai | mistral/mistral-small-latest | Latest version, small model |
mistral.ai | mistral/mistral-medium-latest | Latest version, medium model |
mistral.ai | mistral/mistral-large-latest | Latest version, large model |
mistral.ai | mixtral-8x7b-32768 |
from openai import OpenAI
client = OpenAI(
api_key = "Own API key",
base_url = "https://api.zgiai.com/v1"
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Who are you?",
}
],
model="mistral/open-mistral-7b ",
)
print(chat_completion.choices[0].message.content)