webboy/deepseek
最新稳定版本:1.0.3
Composer 安装命令:
composer require webboy/deepseek
包简介
PHP client for Deepseek AI API
README 文档
README
A PHP client for interacting with the Deepseek AI API, providing easy-to-use methods to communicate with Deepseek's services.
Installation
Install the package via Composer:
composer require webboy/deepseek
Requirements
PHP ^8.1
ext-json extension
ext-curl extension
Features
-
Easy integration with Deepseek AI API
-
Utilizes Guzzle for HTTP requests
-
Simple and fluent API for request handling
-
Laravel-friendly using illuminate/collections
Usage
Initialize the client
use Webboy\Deepseek\Deepseek; $deepseek = new Deepseek('your-api-key');
Get all models
$response = $client ->listModels() ->call();
Get user balance
$response = $client ->getBalance() ->call();
Start a chat session
$response = $client ->createChatCompletion() ->setResponseFormat('text') ->setSystemMessage('You are a professional LinkedIn influencer.', 'Agent Smith') ->setUserMessage('Write down a short announcement for the initial version for the Deepseek API Client composer package.') ->call();
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-26