deepseek-npm-package
v1.0.0
Published
A simple Node.js wrapper for the DeepSeek API.
Downloads
26
Readme
DeepSeek API Client
A simple Node.js wrapper for the DeepSeek API.
Installation
npm install deepseek-api
const DeepSeekAPI = require('deepseek-api');
const apiKey = '<YOUR_DEEPSEEK_API_KEY>';
const deepseek = new DeepSeekAPI(apiKey);
async function main() {
const response = await deepseek.getChatCompletion([
{ role: 'system', content: 'You are a helpful assistant.' },
]);
console.log(response);
}
main();
### 5. **نصب وابستگیها**
در صورتی که بسته `openai` را به عنوان وابستگی نیاز دارید، آن را نصب کنید:
```bash
npm install openai