litellm/tests/unit/llms/anthropic/pass_through
nate-berri 3981228d70
refactor(anthropic): move raw SSE stream assembly helpers out of proxy guardrails (#45749)
* refactor(anthropic): move passthrough SSE stream assembly into litellm/llms

Part of LIT-9423

* refactor(anthropic): move raw SSE stream assembly helpers out of proxy guardrails

Part of LIT-9423

* refactor(anthropic): give the anthropic_sse re-exports reasoned noqa codes

Part of LIT-9423

* fix(sdk): resolve litellm.proxy lazily on attribute access

The layer cleanup stopped import litellm from loading any proxy module, so litellm.proxy was no longer bound and litellm.proxy._types.X raised AttributeError. The module __getattr__ now imports litellm.proxy on first access, which keeps import litellm free of proxy._types and fixes the docs and code-quality checks on main

* test(anthropic): cover the raw SSE helpers in stream_assembly

Part of LIT-9423
2026-10-10 20:35:49 +00:00
..
adapters fix(websearch_interception): drop stream_options when forcing stream=False and replay it on the final stream (#45433) 2026-10-09 22:16:02 -07:00
context_management feat(proxy): per-model team member budgets with router fallback (#43887) 2026-10-10 20:33:55 +00:00
messages test: move 81 legacy live tests in pass-through, spend, batches, audio, search, guardrails, image and ocr dirs offline (#45288) 2026-10-08 02:38:12 -07:00
responses_adapters fix(websearch_interception): drop stream_options when forcing stream=False and replay it on the final stream (#45433) 2026-10-09 22:16:02 -07:00
__init__.py refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
test_anthropic_native_passthrough_spend_logging.py test: move 81 legacy live tests in pass-through, spend, batches, audio, search, guardrails, image and ocr dirs offline (#45288) 2026-10-08 02:38:12 -07:00
test_reasoning_effort_fields.py refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
test_stream_assembly.py refactor(anthropic): move raw SSE stream assembly helpers out of proxy guardrails (#45749) 2026-10-10 20:35:49 +00:00