hermes-agent/plugins/image_gen/xai
Ayman Kamal 13b474c56e fix: send correct resolution param to xAI image generation API
The xAI /v1/images/generations endpoint expects resolution as a
literal string ('1k' or '2k'), not the numeric value ('1024').

- Change _XAI_RESOLUTIONS from a dict mapping to a validation set
- Use the resolution key directly instead of the mapped value
- Fall back to DEFAULT_RESOLUTION on invalid config values

Fixes 422 Unprocessable Entity errors when resolution was sent.
2026-05-09 13:07:46 -07:00
..
__init__.py fix: send correct resolution param to xAI image generation API 2026-05-09 13:07:46 -07:00
plugin.yaml fix(xai-image): drop unreachable editing code path 2026-04-23 15:13:34 -07:00