Skip to content

Deprecate mode and moderation_level on fashion try-on - #2

Merged
0xBitBuster merged 1 commit into
mainfrom
fix/live-cleanup-deprecations
Nov 26, 2026
Merged

0xBitBuster merged 1 commit into
mainfrom
fix/live-cleanup-deprecations

Conversation

@0xBitBuster

Copy link
Copy Markdown
Contributor

Summary

Deprecates mode and moderation_level on the fashion try-on. The TryItOn API ignores mode and validates moderation_level without applying it (the AI providers' own safety filters always apply). Both stay accepted, so existing code keeps working; they will be removed in the next major version.

  • try_on_fashion(mode=..., moderation_level=...) now emits a DeprecationWarning (hidden by default outside development and tests); the docstring says so.
  • CHANGELOG: new Unreleased → Deprecated entry; the 2.1.0 entry is dated and its compare link points at the v2.1.0 tag.

No behaviour change for requests.

🤖 Generated with Claude Code

The API ignores `mode` and validates `moderation_level` without applying it
(the AI providers' own safety filters always apply). Both stay accepted and
are marked deprecated for removal in the next major version. Passing either now emits a DeprecationWarning.

Also dates the 2.1.0 changelog entry and points its compare link at the v2.1.0 tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xBitBuster
0xBitBuster merged commit c5fe25f into main Nov 26, 2026
12 checks passed
@0xBitBuster
0xBitBuster deleted the fix/live-cleanup-deprecations branch November 26, 2026 16:16
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.

1 participant