Skip to content

Commit 3c69ca1

Browse files
committed
fix golang-lint
1 parent 67f1044 commit 3c69ca1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

edits.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ will need to migrate to GPT-3.5 Turbo by January 4, 2024.
3838
You can use CreateChatCompletion or CreateChatCompletionStream instead.
3939
*/
4040
func (c *Client) Edits(ctx context.Context, request EditsRequest) (response EditsResponse, err error) {
41-
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/edits", withModel(fmt.Sprint(request.Model))), withBody(request))
41+
req, err := c.newRequest(ctx, http.MethodPost,
42+
c.fullURL("/edits", withModel(fmt.Sprint(request.Model))),
43+
withBody(request),
44+
)
4245
if err != nil {
4346
return
4447
}

embeddings.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ func (c *Client) CreateEmbeddings(
241241
conv EmbeddingRequestConverter,
242242
) (res EmbeddingResponse, err error) {
243243
baseReq := conv.Convert()
244-
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/embeddings", withModel(string(baseReq.Model))), withBody(baseReq))
244+
req, err := c.newRequest(ctx, http.MethodPost,
245+
c.fullURL("/embeddings", withModel(string(baseReq.Model))),
246+
withBody(baseReq),
247+
)
245248
if err != nil {
246249
return
247250
}

0 commit comments

Comments
 (0)