Commit eb0b77bf authored by CoolCoolTomato's avatar CoolCoolTomato
Browse files

fix: 修复流水线golangci-lint 的 errcheck

parent fd8ccaf0
...@@ -1761,14 +1761,12 @@ func (s *OpenAIGatewayService) Forward(ctx context.Context, c *gin.Context, acco ...@@ -1761,14 +1761,12 @@ func (s *OpenAIGatewayService) Forward(ctx context.Context, c *gin.Context, acco
// 移除 gpt-5.2-codex 以下的版本 verbosity 参数 // 移除 gpt-5.2-codex 以下的版本 verbosity 参数
// 确保高版本模型向低版本模型映射不报错 // 确保高版本模型向低版本模型映射不报错
if !SupportsVerbosity(reqBody["model"].(string)) { if !SupportsVerbosity(normalizedModel) {
if text, ok := reqBody["text"].(map[string]any); ok { if text, ok := reqBody["text"].(map[string]any); ok {
if _, ok := text["verbosity"].(string); ok {
delete(text, "verbosity") delete(text, "verbosity")
} }
} }
} }
}
// 规范化 reasoning.effort 参数(minimal -> none),与上游允许值对齐。 // 规范化 reasoning.effort 参数(minimal -> none),与上游允许值对齐。
if reasoning, ok := reqBody["reasoning"].(map[string]any); ok { if reasoning, ok := reqBody["reasoning"].(map[string]any); ok {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment