zakriat/laravel-deepseek-r1
最新稳定版本:v1.0.0
Composer 安装命令:
composer require zakriat/laravel-deepseek-r1
包简介
Laravel-first Deepseek R1 AI integration with Guzzle
关键字:
README 文档
README
Professional Laravel integration for Deepseek R1 API with Guzzle HTTP client.
Features
- Laravel Service Provider & Facade
- Configurable timeouts and retries
- Full exception handling
- Ready for horizontal scaling
- PSR-4 compliant structure
- Comprehensive test suite
Installation
composer require zakriat/laravel-deepseek-r1 # Publish config file php artisan vendor:publish --provider="Zakriat\DeepseekR1\DeepseekServiceProvider"
Usage
use Zakriat\DeepseekR1\Facades\DeepseekR1; // In your controller or service $response = DeepseekR1::chatCompletion([ 'model' => 'deepseek-r1', 'messages' => [ ['role' => 'user', 'content' => 'Explain quantum computing in simple terms'] ] ]); // Access response content echo $response['choices'][0]['message']['content'];
Configuration
Add to your .env:
DEEPSEEK_API_KEY=your_api_key_here
DEEPSEEK_BASE_URI=https://api.deepseek.com/v1/
DEEPSEEK_TIMEOUT=30 # seconds
DEEPSEEK_RETRIES=3 # retry attempts
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-25