mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 19:22:32 +03:00
Two empirically reproduced bugs in convertContent: - Empty text parts (thoughtSignature text with "", or an empty regular text) were emitted as empty content blocks, which Anthropic rejects with a 400. Empty strings are now skipped. - When a content mixed functionResponse with functionCall / text / reasoning, only the tool-result messages survived and the accompanying assistant message (tool calls + text) was silently dropped. Both are now emitted. Co-authored-by: Sutarto Jordan Chrisfivo <Jordannst@users.noreply.github.com> Inspired-by: https://github.com/decolua/9router/pull/2296