fix: satisfy grok media lint
This commit is contained in:
1 parent
42e471f59a
commit
c9fb221a31
1 file changed
+4
-4
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user