mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
A stream that opened reporting a 100-token cache read and whose final message_delta reported zero was read as an authoritative miss, because the closing counters replaced the opening ones without being compared. The same went for a zero that turned positive and for a changed write. The closing delta is now checked against message_start as well as earlier deltas. A delta that leaves the cache counters out still keeps the opening values. The single-breakpoint proof rule has no caller in observation, so it moves to the detector change that uses it. The diagnostic line now also names the prefix by the start of its keyed fingerprint and gives its TTL and the reported read and write counters, so observation mode shows what the provider did without keeping anything. The wrapper reads its untyped completion stream through the same cast the file already uses. New tests cover a terminal-frame read that times out or fails, and a drain while a split event is still being joined. |
||
|---|---|---|
| .. | ||
| batches | ||
| chat | ||
| files | ||
| messages | ||
| pass_through | ||
| __init__.py | ||
| anthropic_docs_refusal.py | ||
| test_anthropic_common_utils.py | ||
| test_anthropic_count_tokens_transformation.py | ||
| test_anthropic_files_and_batches.py | ||
| test_anthropic_output_format_filter.py | ||
| test_anthropic_prompt_cache_prediction.py | ||
| test_anthropic_prompt_cache_pricing.py | ||
| test_anthropic_reasoning_effort.py | ||
| test_anthropic_schema_filter.py | ||
| test_anthropic_structured_output.py | ||
| test_anthropic_wif.py | ||
| test_azure_ai_cache_pricing.py | ||
| test_cost_calculation_dict_safety.py | ||
| test_count_tokens_oauth.py | ||
| test_message_sanitization.py | ||
| test_messages_http_error_retry_cases.py | ||