We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e3fcb commit 6c2e316Copy full SHA for 6c2e316
speech.go
@@ -74,7 +74,7 @@ func (c *Client) CreateSpeech(ctx context.Context, request CreateSpeechRequest)
74
err = ErrInvalidVoice
75
return
76
}
77
- 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)),
78
withBody(request),
79
withContentType("application/json; charset=utf-8"),
80
)
0 commit comments