()
| 24 | } |
| 25 | |
| 26 | func (e *APIError) Error() string { |
| 27 | return fmt.Sprintf("ChatGPT API request failed: status=%d code=%q param=%q request_id=%q body_shape=%s detail=%q", e.Status, e.Code, e.Param, e.RequestID, e.Shape, e.Detail) |
| 28 | } |
| 29 | |
| 30 | var apiSecretPatterns = []*regexp.Regexp{ |
| 31 | regexp.MustCompile(`(?i)\bBearer\s+[^\s,;"']+`), |
nothing calls this directly
no outgoing calls
no test coverage detected