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
eb0b77bf
Commit
eb0b77bf
authored
Mar 11, 2026
by
CoolCoolTomato
Browse files
fix: 修复流水线golangci-lint 的 errcheck
parent
fd8ccaf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/openai_gateway_service.go
View file @
eb0b77bf
...
...
@@ -1761,11 +1761,9 @@ func (s *OpenAIGatewayService) Forward(ctx context.Context, c *gin.Context, acco
// 移除 gpt-5.2-codex 以下的版本 verbosity 参数
// 确保高版本模型向低版本模型映射不报错
if
!
SupportsVerbosity
(
reqBody
[
"model"
]
.
(
string
)
)
{
if
!
SupportsVerbosity
(
normalizedModel
)
{
if
text
,
ok
:=
reqBody
[
"text"
]
.
(
map
[
string
]
any
);
ok
{
if
_
,
ok
:=
text
[
"verbosity"
]
.
(
string
);
ok
{
delete
(
text
,
"verbosity"
)
}
delete
(
text
,
"verbosity"
)
}
}
}
...
...
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