diff --git a/client/client.go b/client/client.go index c02d171..6e10d8d 100644 --- a/client/client.go +++ b/client/client.go @@ -2,6 +2,8 @@ package client const apiEndpoint = "https://api.elevenlabs.io" +var ErrUnauthorized error + type Client struct { apiKey string } diff --git a/client/history.go b/client/history.go index 874d875..fdab811 100644 --- a/client/history.go +++ b/client/history.go @@ -11,8 +11,6 @@ import ( "github.com/taigrr/elevenlabs/client/types" ) -var ErrUnauthorized error - func (c Client) HistoryDelete(ctx context.Context, historyItemId string) (bool, error) { // create path and map variables url := fmt.Sprintf(apiEndpoint+"/v1/history/%s", historyItemId)