Commit 32c47b15 authored by cyhhao's avatar cyhhao
Browse files

fix(gateway): satisfy golangci-lint checks

parent 39e43001
......@@ -420,7 +420,7 @@ func toPascalCase(value string) string {
}
runes := []rune(lower)
runes[0] = unicode.ToUpper(runes[0])
builder.WriteString(string(runes))
_, _ = builder.WriteString(string(runes))
}
return builder.String()
}
......@@ -704,12 +704,8 @@ func normalizeClaudeOAuthRequestBody(body []byte, modelID string, opts claudeOAu
}
}
if _, ok := req["temperature"]; ok {
delete(req, "temperature")
}
if _, ok := req["tool_choice"]; ok {
delete(req, "tool_choice")
}
newBody, err := json.Marshal(req)
if err != nil {
......
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