litellm/tests/unit/completion_extras
JingHao-Leon 85097d739d fix(responses bridge): forward url_citation annotations on the Chat Completions stream
The Responses API delivers annotations as
response.output_text.annotation.added events, and the Chat Completions
stream bridge had no branch for them: a streamed reply never carried the
url_citation that the same reply with stream=False reports on
message.annotations (issue #43817).

Emit each annotation on its delta exactly once, in Chat Completions
format. The terminal response.completed payload repeats annotations, so
deliberately not re-emitting them there (or on output_item.done) keeps
accumulating clients from seeing duplicates.
2026-10-03 14:04:51 +08:00
..
litellm_responses_transformation fix(responses bridge): forward url_citation annotations on the Chat Completions stream 2026-10-03 14:04:51 +08:00
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_litellm_responses_transformation_transformation.py test: migrate wave 1 phase 1 legacy tests to tests/unit 2026-09-20 09:17:57 +00:00
test_responses_bridge_provider_propagation.py test: add sync and async custom_llm_provider bridge propagation tests 2026-09-20 13:46:52 +00:00