Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Seluj78/celeste-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ddc68e6
Choose a base ref
...
head repository: withceleste/celeste-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4902f3e
Choose a head ref
  • 4 commits
  • 33 files changed
  • 2 contributors

Commits on Jan 29, 2026

  1. Fix Gemini response modalities to include TEXT and IMAGE (withceleste…

    …#125)
    
    * fix(images): use TEXT+IMAGE responseModalities for Gemini models
    
    The Gemini API's documented default is responseModalities: ["TEXT", "IMAGE"].
    The previous hardcoded ["Image"] worked for gemini-2.5-flash-image but
    fails for gemini-3-pro-image-preview (a thinking model that requires
    both modalities).
    
    This aligns with Google's API documentation and ensures compatibility
    with both current and future Gemini image models.
    
    Fixes withceleste#123
    
    https://claude.ai/code/session_01KYduqFZTvWMNMBW9b1nLXF
    
    * chore: bump version to 0.9.4
    
    https://claude.ai/code/session_01KYduqFZTvWMNMBW9b1nLXF
    
    ---------
    
    Co-authored-by: Claude <noreply@anthropic.com>
    Kamilbenkirane and claude authored Jan 29, 2026
    Configuration menu
    Copy the full SHA
    6d7f9d7 View commit details
    Browse the repository at this point in the history
  2. feat: expose extra_body parameter on all modalities (withceleste#126)

    * feat: expose extra_body parameter on all modalities
    
    Add extra_body parameter to all public methods across images, audio,
    videos, and embeddings modalities. This allows users to pass
    provider-specific request fields (e.g., Google's generationConfig,
    imageConfig) without resorting to private methods.
    
    Updated methods:
    - images: generate, edit (stream, sync, sync.stream)
    - audio: speak (stream, sync, sync.stream)
    - videos: generate (sync)
    - embeddings: embed (async, sync)
    
    Also updated the modality client template for future modalities.
    
    Fixes withceleste#124
    
    https://claude.ai/code/session_01KYduqFZTvWMNMBW9b1nLXF
    
    * style: format with ruff
    
    https://claude.ai/code/session_01KYduqFZTvWMNMBW9b1nLXF
    
    ---------
    
    Co-authored-by: Claude <noreply@anthropic.com>
    Kamilbenkirane and claude authored Jan 29, 2026
    Configuration menu
    Copy the full SHA
    4381e8a View commit details
    Browse the repository at this point in the history
  3. feat(xai): add Grok Imagine for image and video generation (withceles…

    …te#128)
    
    * feat(xai): add grok-imagine-image and grok-imagine-video models
    
    Add xAI Grok Imagine support for image and video generation:
    
    Images (grok-imagine-image):
    - Generate and edit operations
    - Parameters: aspect_ratio, num_images, output_format
    - Aspect ratios: 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, and more
    
    Videos (grok-imagine-video):
    - Generate and edit operations
    - Async polling pattern (HTTP 200=ready, 202=processing)
    - Parameters: duration (1-15s), aspect_ratio, resolution
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    * fix(xai): serialize image artifacts and validate video URLs
    
    - Image edit: serialize ImageArtifact to URL or base64 string instead
      of passing object directly (xAI API expects string)
    - Video edit: validate video has URL before using, raise clear error
      if not (xAI only supports URL, not base64/path)
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    * fix(xai): remove client-side video URL validation
    
    Let the xAI API handle validation for video edit requests.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
    Kamilbenkirane and claude authored Jan 29, 2026
    Configuration menu
    Copy the full SHA
    0ca70d0 View commit details
    Browse the repository at this point in the history
  4. 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>
    Kamilbenkirane and claude authored Jan 29, 2026
    Configuration menu
    Copy the full SHA
    4902f3e View commit details
    Browse the repository at this point in the history
Loading