Skip to content

Commit c9615e0

Browse files
authored
Added support for createImage Azure models (#608)
1 parent a09cb0c commit c9615e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type ImageResponseDataInner struct {
6868
// CreateImage - API call to create an image. This is the main endpoint of the DALL-E API.
6969
func (c *Client) CreateImage(ctx context.Context, request ImageRequest) (response ImageResponse, err error) {
7070
urlSuffix := "/images/generations"
71-
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix), withBody(request))
71+
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix, request.Model), withBody(request))
7272
if err != nil {
7373
return
7474
}

0 commit comments

Comments
 (0)