Skip to content

Commit 9590446

Browse files
authored
[Music] Add missing music parameters (#733)
* Add missing parameters * bump version * Better way * don't need these
1 parent 0b87e77 commit 9590446

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "elevenlabs"
7-
version = "v2.36.0"
7+
version = "v2.36.1"
88
description = ""
99
readme = "README.md"
1010
authors = []

src/elevenlabs/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "elevenlabs/v2.36.0",
25+
"User-Agent": "elevenlabs/v2.36.1",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "elevenlabs",
28-
"X-Fern-SDK-Version": "v2.36.0",
28+
"X-Fern-SDK-Version": "v2.36.1",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
if self._api_key is not None:

src/elevenlabs/music_custom.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def compose_detailed( # type: ignore[override]
4646
composition_plan: typing.Optional[MusicPrompt] = OMIT,
4747
music_length_ms: typing.Optional[int] = OMIT,
4848
model_id: typing.Optional[typing.Literal["music_v1"]] = OMIT,
49+
with_timestamps: typing.Optional[bool] = OMIT,
50+
sign_with_c2pa: typing.Optional[bool] = OMIT,
4951
request_options: typing.Optional[RequestOptions] = None,
52+
**kwargs: typing.Any,
5053
) -> MultipartResponse:
5154
"""
5255
Compose a song from a prompt or a composition plan with detailed response parsing.
@@ -61,7 +64,10 @@ def compose_detailed( # type: ignore[override]
6164
composition_plan=composition_plan,
6265
music_length_ms=music_length_ms,
6366
model_id=model_id,
67+
with_timestamps=with_timestamps,
68+
sign_with_c_2_pa=sign_with_c2pa,
6469
request_options=request_options,
70+
**kwargs,
6571
)
6672

6773
# Parse the stream using the parsing method
@@ -172,7 +178,10 @@ async def compose_detailed( # type: ignore[override]
172178
composition_plan: typing.Optional[MusicPrompt] = OMIT,
173179
music_length_ms: typing.Optional[int] = OMIT,
174180
model_id: typing.Optional[typing.Literal["music_v1"]] = OMIT,
181+
with_timestamps: typing.Optional[bool] = OMIT,
182+
sign_with_c2pa: typing.Optional[bool] = OMIT,
175183
request_options: typing.Optional[RequestOptions] = None,
184+
**kwargs: typing.Any,
176185
) -> MultipartResponse:
177186
"""
178187
Compose a song from a prompt or a composition plan with detailed response parsing.
@@ -187,7 +196,10 @@ async def compose_detailed( # type: ignore[override]
187196
composition_plan=composition_plan,
188197
music_length_ms=music_length_ms,
189198
model_id=model_id,
199+
with_timestamps=with_timestamps,
200+
sign_with_c_2_pa=sign_with_c2pa,
190201
request_options=request_options,
202+
**kwargs,
191203
)
192204

193205
# Parse the stream using the parsing method

0 commit comments

Comments
 (0)