Files
new-api/dto/error.go

14 lines
258 B
Go
Raw Normal View History

2024-02-29 01:08:18 +08:00
package dto
type OpenAIError struct {
Message string `json:"message"`
Type string `json:"type"`
Param string `json:"param"`
Code any `json:"code"`
}
type OpenAIErrorWithStatusCode struct {
OpenAIError
StatusCode int `json:"status_code"`
}