支持的模型

Mistral.ai API支持的模型和上下文长度:

Mistral.ai 模型

平台模式标识符备注
mistral.aimistral/open-mistral-7b
mistral.aimistral/open-mixtral-8x7b
mistral.aimistral/mistral-small-latestLatest version, small model
mistral.aimistral/mistral-medium-latestLatest version, medium model
mistral.aimistral/mistral-large-latestLatest version, large model
mistral.aimixtral-8x7b-32768
from openai import OpenAI

client = OpenAI(
    api_key = "自己的API key",
    base_url = "https://api.agicto.cn/v1"
)

chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": "你是谁,用中文回答",
        }
    ],
    model="mistral/open-mistral-7b",
)
print(chat_completion.choices[0].message.content)

Was this page helpful?