fix: satisfy grok media lint

This commit is contained in:
Heatherm Huang
2026-07-01 15:42:00 +08:00
parent 42e471f59a
commit c9fb221a31
+4 -4
View File
@@ -485,12 +485,12 @@ func (s *OpenAIGatewayService) handleGrokMediaErrorResponse(
}
func grokMediaErrorType(statusCode int) string {
switch {
case statusCode == http.StatusBadRequest:
switch statusCode {
case http.StatusBadRequest:
return "invalid_request_error"
case statusCode == http.StatusNotFound:
case http.StatusNotFound:
return "not_found_error"
case statusCode == http.StatusTooManyRequests:
case http.StatusTooManyRequests:
return "rate_limit_error"
default:
return "upstream_error"