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

#27186 [Bug]: Response.incomplete is unhandled in responses->chat streaming transform and drops content_filters

  • State: open
  • Author: @ppavicic
  • Labels: bug, llm translation

### Check for existing issues

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

### What happened?

## Bug description

When using a Responses API compatible provider in streaming mode (Azure OpenAI), LiteLLM does not handle the `response.incomplete` event in: `litellm/completion_extras/litellm_responses_transformation/transformation.py`

Instead it falls through to: ```python verbose_logger.debug( f"Chat provider: Unhandled event type '{event_type}', creating empty chunk" ) ```

This causes terminal metadata like `response.content_filters` to be dropped before downstream callbacks / guardrails (e.g. `async_post_call_streaming_iterator_hook()` in CustomLogger) can inspect it.

Expected behavior: - `response.incomplete` should be explicitly handled - `content_filters` / `incomplete_details` should be forwarded on the streamed `ModelResponseStream`, ideally via `provider_specific_fields`

## Relevant code path

Current unhandled-event fallback is in:

`litellm/completion_extras/litellm_responses_transformation/transformation.py`

The transform in this version handles events: - `response.created` - `response.output_item.added` - `response.fu…

GitHub resolver

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

Refresh page
vote history (3 events)
#0 of 0 · 31d18h58m47s ago — entered · #import:https:::github.com:berriai:litellm post #1888
The right issue is substantially harder because it requires a cross-cutting gateway architecture, decision policies, configuration, provider capability and failure handling, observability, and broad integration testing. The left issue is comparatively localized to one streaming transformation path with focused regression coverage.
The right issue is harder because it spans streaming event transformation, terminal metadata propagation, callback compatibility, and regression testing across provider-specific response behavior. The left issue appears more localized to response serialization and endpoint output modeling.
#0 of 0 · 31d18h14m41s ago — current · #import:https:::github.com:berriai:litellm post #2607
Issue 33431 is substantially harder because it spans identifier lifecycle design, permission-data migration or backward compatibility, authorization behavior, and dashboard consistency, with significant regression risk. Issue 27186 is comparatively localized to extending one streaming transformation path and adding focused coverage.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search