zakriat/laravel-deepseek-r1 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zakriat/laravel-deepseek-r1

最新稳定版本:v1.0.0

Composer 安装命令:

composer require zakriat/laravel-deepseek-r1

包简介

Laravel-first Deepseek R1 AI integration with Guzzle

README 文档

README

Latest Version

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-25