Skip to content

Support MiniMax image-to-image references - #6557

Open
octo-patch wants to merge 1 commit into
1Panel-dev:v2from
octo-patch:octo/20260731-image-to-image-tool-recvqKYgzzYtnO
Open

Support MiniMax image-to-image references#6557
octo-patch wants to merge 1 commit into
1Panel-dev:v2from
octo-patch:octo/20260731-image-to-image-tool-recvqKYgzzYtnO

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Reason: MiniMax image generation did not expose the subject reference input required for image-to-image requests.

Summary

  • Add an optional subject reference image field to the MiniMax image model settings.
  • Normalize image URLs or data URLs into the documented subject_reference payload while preserving structured references.
  • Keep text-to-image payloads unchanged when no reference is configured.
  • Add focused unit coverage for configured and direct reference inputs.

Checks

  • python3 -m unittest tests/models_provider/test_minimax_tti.py -v
  • python3 -m py_compile apps/models_provider/impl/minimax_model_provider/model/tti.py apps/models_provider/impl/minimax_model_provider/credential/tti.py tests/models_provider/test_minimax_tti.py
  • uvx --from 'ruff==0.15.12' ruff check apps/models_provider/impl/minimax_model_provider/model/tti.py apps/models_provider/impl/minimax_model_provider/credential/tti.py tests/models_provider/test_minimax_tti.py
  • git diff --check origin/v2...HEAD

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