Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Nov 7, 2023
1 parent 5d6a6b5 commit 2996042
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fine_tunes.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (c *Client) CreateFineTune(ctx context.Context, request FineTuneRequest) (r
// This API will be officially deprecated on January 4th, 2024.
// OpenAI recommends to migrate to the new fine tuning API implemented in fine_tuning_job.go.
func (c *Client) CancelFineTune(ctx context.Context, fineTuneID string) (response FineTune, err error) {
//nolint:goconst

Check failure on line 118 in fine_tunes.go

View workflow job for this annotation

GitHub Actions / Sanity check

directive `//nolint:goconst` should provide explanation such as `//nolint:goconst // this is why` (nolintlint)
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/fine-tunes/"+fineTuneID+"/cancel"))
if err != nil {
return
Expand All @@ -128,6 +129,7 @@ func (c *Client) CancelFineTune(ctx context.Context, fineTuneID string) (respons
// This API will be officially deprecated on January 4th, 2024.
// OpenAI recommends to migrate to the new fine tuning API implemented in fine_tuning_job.go.
func (c *Client) ListFineTunes(ctx context.Context) (response FineTuneList, err error) {
//nolint:goconst

Check failure on line 132 in fine_tunes.go

View workflow job for this annotation

GitHub Actions / Sanity check

directive `//nolint:goconst` is unused for linter "goconst" (nolintlint)
req, err := c.newRequest(ctx, http.MethodGet, c.fullURL("/fine-tunes"))
if err != nil {
return
Expand All @@ -141,6 +143,7 @@ func (c *Client) ListFineTunes(ctx context.Context) (response FineTuneList, err
// This API will be officially deprecated on January 4th, 2024.
// OpenAI recommends to migrate to the new fine tuning API implemented in fine_tuning_job.go.
func (c *Client) GetFineTune(ctx context.Context, fineTuneID string) (response FineTune, err error) {
//nolint:goconst

Check failure on line 146 in fine_tunes.go

View workflow job for this annotation

GitHub Actions / Sanity check

directive `//nolint:goconst` is unused for linter "goconst" (nolintlint)
urlSuffix := fmt.Sprintf("/fine-tunes/%s", fineTuneID)
req, err := c.newRequest(ctx, http.MethodGet, c.fullURL(urlSuffix))
if err != nil {
Expand Down

0 comments on commit 2996042

Please sign in to comment.