mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 20:30:51 +08:00
**feat(registry): add context length and update max tokens for Claude model configurations**
- Added `ContextLength` field with a value of 200,000 to all applicable Claude model definitions. - Standardized `MaxCompletionTokens` values across models for consistency and alignment.
This commit is contained in:
@@ -14,6 +14,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Haiku",
|
DisplayName: "Claude 4.5 Haiku",
|
||||||
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-sonnet-4-5-20250929",
|
ID: "claude-sonnet-4-5-20250929",
|
||||||
@@ -22,6 +24,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Sonnet",
|
DisplayName: "Claude 4.5 Sonnet",
|
||||||
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-sonnet-4-5-thinking",
|
ID: "claude-sonnet-4-5-thinking",
|
||||||
@@ -30,7 +34,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Sonnet Thinking",
|
DisplayName: "Claude 4.5 Sonnet Thinking",
|
||||||
MaxCompletionTokens: 128000,
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -40,7 +45,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Opus Thinking",
|
DisplayName: "Claude 4.5 Opus Thinking",
|
||||||
MaxCompletionTokens: 128000,
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -50,7 +56,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Opus Thinking Low",
|
DisplayName: "Claude 4.5 Opus Thinking Low",
|
||||||
MaxCompletionTokens: 128000,
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -60,7 +67,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Opus Thinking Medium",
|
DisplayName: "Claude 4.5 Opus Thinking Medium",
|
||||||
MaxCompletionTokens: 128000,
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -70,7 +78,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.5 Opus Thinking High",
|
DisplayName: "Claude 4.5 Opus Thinking High",
|
||||||
MaxCompletionTokens: 128000,
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 1024, Max: 100000, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -91,6 +100,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4.1 Opus",
|
DisplayName: "Claude 4.1 Opus",
|
||||||
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 32000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-opus-4-20250514",
|
ID: "claude-opus-4-20250514",
|
||||||
@@ -99,6 +110,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4 Opus",
|
DisplayName: "Claude 4 Opus",
|
||||||
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 32000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-sonnet-4-20250514",
|
ID: "claude-sonnet-4-20250514",
|
||||||
@@ -107,6 +120,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 4 Sonnet",
|
DisplayName: "Claude 4 Sonnet",
|
||||||
|
ContextLength: 200000,
|
||||||
|
MaxCompletionTokens: 64000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-3-7-sonnet-20250219",
|
ID: "claude-3-7-sonnet-20250219",
|
||||||
@@ -115,6 +130,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 3.7 Sonnet",
|
DisplayName: "Claude 3.7 Sonnet",
|
||||||
|
ContextLength: 128000,
|
||||||
|
MaxCompletionTokens: 8192,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "claude-3-5-haiku-20241022",
|
ID: "claude-3-5-haiku-20241022",
|
||||||
@@ -123,6 +140,8 @@ func GetClaudeModels() []*ModelInfo {
|
|||||||
OwnedBy: "anthropic",
|
OwnedBy: "anthropic",
|
||||||
Type: "claude",
|
Type: "claude",
|
||||||
DisplayName: "Claude 3.5 Haiku",
|
DisplayName: "Claude 3.5 Haiku",
|
||||||
|
ContextLength: 128000,
|
||||||
|
MaxCompletionTokens: 8192,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user