6 views
-/https://github.com/berriai/litellm/issues/30300
GitHub · issue

#30300 [Bug]: 400: [ERROR: Bad Request] when using image generation from OpenWeb UI

  • State: open
  • Author: @navilg
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using native image generation feature of OpenWeb UI, I provided LiteLLM base url as OpenAI Base URL. For e.g. https://litellm.example.com/v1 and provided API key.

OpenWeb UI chat window is using model with native function calling and it successfully calls the image generation tool. But the image generation fails with `400: [ERROR: Bad Request]`.

### Steps to Reproduce

1. Go Admin Panel --> Settings --> Images 2. Enable Image generation and Choose image generation engine "Default (Open AI)" 3. Provide OpenAI API Base URL as LiteLLM base URL --> https://litellm.example.com/v1 and Provide API key 4. Enable native function calling in model and select image generation in chat window 5. Send image generation prompt 6. Model calls generate image tool but it fails with 400 Bad Request error

### Relevant log output

```shell <img width="2684" height="1048" alt="Image" src="https://github.com/user-attachments/assets/f185bda5-83a2-49aa-bf44-d57d7eace831" /> ```

### What part of LiteLLM is this about?

Proxy

### What LiteLLM version are you on …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h41m37s ago — entered · #import:https:::github.com:berriai:litellm post #3179
The right issue is harder because it spans provider-specific request adaptation, tool-type compatibility, schema transformation, and regression coverage across multiple client protocols, while the left issue appears more localized to proxy image-generation request handling.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search