承接 eahiya/deepseek-ai-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

eahiya/deepseek-ai-laravel

最新稳定版本:v1.1.0

Composer 安装命令:

composer require eahiya/deepseek-ai-laravel

包简介

A Laravel package for integrating with the DeepSeek API.

README 文档

README

DeepSeek AI Laravel is a Laravel package that provides seamless integration with DeepSeek AI APIs, allowing you to easily interact with AI-powered chat services within your Laravel applications.

Installation

Step 1: Install via Composer

You can install the package using Composer:

composer require eahiya/deepseek-ai-laravel

Step 2: Publish Configuration

Run the following command to publish the package's configuration file:

php artisan vendor:publish --provider="eahiya\DeepSeekAI\DeepSeekAIServiceProvider" --tag="deepseek-config"

Step 3: Set API Key

After publishing the configuration, add your DeepSeek API key to your .env file:

DEEPSEEK_API_KEY=your-api-key,

Usage

Using the Facade

You can use the DeepSeekAI facade to interact with the API:

use eahiya\DeepSeekAI\Facades\DeepSeekAI;

$response = DeepSeekAI::chat([
    ['role' => 'user', 'content' => 'Hello, how are you?']
],'deepseek-chat');

dd($response);

Using Dependency Injection

You can also use dependency injection to resolve the service:

use eahiya\DeepSeekAI\Services\DeepSeekAIClient;

public function someMethod(DeepSeekAIClient $deepSeek)
{
    $response = $deepSeek->chat([
        ['role' => 'user', 'content' => 'Hello, how are you?']
    ], 'deepseek-chat');

    return $response;
}

Configuration

The package publishes a configuration file located at config/deepseek.php. You can customize the API endpoint and other settings there.

License

This package is open-source and licensed under the MIT license.

Contributing

If you'd like to contribute, feel free to submit a pull request or open an issue on GitHub.

Support

For any issues, please open an issue on the GitHub repository or contact support.

Enjoy using DeepSeek AI Laravel! 🚀

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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