import OpenAI from "openai"
const openai = new OpenAI({
baseURL: "https://api.aiapilab.com/v1",
apiKey: $AIAPILAB_API_KEY
})
async function main() {
const completion = await openai.chat.completions.create({
model: "mistralai/mistral-large-2407",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | Llama 3.1 405B | Mistral Large 2 | Mistral Large Instruct 2407 |
---|---|---|---|
Parameters | 405 billion | 123 billion | 123 billion |
Context Window | 128k tokens | 128k tokens | 128k tokens |
Coding Proficiency | Strong coding performance | Proficient in over 80 coding languages | Proficient in over 80 coding languages |
Multilingual Support | Supports multiple languages | Supports dozens of languages | Supports dozens of languages |
Reasoning and Problem-Solving | High reasoning capabilities | Enhanced reasoning capabilities | State-of-the-art reasoning capabilities |