Skip to content

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amnid committed Jan 9, 2025
1 parent 24b5915 commit d02c507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getIAMUrl = "https://iam.api.cloud.yandex.net/iam/v1/tokens"
//
// Always call it before creating a request.
//
// If you will use it when API key is specified, method CreateRequest(...) will always use API key.
// If you will use it when API key is specified, method GetCompletion(...) will always use API key.
func (c *YandexGPTClient) GetIAMToken(ctx context.Context) error {
iamRq := YandexIAMRequest{OAuthToken: c.config.OAuthToken}
req, err := c.newRequest(ctx, http.MethodPost, getIAMUrl, iamRq)
Expand Down

0 comments on commit d02c507

Please sign in to comment.