chore: claude code automatic disable

This commit is contained in:
Seefs
2025-07-26 18:40:18 +08:00
parent bca78beb1b
commit fe9acb6c59
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,6 @@ package claude_code
var ModelList = []string{
"claude-3-5-haiku-20241022",
"claude-3-5-sonnet-20240620",
"claude-3-5-sonnet-20241022",
"claude-3-7-sonnet-20250219",
"claude-3-7-sonnet-20250219-thinking",

View File

@@ -13,6 +13,9 @@ var AutomaticDisableKeywords = []string{
"The security token included in the request is invalid",
"Operation not allowed",
"Your account is not authorized",
// Claude Code
"Invalid bearer token",
"OAuth authentication is currently not allowed for this endpoint",
}
func AutomaticDisableKeywordsToString() string {