Skip to content

[Bug]: image_edit() function returns APIConnectionError with litellm_proxy #13727

@ishaan-jaff

Description

@ishaan-jaff

[Bug]: image_edit() function returns APIConnectionError with litellm_proxy
The image_edit() function in LiteLLM fails with an APIConnectionError when calling through the proxy, even when API key and base URL are provided explicitly.

  1. Use the image_edit() function from LiteLLM.
  2. Set the model to a valid image model ID.
  3. Provide image files, a prompt, and other parameters.
  4. Set api_base to the proxy URL and api_key to the proxy API key.
  5. Call the function and observe the error.

The error message indicates that image editing is not supported when using litellm_proxy. The image_generation function works when API base and key are set explicitly, but image_edit() does not. This suggests a possible limitation or bug with proxy support for image editing in LiteLLM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions