-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelCatalog.php
More file actions
59 lines (54 loc) · 1.75 KB
/
ModelCatalog.php
File metadata and controls
59 lines (54 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\AI\Platform\Bridge\ClaudeCode;
use Symfony\AI\Platform\Capability;
use Symfony\AI\Platform\ModelCatalog\AbstractModelCatalog;
/**
* @author Christopher Hertel <mail@christopher-hertel.de>
*/
final class ModelCatalog extends AbstractModelCatalog
{
/**
* @param array<string, array{class: string, capabilities: list<Capability>}> $additionalModels
*/
public function __construct(array $additionalModels = [])
{
$defaultModels = [
'opus' => [
'class' => ClaudeCode::class,
'capabilities' => [
Capability::INPUT_MESSAGES,
Capability::INPUT_TEXT,
Capability::OUTPUT_TEXT,
Capability::OUTPUT_STREAMING,
],
],
'sonnet' => [
'class' => ClaudeCode::class,
'capabilities' => [
Capability::INPUT_MESSAGES,
Capability::INPUT_TEXT,
Capability::OUTPUT_TEXT,
Capability::OUTPUT_STREAMING,
],
],
'haiku' => [
'class' => ClaudeCode::class,
'capabilities' => [
Capability::INPUT_MESSAGES,
Capability::INPUT_TEXT,
Capability::OUTPUT_TEXT,
Capability::OUTPUT_STREAMING,
],
],
];
$this->models = array_merge($defaultModels, $additionalModels);
}
}