Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
8917a3ea
Commit
8917a3ea
authored
Jan 17, 2026
by
cyhhao
Browse files
fix(网关): 修复 golangci-lint
parent
0c011b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_service.go
View file @
8917a3ea
...
@@ -439,7 +439,7 @@ func toPascalCase(value string) string {
...
@@ -439,7 +439,7 @@ func toPascalCase(value string) string {
}
}
runes
:=
[]
rune
(
lower
)
runes
:=
[]
rune
(
lower
)
runes
[
0
]
=
unicode
.
ToUpper
(
runes
[
0
])
runes
[
0
]
=
unicode
.
ToUpper
(
runes
[
0
])
builder
.
WriteString
(
string
(
runes
))
_
,
_
=
builder
.
WriteString
(
string
(
runes
))
}
}
return
builder
.
String
()
return
builder
.
String
()
}
}
...
@@ -723,12 +723,8 @@ func normalizeClaudeOAuthRequestBody(body []byte, modelID string, opts claudeOAu
...
@@ -723,12 +723,8 @@ func normalizeClaudeOAuthRequestBody(body []byte, modelID string, opts claudeOAu
}
}
}
}
if
_
,
ok
:=
req
[
"temperature"
];
ok
{
delete
(
req
,
"temperature"
)
delete
(
req
,
"temperature"
)
delete
(
req
,
"tool_choice"
)
}
if
_
,
ok
:=
req
[
"tool_choice"
];
ok
{
delete
(
req
,
"tool_choice"
)
}
newBody
,
err
:=
json
.
Marshal
(
req
)
newBody
,
err
:=
json
.
Marshal
(
req
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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