Commit f694823
fix: also normalize tool call IDs in async_transform_request, hoist regex to module level
Addresses review feedback on #22318:
- `async_transform_request` base-class path was missing the
`_normalize_tool_call_ids()` call, leaving async callers exposed to
the same 400 BadRequestError from strict providers (e.g. Mistral)
- Hoist `_VALID_TOOL_CALL_ID_RE` to module level to avoid recompiling
the regex on every request
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 906c6b8 commit f694823
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
460 | 464 | | |
461 | 465 | | |
462 | 466 | | |
| 467 | + | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| |||
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
507 | | - | |
508 | | - | |
509 | 512 | | |
510 | 513 | | |
511 | 514 | | |
| |||
523 | 526 | | |
524 | 527 | | |
525 | 528 | | |
526 | | - | |
| 529 | + | |
527 | 530 | | |
528 | 531 | | |
529 | 532 | | |
| |||
0 commit comments