Commit 4902f3e
fix(xai): use ImageUrl struct format for image edits (withceleste#129)
xAI API expects {"image": {"url": "..."}} not a raw string.
Supports both URL and data URI (for base64 images).
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0ca70d0 commit 4902f3e
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments