Commit c5b83af
committed
fix: address review — TTFT metric, chunk interface, nil checks
- Move TTFT metric recording after if/else so it applies to both
buffered and streaming paths (comment 3+4)
- Change ResponseChunkProcessor interface: takes string (framework
converts once) + InferenceResponse (for header mutation) (comment 5)
- Add nil profile check and empty processor check in HandleResponseChunk
for bodiless requests like GET /v1/models (comment 6)
- Extract runResponseChunkProcessors and buildStreamedChunkResponse
following the same patterns as the body processing path
Signed-off-by: Noy Itzikowitz <nitzikow@redhat.com>1 parent 541110e commit c5b83af
3 files changed
Lines changed: 38 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
137 | 156 | | |
138 | 157 | | |
139 | 158 | | |
140 | | - | |
| 159 | + | |
141 | 160 | | |
142 | 161 | | |
143 | 162 | | |
144 | | - | |
145 | 163 | | |
146 | | - | |
| 164 | + | |
147 | 165 | | |
148 | 166 | | |
149 | | - | |
150 | | - | |
| 167 | + | |
151 | 168 | | |
152 | 169 | | |
| 170 | + | |
| 171 | + | |
153 | 172 | | |
| 173 | + | |
| 174 | + | |
154 | 175 | | |
155 | 176 | | |
156 | 177 | | |
| |||
179 | 200 | | |
180 | 201 | | |
181 | 202 | | |
182 | | - | |
| 203 | + | |
183 | 204 | | |
184 | 205 | | |
185 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 188 | | |
195 | 189 | | |
196 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments