Skip to content

Commit

Permalink
makes error pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoescher committed Sep 10, 2023
1 parent 1a3c28a commit e3aa5a6
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion chats.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ type CreateChatsResponse struct {
TotalTokens int `json:"total_tokens,omitempty"`
} `json:"usage,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ type CreateCompletionsResponse struct {
TotalTokens int `json:"total_tokens,omitempty"`
} `json:"usage,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ type CreateEditsResponse struct {
TotalTokens int `json:"total_tokens,omitempty"`
} `json:"usage,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ type CreateEmbeddingsResponse struct {
TotalTokens int `json:"total_tokens,omitempty"`
} `json:"usage,omitempty"`

Error Error `json:"error"`
Error *Error `json:"error"`
}
2 changes: 1 addition & 1 deletion images.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ type CreateImagesResponse struct {
URL string `json:"url,omitempty"`
} `json:"data,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion imagesedits.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ type CreateImagesEditsResponse struct {
URL string `json:"url,omitempty"`
} `json:"data,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion imagesvariations.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ type CreateImagesVariationsResponse struct {
URL string `json:"url,omitempty"`
} `json:"data,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion model.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ type RetrieveModelResponse struct {
OwnedBy string `json:"owned_by,omitempty"`
Permissions []string `json:"permissions,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ type ListModelsResponse struct {
} `json:"data,omitempty"`
Object string `json:"object,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion moderations.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ type CreateModerationsResponse struct {
Flagged bool `json:"flagged,omitempty"`
} `json:"results,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion transcriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ func (c *Client) CreateTranscriptions(ctx context.Context, r CreateTranscription
type CreateTranscriptionsResponse struct {
Text string `json:"text,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}
2 changes: 1 addition & 1 deletion translations.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ func (c *Client) CreateTranslations(ctx context.Context, r CreateTranslationsReq
type CreateTranslationsResponse struct {
Text string `json:"text,omitempty"`

Error Error `json:"error,omitempty"`
Error *Error `json:"error,omitempty"`
}

0 comments on commit e3aa5a6

Please sign in to comment.