Skip to content

Commit

Permalink
fix golang-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eiixy committed Jul 19, 2024
1 parent 67f1044 commit 3c69ca1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
5 changes: 4 additions & 1 deletion embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3c69ca1

Please sign in to comment.