error.go 258 B

12345678910111213
  1. package dto
  2. type OpenAIError struct {
  3. Message string `json:"message"`
  4. Type string `json:"type"`
  5. Param string `json:"param"`
  6. Code any `json:"code"`
  7. }
  8. type OpenAIErrorWithStatusCode struct {
  9. OpenAIError
  10. StatusCode int `json:"status_code"`
  11. }