@ai-api-tool/platform-deepseek
v1.0.0
Published
DeepSeek 平台适配器 - 代码能力极强,性价比高
Maintainers
Readme
@ai-api-tool/platform-deepseek
DeepSeek 平台适配器 - 代码能力极强,性价比高
支持的模型
| 模型 ID | 名称 | 特点 |
|---------|------|------|
| deepseek-chat | DeepSeek Chat | 综合能力强,代码能力突出 |
| deepseek-coder | DeepSeek Coder | 专业代码模型,代码能力顶尖 |
定价
| 项目 | 价格 | |------|------| | 输入 | ¥0.001 / 1K tokens | | 输出 | ¥0.002 / 1K tokens |
安装
npm install @ai-api-tool/platform-deepseek使用
import { loadPlugin } from '@ai-api-tool/sdk'
const plugin = await loadPlugin('@ai-api-tool/platform-deepseek')
// 调用模型
const result = await plugin.execute({
model: 'deepseek-chat',
messages: [{ role: 'user', content: '你好' }],
})配置
API Key
- 访问 DeepSeek Platform
- 获取 API Key
- 在应用中配置密钥
环境变量
export DEEPSEEK_API_KEY="your-api-key"能力评分
| 能力 | 分数 | |------|------| | 代码 | 96 | | 数学 | 94 | | 分析 | 92 | | 写作 | 90 | | 翻译 | 89 | | 中文 | 93 | | 创意 | 85 |
特性
- ✅ 流式输出
- ✅ 函数调用
- ❌ 多模态
- ✅ 32K 上下文
链接
许可证
MIT
