webboy/deepseek 问题修复 & 功能扩展

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

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

webboy/deepseek

最新稳定版本:1.0.3

Composer 安装命令:

composer require webboy/deepseek

包简介

PHP client for Deepseek AI API

README 文档

README

Latest Stable Version Total Downloads PHP Version License Build Status

A PHP client for interacting with the Deepseek AI API, providing easy-to-use methods to communicate with Deepseek's services.

Installation

Install the package via Composer:

composer require webboy/deepseek

Requirements

PHP ^8.1

ext-json extension

ext-curl extension

Features

  • Easy integration with Deepseek AI API

  • Utilizes Guzzle for HTTP requests

  • Simple and fluent API for request handling

  • Laravel-friendly using illuminate/collections

Usage

Initialize the client

use Webboy\Deepseek\Deepseek;

$deepseek = new Deepseek('your-api-key');

Get all models

$response = $client
    ->listModels()
    ->call();

Get user balance

$response = $client
    ->getBalance()
    ->call();

Start a chat session

$response = $client
        ->createChatCompletion()
        ->setResponseFormat('text')
        ->setSystemMessage('You are a professional LinkedIn influencer.', 'Agent Smith')
        ->setUserMessage('Write down a short announcement for the initial version for the Deepseek API Client composer package.')
        ->call();

统计信息

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

GitHub 信息

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

其他信息

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