Added a files endpoint, corrected a documents bug in answers requests, added error messages to API error handling (#6)

Co-authored-by: eyelevelai <33876565+eyelevelai@users.noreply.github.com>
This commit is contained in:
blfletcher
2021-07-18 14:32:20 -06:00
committed by GitHub
parent 2be4a268a8
commit 6297de371c
5 changed files with 79 additions and 2 deletions

10
error.go Normal file
View File

@@ -0,0 +1,10 @@
package gogpt
type ErrorResponse struct {
Error *struct {
Code *int `json:"code,omitempty"`
Message string `json:"message"`
Param *string `json:"param,omitempty"`
Type string `json:"type"`
} `json:"error,omitempty"`
}