Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "elevenlabs"
version = "v2.36.0"
version = "v2.36.1"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/elevenlabs/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "elevenlabs/v2.36.0",
"User-Agent": "elevenlabs/v2.36.1",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "v2.36.0",
"X-Fern-SDK-Version": "v2.36.1",
**(self.get_custom_headers() or {}),
}
if self._api_key is not None:
Expand Down
12 changes: 12 additions & 0 deletions src/elevenlabs/music_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def compose_detailed( # type: ignore[override]
composition_plan: typing.Optional[MusicPrompt] = OMIT,
music_length_ms: typing.Optional[int] = OMIT,
model_id: typing.Optional[typing.Literal["music_v1"]] = OMIT,
with_timestamps: typing.Optional[bool] = OMIT,
sign_with_c2pa: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
**kwargs: typing.Any,
) -> MultipartResponse:
"""
Compose a song from a prompt or a composition plan with detailed response parsing.
Expand All @@ -61,7 +64,10 @@ def compose_detailed( # type: ignore[override]
composition_plan=composition_plan,
music_length_ms=music_length_ms,
model_id=model_id,
with_timestamps=with_timestamps,
sign_with_c_2_pa=sign_with_c2pa,
request_options=request_options,
**kwargs,
)

# Parse the stream using the parsing method
Expand Down Expand Up @@ -172,7 +178,10 @@ async def compose_detailed( # type: ignore[override]
composition_plan: typing.Optional[MusicPrompt] = OMIT,
music_length_ms: typing.Optional[int] = OMIT,
model_id: typing.Optional[typing.Literal["music_v1"]] = OMIT,
with_timestamps: typing.Optional[bool] = OMIT,
sign_with_c2pa: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
**kwargs: typing.Any,
) -> MultipartResponse:
"""
Compose a song from a prompt or a composition plan with detailed response parsing.
Expand All @@ -187,7 +196,10 @@ async def compose_detailed( # type: ignore[override]
composition_plan=composition_plan,
music_length_ms=music_length_ms,
model_id=model_id,
with_timestamps=with_timestamps,
sign_with_c_2_pa=sign_with_c2pa,
request_options=request_options,
**kwargs,
)

# Parse the stream using the parsing method
Expand Down