Files
CLIProxyAPI/internal/runtime/executor
sususu98 13e0642096 fix(translator): group and align split Gemini functionResponse turns
Merge parallel functionResponse parts split across consecutive user/function
contents into a single user turn aligned with the preceding model turn's
functionCall order before thought-signature sanitization, name backfill, and
pairing validation.

- Align fast-path detection with slow-path rewrites across split responses,
  out-of-order responses (including mixed ID/non-ID and duplicate-ID slots
  preferring exact (id, name) matches), intervening non-response contents,
  mixed parts, and invalid boundaries (non-object, empty/non-array parts, or
  functionCall-bearing non-model contents).
- Normalize whitespace-only response names and support snake_case
  function_call/function_response parts in both grouping and empty-name
  backfill (including legacy non-array parts), using *ojson.Doc for writes.
- Preserve incomplete, excess (same-turn and separate-turn), interleaved
  non-model functionCall, and empty-content boundary histories rather than
  dropping or bypassing them so ValidateGeminiFunctionCallPairing still
  reports genuine history mismatches accurately.
- Add unit and top-level Gemini reasoning replay regression tests.
2026-11-27 09:29:44 +08:00
..