Mistral Embed 是 Mistral AI 推出的 文本生成模型,上下文窗口 8,000 tokens,单次最大输出 3,072 tokens。
原厂描述:Embedding model for semantic search, retrieval, clustering, and ranking pipelines
mistral-embed数据来源:models.dev。
# Python OpenAI SDK 调用示例 import openai client = openai.OpenAI( api_key="your-api-key", base_url="https://api.eake.cn/v1" ) response = client.chat.completions.create( model="md-mistral-mistral-embed", messages=[ {"role": "user", "content": "你好!"} ], temperature=0.7, max_tokens=2048 ) print(response.choices[0].message.content)
https://api.eake.cn/v1
完全兼容 OpenAI API 格式,可直接使用官方 SDK 调用