Commit b9080db
authored
feat(model/ark): Refactor callback handling for Responses API (#649)
Moves the callback initialization logic from the generic ChatModel to the specific ResponsesAPIChatModel.
This change ensures that EnsureRunInfo is only called for the Responses API flow, where it is actually needed. The GetType method was also added to ResponsesAPIChatModel to support this.1 parent f658a8b commit b9080db
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
389 | 387 | | |
390 | 388 | | |
391 | 389 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | 390 | | |
396 | 391 | | |
397 | 392 | | |
| |||
406 | 401 | | |
407 | 402 | | |
408 | 403 | | |
409 | | - | |
410 | | - | |
411 | 404 | | |
412 | 405 | | |
413 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
222 | 227 | | |
223 | 228 | | |
| 229 | + | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| |||
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
291 | | - | |
| 298 | + | |
292 | 299 | | |
293 | 300 | | |
294 | 301 | | |
| |||
0 commit comments