Skip to content

docs: drop face_mappings from all-faces face swap generate examples - #175

Merged
davidhu2000 merged 1 commit into
mainfrom
docs/face-swap-all-faces-example
Sep 24, 2026
Merged

davidhu2000 merged 1 commit into
mainfrom
docs/face-swap-all-faces-example

Conversation

@davidhu2000

Copy link
Copy Markdown
Contributor

The generate examples for face swap photo and face swap video set face_swap_mode: "all-faces" but also pass face_mappings. face_mappings is only used in individual-faces mode, so here it's noise and makes it look required. This PR removes it from the sync and async examples in the custom docs block.

These examples feed the code samples on magichour.ai/api through web-app's sync script. The generated .create examples and params table come from the OpenAPI spec, which magichourhq/web-app#16040 fixes. They update on the next SDK regeneration.

Checked each snippet with mypy --strict against the package types.

🤖 Generated with Claude Code

face_mappings only applies to individual-faces mode.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@davidhu2000
davidhu2000 merged commit e5227e9 into main Sep 24, 2026
6 checks passed
@davidhu2000
davidhu2000 deleted the docs/face-swap-all-faces-example branch September 24, 2026 04:08
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