This commit is contained in:
unintendedfraud
2023-05-06 11:38:30 +02:00
parent 7b5de32be7
commit 13145cad31
2 changed files with 8 additions and 10 deletions
+1 -5
View File
@@ -8,7 +8,6 @@ import (
)
type Client struct {
Token string
HttpClient *resty.Client
}
@@ -16,10 +15,7 @@ func NewClient(token string) *Client {
httpclient := resty.New()
httpclient.SetAuthToken(token)
return &Client{
Token: token,
HttpClient: httpclient,
}
return &Client{HttpClient: httpclient}
}
func (c Client) ChatCompletions(prompt string) (*CompletionResponse, error) {