Files
OmniRoute/tests
diegosouzapw 844a817729 fix(sse): accept assistant refusal content parts in chatgpt-session
A `{ type: "refusal", refusal: "…" }` part is legal inside an assistant
message in the chat-completions spec, so a client replaying its own
conversation history sends it back. The unsupported-part guard rejected it
with a 400 and failed the whole request.

Fold a refusal part into the flattened content the way a text part is folded,
reading its `refusal` field. A refusal part whose payload is missing or is not
a string still falls through to the existing rejection — it is never dropped
in silence — and every other unrecognised part keeps throwing as before.
2026-09-02 15:10:53 -03:00
..
2026-08-26 14:25:01 -03:00