فهرست منبع

chore: claude code automatic disable

Seefs 7 ماه پیش
والد
کامیت
fe9acb6c59
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 0 1
      relay/channel/claude_code/constants.go
  2. 3 0
      setting/operation_setting/operation_setting.go

+ 0 - 1
relay/channel/claude_code/constants.go

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

+ 3 - 0
setting/operation_setting/operation_setting.go

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