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: "deepseek/deepseek-chat",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | DeepSeek V2.5 | DeepSeek V2.5-1210 | Other Model (GPT-4) |
---|---|---|---|
Model Type | Language Model | Language Model | Language Model |
Parameters | 236 billion | 236 billion | 175 billion |
JSON Output | Generates valid JSON objects | Improved JSON output capabilities | Generates JSON but with specific prompts |
Function Calling | Supports external tool calls | Enhanced user experience for file uploads | Supports function calling |
Performance on Coding Tasks | High performance on humaneval (89%) | Improved performance on math-500 (82.8%) | High performance on code generation |