Search by

papi-ai / deepseek

md

DeepSeek provider for PapiAI

Package info

github.com/papi-ai/deepseek

pkg:composer/papi-ai/deepseek

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.16.0 2026-09-14 19:41 UTC

This package is not auto-updated.

Last update: 2026-09-14 20:05:41 UTC


README

CI Latest Version Total Downloads PHP Version License

DeepSeek provider for PapiAI - A simple but powerful PHP library for building AI agents.

Installation

composer require papi-ai/deepseek

Usage

use PapiAI\Core\Agent;
use PapiAI\DeepSeek\DeepSeekProvider;

$provider = new DeepSeekProvider(
    apiKey: $_ENV['DEEPSEEK_API_KEY'],
);

$agent = new Agent(
    provider: $provider,
    instructions: 'You are a helpful assistant.',
);

$response = $agent->run('Hello!');
echo $response->text;

Available Models

DeepSeekProvider::MODEL_DEEPSEEK_FLASH   // 'deepseek-flash' (default)
DeepSeekProvider::MODEL_DEEPSEEK_V4_PRO  // 'deepseek-v4-pro'

deepseek-flash is the name DeepSeek documents for the current Flash generation and it follows the generation forward; the versioned MODEL_DEEPSEEK_V4_FLASH was retired on 10 September 2026 and is only routed "temporarily". MODEL_DEEPSEEK_CHAT and MODEL_DEEPSEEK_REASONER were discontinued on 24 July 2026 and requests using them fail. All three constants are still shipped, deprecated. The V4 family replaces the old chat and reasoner split, with the neutral effort option controlling how hard the model thinks.

Features

  • Tool/function calling
  • Structured output (JSON mode)
  • Streaming support

License

MIT