| 15 | ) |
| 16 | |
| 17 | type APIError struct { |
| 18 | Status int |
| 19 | Code string |
| 20 | Param string |
| 21 | RequestID string |
| 22 | Shape string |
| 23 | Detail string |
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected