Skip to content

Commit

Permalink
Added support for createImage Azure models (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy282 authored Jan 3, 2024
1 parent a09cb0c commit c9615e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type ImageResponseDataInner struct {
// CreateImage - API call to create an image. This is the main endpoint of the DALL-E API.
func (c *Client) CreateImage(ctx context.Context, request ImageRequest) (response ImageResponse, err error) {
urlSuffix := "/images/generations"
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix), withBody(request))
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL(urlSuffix, request.Model), withBody(request))
if err != nil {
return
}
Expand Down

0 comments on commit c9615e0

Please sign in to comment.