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: "openai/o1-mini-2024-09-12",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | o1-preview | GPT-4 (General Purpose) | OpenAI: o1-mini (2024-09-12) |
---|---|---|---|
Speed | Slower due to deep reasoning | Moderate response times | Fast response times (3-5x faster than GPT-4) |
Specialization | Advanced reasoning | General-purpose capabilities | Optimized for STEM tasks |
Knowledge Scope | Balanced knowledge, excels in reasoning | Broad knowledge across domains | Strong in STEM, limited in non-STEM |
Performance in STEM | Superior in reasoning tasks | Good general performance | High accuracy in math and science benchmarks |
Reasoning Methodology | Enhanced reasoning capabilities | Predictive text generation | Chain-of-thought reasoning |