Skip to content

Improve image generation with multi-image editing, options, and usage#80

Merged
kzu merged 1 commit intomainfrom
dev/imagine-usage
Mar 4, 2026
Merged

Improve image generation with multi-image editing, options, and usage#80
kzu merged 1 commit intomainfrom
dev/imagine-usage

Conversation

@kzu
Copy link
Member

@kzu kzu commented Mar 4, 2026

  • Add GrokImageGenerationOptions subclass with AspectRatio and Resolution properties for strongly-typed control over grok-imagine model features
  • Fix GrokImageGenerator to use singular Image field for 1 reference image and the repeated Images field for 2+ reference images (multi-image editing)
  • Map ImageResponse.Usage to ImageGenerationResponse.Usage via UsageDetails
  • Add unit and integration tests for all three improvements

@kzu kzu added the enhancement New feature or request label Mar 4, 2026
@kzu kzu enabled auto-merge (rebase) March 4, 2026 19:03
@kzu
Copy link
Member Author

kzu commented Mar 4, 2026

28 passed 28 passed 25 skipped

🧪 Details on Ubuntu 24.04.3 LTS

from retest v1.1.0 on .NET 10.0.3 with 💜 by @devlooped

- Add GrokImageGenerationOptions subclass with AspectRatio and Resolution
  properties for strongly-typed control over grok-imagine model features
- Fix GrokImageGenerator to use singular Image field for 1 reference image
  and the repeated Images field for 2+ reference images (multi-image editing)
- Map ImageResponse.Usage to ImageGenerationResponse.Usage via UsageDetails
- Add unit and integration tests for all three improvements
@kzu kzu force-pushed the dev/imagine-usage branch from df352d0 to a17d0e4 Compare March 4, 2026 19:54
@kzu kzu merged commit 1a99a4f into main Mar 4, 2026
4 checks passed
@kzu kzu deleted the dev/imagine-usage branch March 4, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant