litellm/tests
mateo-berri 53db7f41f0
Some checks are pending
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
LiteLLM Rust / rust-wheel (push) Waiting to run
fix(proxy): bill a /v1/completions stream a guardrail refusal ends mid-stream
A /v1/completions stream under a post_call guardrail was never armed for
deferred stream logging, so a refusal that cut it mid-stream wrote a failure
row with zero completion tokens and zero spend. Arm the atext_completion route
like anthropic_messages and aresponses so the streamed usage is recovered on
the failure row and a clean stream still logs one success row at its end.
2026-12-03 22:22:06 -08:00
..
_support
base_sdk_tests fix(sdk): backport #45961 to lts/1.108.x 2026-11-07 17:55:52 -08:00
benchmarks test(benchmarks): benchmark Presidio's first-frame wait over many leading reads and a frame split into many reads 2026-11-25 02:16:49 -08:00
code_coverage_tests Merge pull request #55777 from BerriAI/litellm_bedrock_converse_keep_null_schema_values_lts_1_108_x_devin 2026-12-02 19:02:07 +00:00
documentation_tests fix(responses): bill a client-cancelled native Responses stream with the usage the provider reports 2026-11-26 22:49:07 +00:00
e2e test(e2e): move Anthropic computer tool and tool search tests off retired claude-sonnet-4-5 (#55409) 2026-12-01 15:56:01 -08:00
e2e_harness test(e2e): move the Claude Code matrix to Opus, Sonnet and Haiku 5.5, Fable 5.2 and GPT-6 (#54305) 2026-12-01 15:56:01 -08:00
fixtures
harness_e2e
integration Merge pull request #55824 from BerriAI/litellm_codex_heartbeat_orphan_tool_output_lts_1_108_x 2026-12-02 16:33:22 -08:00
rust-python-harness
test_litellm_rust Merge remote-tracking branch 'origin/lts/1.108.x' into litellm_keep_tool_use_ids_non_anthropic_base_lts 2026-11-25 19:52:27 -08:00
typing
unit fix(proxy): bill a /v1/completions stream a guardrail refusal ends mid-stream 2026-12-03 22:22:06 -08:00
windows_tests
__init__.py
_fake_openai_endpoint_server.py
_flush_vcr_cache.py
_live_test_helpers.py
_master_key.py
_openai_record_replay_proxy.py
_process_helpers.py
_vcr_conftest_common.py
_vcr_redis_persister.py
_wait_helpers.py
_ws_vcr.py
AGENTS.md
capturing_transport.py
eval_swe_bench.py
fake_openai_endpoint.py
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
pyrightconfig.json
README.MD
test_logging.conf
test_rust_python_harness.py
VCR_TESTING.md
white_100x100.png

In total litellm runs 1000+ tests

[02/20/2025] Update:

To make it easier to contribute and map what behavior is tested,

we've started mapping the litellm directory in tests/unit

This folder can only run mock tests.