Skip to content

Commit eb0b77b

Browse files
fix: 修复流水线golangci-lint 的 errcheck
1 parent fd8ccaf commit eb0b77b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

backend/internal/service/openai_gateway_service.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,11 +1761,9 @@ func (s *OpenAIGatewayService) Forward(ctx context.Context, c *gin.Context, acco
17611761

17621762
// 移除 gpt-5.2-codex 以下的版本 verbosity 参数
17631763
// 确保高版本模型向低版本模型映射不报错
1764-
if !SupportsVerbosity(reqBody["model"].(string)) {
1764+
if !SupportsVerbosity(normalizedModel) {
17651765
if text, ok := reqBody["text"].(map[string]any); ok {
1766-
if _, ok := text["verbosity"].(string); ok {
1767-
delete(text, "verbosity")
1768-
}
1766+
delete(text, "verbosity")
17691767
}
17701768
}
17711769
}

0 commit comments

Comments
 (0)