Skip to content

Commit c18b4e2

Browse files
committed
extra_body should be added to the root node of the JSON
1 parent e373ca0 commit c18b4e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ func (c *Client) CreateChatCompletion(
487487
http.MethodPost,
488488
c.fullURL(urlSuffix, withModel(request.Model)),
489489
withBody(request),
490+
withExtraBody(request.ExtraBody),
490491
)
491492
if err != nil {
492493
return

0 commit comments

Comments
 (0)