fix(xai-image): drop unreachable editing code path

The agent-facing image_generate tool only passes prompt + aspect_ratio to
provider.generate() (see tools/image_generation_tool.py:953). The editing
block (reference_images / edit_image kwargs) could never fire from the
tool surface, and the xAI edits endpoint is /images/edits with a
different payload shape anyway — not /images/generations as submitted.

- Remove reference_images / edit_image kwargs handling from generate()
- Remove matching test_with_reference_images case
- Update docstring + plugin.yaml description to text-to-image only
- Surface resolution in the success extras

Follow-up to PR #14547. Tests: 18/18 pass.
This commit is contained in:
teknium1 2026-04-23 15:12:05 -07:00 committed by Teknium
parent a5e4a86ebe
commit 9599271180
3 changed files with 6 additions and 41 deletions

View file

@ -1,6 +1,6 @@
name: xai
version: 1.0.0
description: "xAI image generation backend (grok-imagine-image). Supports text-to-image and editing."
description: "xAI image generation backend (grok-imagine-image). Text-to-image."
author: Julien Talbot
kind: backend
requires_env: