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
32c47b15
Commit
32c47b15
authored
Jan 17, 2026
by
cyhhao
Browse files
fix(gateway): satisfy golangci-lint checks
parent
39e43001
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_service.go
View file @
32c47b15
...
@@ -420,7 +420,7 @@ func toPascalCase(value string) string {
...
@@ -420,7 +420,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
()
}
}
...
@@ -704,12 +704,8 @@ func normalizeClaudeOAuthRequestBody(body []byte, modelID string, opts claudeOAu
...
@@ -704,12 +704,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