Repository navigation
Commit 7c69d96
committed
fix(proxy): scope per-chunk streaming hook skip to streamable post_call pipelines
The per-chunk async_post_call_streaming_hook was filtering pipeline-managed
guardrails against the full post_call step set, so a guardrail whose pipeline
was non-streamable (its step lacks apply_guardrail, e.g. a legacy per-chunk
override) was skipped there and also never run by _pipeline_gated_stream,
which only wraps the streamable subset. That dropped default_on or
policy-added per-chunk hooks from scanning streamed output.
Match async_post_call_streaming_iterator_hook and filter against
_streamable_post_call_pipelines instead, so non-streamable pipeline steps
still run their per-chunk hook on the stream.1 parent cecd481 commit 7c69d96
2 files changed
Lines changed: 48 additions & 5 deletions
File tree
- litellm/proxy
- tests/test_litellm/proxy/utils/proxy_logging
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3272 | 3272 | | |
3273 | 3273 | | |
3274 | 3274 | | |
3275 | | - | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
3276 | 3278 | | |
3277 | 3279 | | |
3278 | 3280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2118 | 2118 | | |
2119 | 2119 | | |
2120 | 2120 | | |
2121 | | - | |
| 2121 | + | |
2122 | 2122 | | |
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | | - | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
2127 | 2130 | | |
2128 | 2131 | | |
2129 | 2132 | | |
2130 | 2133 | | |
2131 | | - | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
2132 | 2140 | | |
2133 | 2141 | | |
2134 | | - | |
| 2142 | + | |
2135 | 2143 | | |
2136 | 2144 | | |
2137 | 2145 | | |
| |||
2147 | 2155 | | |
2148 | 2156 | | |
2149 | 2157 | | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
0 commit comments