# Deepseek Laravel Laravel wrapper for **[Deepseek PHP client](https://github.com/deepseek-php/deepseek-php-client)** to seamless [deepseek AI](https://www.deepseek.com) API integration with Laravel applications. ## Table of Contents - [Installation](#installation) - [Publishing Configuration File](#publishing-configuration-file) - [Usage](#usage) - [Basic Usage](#basic-usage) - [Advanced Usage](#advanced-usage) - [Testing](#testing) - [Contributors](#contributors-) - [Changelog](#changelog) - [Security](#security) - [License](#license) ## Installation You can install the package via composer: ```bash composer require deepseek-php/deepseek-laravel ``` ### Publishing Configuration File ```bash php artisan vendor:publish --tag=deepseek ``` then add token to `.env` file ```php DEEPSEEK_API_KEY="your_api_key" ``` ## Usage ### Basic Usage ```php use DeepSeekClient; $deepseek = app(DeepSeekClient::class); $response = $deepseek->query('Hello deepseek, I am Laravel Framework , how are you Today ^_^ ?')->run(); print_r("deepseek API response : " . $response); ``` **Note**: In easy mode, it will take defaults for all configs [Check Default Values](https://github.com/deepseek-php/deepseek-php-client/blob/master/src/Enums/Configs/DefaultConfigs.php) ### Advanced Usage ```php use DeepSeekClient; $deepseek = app(DeepSeekClient::class); // Another way, with customization $response = $deepseek ->query('Hello deepseek, how are you ?', 'system') ->query('Hello deepseek, my name is PHP ', 'user') ->withModel("deepseek-chat") ->setTemperature(1.5) ->run(); print_r("deepseek API response : " . $response); ``` ## Testing Tests will come soon ## Contributors ✨ Thanks to these wonderful people for contributing to this project! 💖
|
Omar AlAlwi 🏆 Creator |
Assem Alwaseai 💻 Contributor |
Faisal 💻 Contributor |