Commit bb3d3b5
Fix Replicate image-to-image compatibility with different model schemas (#3749)
Pass the input image in multiple payload keys (image, images, input_image,
input_images) to support different Replicate models that expect the image
in different keys.
Similar to: huggingface/huggingface.js#1938
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent ebb9ceb commit bb3d3b5
File tree
2 files changed
+24
-3
lines changed- src/huggingface_hub/inference/_providers
- tests
2 files changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | | - | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1655 | 1661 | | |
1656 | 1662 | | |
1657 | 1663 | | |
| |||
1666 | 1672 | | |
1667 | 1673 | | |
1668 | 1674 | | |
1669 | | - | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1670 | 1682 | | |
1671 | 1683 | | |
1672 | 1684 | | |
| |||
0 commit comments