-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathModel.php
More file actions
100 lines (62 loc) · 3.42 KB
/
Model.php
File metadata and controls
100 lines (62 loc) · 3.42 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
declare(strict_types=1);
namespace Anthropic\Messages;
/**
* The model that will complete your prompt.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
*
* @see https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock AWS Bedrock model identifiers
* @see https://platform.claude.com/docs/en/build-with-claude/claude-on-vertex-ai List of supported Vertex AI models
* @see https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments List of supported Foundry AI models
*/
enum Model: string
{
// Anthropic model identifiers
case CLAUDE_MYTHOS_PREVIEW = 'claude-mythos-preview';
case CLAUDE_OPUS_4_6 = 'claude-opus-4-6';
case CLAUDE_SONNET_4_6 = 'claude-sonnet-4-6';
case CLAUDE_HAIKU_4_5 = 'claude-haiku-4-5';
case CLAUDE_HAIKU_4_5_20251001 = 'claude-haiku-4-5-20251001';
case CLAUDE_OPUS_4_5 = 'claude-opus-4-5';
case CLAUDE_OPUS_4_5_20251101 = 'claude-opus-4-5-20251101';
case CLAUDE_SONNET_4_5 = 'claude-sonnet-4-5';
case CLAUDE_SONNET_4_5_20250929 = 'claude-sonnet-4-5-20250929';
case CLAUDE_OPUS_4_1 = 'claude-opus-4-1';
case CLAUDE_OPUS_4_1_20250805 = 'claude-opus-4-1-20250805';
case CLAUDE_OPUS_4_0 = 'claude-opus-4-0';
case CLAUDE_OPUS_4_20250514 = 'claude-opus-4-20250514';
case CLAUDE_SONNET_4_0 = 'claude-sonnet-4-0';
case CLAUDE_SONNET_4_20250514 = 'claude-sonnet-4-20250514';
case CLAUDE_3_HAIKU_20240307 = 'claude-3-haiku-20240307';
// AWS Bedrock model identifiers
case BEDROCK_CLAUDE_SONNET_4_5_20250929 = 'anthropic.claude-sonnet-4-5-20250929-v1:0';
case BEDROCK_CLAUDE_SONNET_4_20250514 = 'anthropic.claude-sonnet-4-20250514-v1:0';
/**
* @deprecated Model is deprecated. Migrate to anthropic.claude-sonnet-4-20250514-v1:0.
*/
case BEDROCK_CLAUDE_3_7_SONNET_20250219 = 'anthropic.claude-3-7-sonnet-20250219-v1:0';
case BEDROCK_CLAUDE_OPUS_4_5_20251101 = 'anthropic.claude-opus-4-5-20251101-v1:0';
case BEDROCK_CLAUDE_OPUS_4_1_20250805 = 'anthropic.claude-opus-4-1-20250805-v1:0';
case BEDROCK_CLAUDE_OPUS_4_20250514 = 'anthropic.claude-opus-4-20250514-v1:0';
case BEDROCK_CLAUDE_HAIKU_4_5_20251001 = 'anthropic.claude-haiku-4-5-20251001-v1:0';
/**
* @deprecated Model is deprecated. Migrate to anthropic.claude-haiku-4-5-20251001-v1:0.
*/
case BEDROCK_CLAUDE_3_5_HAIKU_20241022 = 'anthropic.claude-3-5-haiku-20241022-v1:0';
case BEDROCK_CLAUDE_3_HAIKU_20240307 = 'anthropic.claude-3-haiku-20240307-v1:0';
// Vertex AI model identifiers
case VERTEX_CLAUDE_OPUS_4_5_20251101 = 'claude-opus-4-5@20251101';
case VERTEX_CLAUDE_OPUS_4_1_20250805 = 'claude-opus-4-1@20250805';
case VERTEX_CLAUDE_OPUS_4_20250514 = 'claude-opus-4@20250514';
case VERTEX_CLAUDE_SONNET_4_5_20250929 = 'claude-sonnet-4-5@20250929';
case VERTEX_CLAUDE_SONNET_4_20250514 = 'claude-sonnet-4@20250514';
/**
* @deprecated Model is deprecated. Migrate to claude-sonnet-4@20250514.
*/
case VERTEX_CLAUDE_3_7_SONNET_20250219 = 'claude-3-7-sonnet@20250219';
case VERTEX_CLAUDE_HAIKU_4_5_20251001 = 'claude-haiku-4-5@20251001';
/**
* @deprecated Model is deprecated. Migrate to claude-haiku-4-5@20251001.
*/
case VERTEX_CLAUDE_3_5_HAIKU_20241022 = 'claude-3-5-haiku@20241022';
case VERTEX_CLAUDE_3_HAIKU_20240307 = 'claude-3-haiku@20240307';
}