diff --git a/edits.go b/edits.go index 5bc55d77c..716e817ea 100644 --- a/edits.go +++ b/edits.go @@ -38,7 +38,10 @@ will need to migrate to GPT-3.5 Turbo by January 4, 2024. You can use CreateChatCompletion or CreateChatCompletionStream instead. */ func (c *Client) Edits(ctx context.Context, request EditsRequest) (response EditsResponse, err error) { - req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/edits", withModel(fmt.Sprint(request.Model))), withBody(request)) + req, err := c.newRequest(ctx, http.MethodPost, + c.fullURL("/edits", withModel(fmt.Sprint(request.Model))), + withBody(request), + ) if err != nil { return } diff --git a/embeddings.go b/embeddings.go index 70dd651d0..918689b0c 100644 --- a/embeddings.go +++ b/embeddings.go @@ -241,7 +241,10 @@ func (c *Client) CreateEmbeddings( conv EmbeddingRequestConverter, ) (res EmbeddingResponse, err error) { baseReq := conv.Convert() - req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/embeddings", withModel(string(baseReq.Model))), withBody(baseReq)) + req, err := c.newRequest(ctx, http.MethodPost, + c.fullURL("/embeddings", withModel(string(baseReq.Model))), + withBody(baseReq), + ) if err != nil { return }