发布

  • feat(api, xai): integrate xAI Grok image models and extend API endpoints for image support

    frostbyte_neo 发布于 2026-05-16 17:30:23 +00:00

    • Added new xAI Grok image models (grok-imagine-image, grok-imagine-image-quality) with high-fidelity and aspect ratio configurations.
    • Extended isSupportedImagesModel logic to validate xAI models.
    • Implemented API request builders for image generation/editing with customizable options (e.g., resolution, aspect ratio, response format).
    • Enhanced /v1/images endpoints to handle xAI model capabilities, including response normalization and model-specific handlers.
    • Updated unit tests to validate xAI model validation, request structure, and API integration.
    下载附件