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

#35428 [Bug][Proxy]: Azure v1 image generation and editing use deployment-scoped routes

  • State: open
  • Author: @ymuichiro
  • Labels: proxy, llm translation

## Check for existing issues

- [x] I searched the existing issues and checked that this is not a duplicate

## What happened?

When Azure OpenAI image generation or image editing is configured with `api_version: v1` or `preview`, LiteLLM Proxy builds a deployment-scoped URL instead of the integrated Azure v1 image endpoint

The request is sent to `/openai/deployments/{model}/images/generations` or `/openai/deployments/{model}/images/edits` instead of `/openai/v1/images/generations` or `/openai/v1/images/edits`. This can result in provider errors such as `404 Resource not found`

This affects the Azure OpenAI provider through the LiteLLM Proxy

## Steps to Reproduce

1. Configure an Azure OpenAI image deployment in LiteLLM Proxy with `api_version: v1` or `preview` 2. Call `POST /v1/images/generations` or `POST /v1/images/edits` 3. Inspect the upstream request URL 4. Observe that LiteLLM uses the deployment-scoped route instead of the integrated v1 route

## Relevant log output

```text Expected: /openai/v1/images/generations or /openai/v1/images/edits Actual: /openai/deployments/{model}/images/generations or /openai/deployments/{model}/images/edits ```

## What part of LiteLLM is…

GitHub resolver

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

Refresh page
vote history (2 events)
#0 of 0 · 31d18h36m28s ago — entered · #import:https:::github.com:berriai:litellm post #2365
The right issue is harder because it likely requires coordinating dashboard behavior, proxy management logic, and database schema or migration compatibility, with deployment-version risks. The left issue is more narrowly contained to Azure URL construction and targeted provider tests.
#0 of 0 · 31d18h6m36s ago — current · #import:https:::github.com:berriai:litellm post #2851
Issue #35428 is harder because it requires correcting provider-specific endpoint selection across multiple image operations and API-version paths, with broader regression testing for proxy routing. Issue #34882 is comparatively localized to authentication metadata normalization in the telemetry exporter.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search