Skip to content

Forward enable_logging in the custom music compose_detailed wrapper - #894

Merged
lpastusz merged 1 commit into
mainfrom
lukas/zrm-music
Oct 20, 2026
Merged

lpastusz merged 1 commit into
mainfrom
lukas/zrm-music

Conversation

@lpastusz

@lpastusz lpastusz commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

The hand-maintained music_custom.py overrides compose_detailed with an explicit
parameter list, so new query params on /v1/music/detailed are swallowed by its
**kwargs instead of reaching the request. This PR adds enable_logging (the Music
zero-retention-mode flag) to both the sync and async overrides and forwards it to
the generated raw client.

Dependency

This PR depends on a new generated schema that includes the query param.

@cursor

cursor Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Small API surface fix plus version bump; behavior change only when callers pass enable_logging, which was previously ignored by the custom wrapper.

Overview
Fixes the hand-maintained compose_detailed wrappers in music_custom.py so callers can pass enable_logging (Music zero-retention / enterprise query flag) through to the generated raw client on both sync and async paths—previously the explicit override signature dropped that argument before the HTTP request.

Adds a unit test that enable_logging=False is forwarded when invoking the custom client, and bumps the package/SDK version to 2.74.1 (including User-Agent / X-Fern-SDK-Version headers).

Reviewed by Cursor Bugbot for commit abee880. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 86f0920. Configure here.

Comment thread src/elevenlabs/music_custom.py Resolved
@lpastusz
lpastusz force-pushed the lukas/zrm-music branch 2 times, most recently from abee880 to 1c55057 Compare October 20, 2026 11:47
@lpastusz
lpastusz merged commit 90b81b2 into main Oct 20, 2026
11 checks passed
@lpastusz
lpastusz deleted the lukas/zrm-music branch October 20, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants