Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^8.2",
"papi-ai/papi-core": "^0.13",
"papi-ai/papi-core": "^0.14",
"ext-curl": "*"
},
"require-dev": {
Expand Down
50 changes: 50 additions & 0 deletions docs/provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# DeepSeek

DeepSeek provider for PapiAI.

## Installation

```bash
composer require papi-ai/deepseek
```

## Usage

```php
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;
```

## Models

```php
DeepSeekProvider::MODEL_DEEPSEEK_CHAT // 'deepseek-chat' (default)
DeepSeekProvider::MODEL_DEEPSEEK_REASONER // 'deepseek-reasoner' (reasoning)
```

## Capabilities

| Capability | Supported |
|---|---|
| Chat | Yes |
| Streaming | Yes |
| Tool calling | Yes |
| Structured output | Yes |

## Requirements

- PHP 8.2+
- `ext-curl`
- `papi-ai/papi-core` ^0.14
Loading