Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a4afa3a1
authored
Jul 26, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: claude code automatic disable
parent
1389cc7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
relay/channel/claude_code/constants.go
+0
-1
setting/operation_setting/operation_setting.go
+3
-0
No files found.
relay/channel/claude_code/constants.go
View file @
a4afa3a1
...
...
@@ -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"
,
...
...
setting/operation_setting/operation_setting.go
View file @
a4afa3a1
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment