A Laravel Package to Use the Deepseek API With V3 AI Models

The DeepSeek Laravel package is a wrapper around the community-driven PHP client library for integration with the DeepSeek v3 AI models. DeepSeek v3 was released in December 2024 and touts impressive speed gains over previous models: DeepSeek-V3 achieves a significant breakthrough in inference speed over previous models. It tops the leaderboard among open-source models and rivals the most advanced closed-source models globally. Using the Laravel package, you can use the provided DeepseekClient service to query the AI APIs using supported models. The PHP client allows you to build requests fluently: use DeepseekClient; $response = app(DeepseekClient::class) ->query('Hello deepseek, how are you ?', 'system') ->query('Hello deepseek, my name is PHP ', 'user') ->withModel("deepseek-chat") ->run(); dump("deepseek API response : " . $response); Main Features Easy Integration: Simplifies interaction with the

A Laravel Package to Use the Deepseek API With V3 AI Models

ARE YOU TIRED OF LOW SALES TODAY?

Connect to more customers on doacWeb

Post your business here..... from NGN1,000

WhatsApp: 09031633831

ARE YOU TIRED OF LOW SALES TODAY?

Connect to more customers on doacWeb

Post your business here..... from NGN1,000

WhatsApp: 09031633831

ARE YOU TIRED OF LOW SALES TODAY?

Connect to more customers on doacWeb

Post your business here..... from NGN1,000

WhatsApp: 09031633831

A Laravel Package to Use the Deepseek API With V3 AI Models

The DeepSeek Laravel package is a wrapper around the community-driven PHP client library for integration with the DeepSeek v3 AI models. DeepSeek v3 was released in December 2024 and touts impressive speed gains over previous models:

DeepSeek-V3 achieves a significant breakthrough in inference speed over previous models. It tops the leaderboard among open-source models and rivals the most advanced closed-source models globally.

Using the Laravel package, you can use the provided DeepseekClient service to query the AI APIs using supported models. The PHP client allows you to build requests fluently:

use DeepseekClient;

$response = app(DeepseekClient::class)
    ->query('Hello deepseek, how are you ?', 'system')
    ->query('Hello deepseek, my name is PHP ', 'user')
    ->withModel("deepseek-chat")
    ->run();

dump("deepseek API response : " . $response);

Main Features

  • Easy Integration: Simplifies interaction with the Deepseek API using a PHP client.
  • Method Chaining: Supports fluent method chaining for building requests.
  • Customizable: Allows setting different models, query roles, and streaming options.
  • PSR-18 Compliance: Utilizes PSR-18 HTTP client for making API requests.

You can learn more about this package, get full installation instructions, and view the source code on GitHub. The Laravel package includes the deepseek-php-client package for making API calls using PHP in any project.


The post A Laravel Package to Use the Deepseek API With V3 AI Models appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow