MCPcopy Create free account
hub / github.com/alibaba/open-code-review / APIError

Struct APIError

internal/chatgptauth/api_error.go:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15)
16
17type APIError struct {
18 Status int
19 Code string
20 Param string
21 RequestID string
22 Shape string
23 Detail string
24}
25
26func (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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected