Added support for CreateSpeech Azure models (#657)
This commit is contained in:
@@ -74,7 +74,7 @@ func (c *Client) CreateSpeech(ctx context.Context, request CreateSpeechRequest)
|
||||
err = ErrInvalidVoice
|
||||
return
|
||||
}
|
||||
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", request.Model),
|
||||
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", string(request.Model)),
|
||||
withBody(request),
|
||||
withContentType("application/json; charset=utf-8"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user