litellm/tests/integration/cost_calculation/stream_parity/bases
devin-ai-integration[bot] ff60d27b60
test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730)
* test(integration): streamed request bills the same SpendLogs row as the non-streamed request

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): write the stream parity cells as StreamParityTestCase literals

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): express stream parity cells as CostTrackingTestCase pairs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): stream parity asserts exactly one SpendLogs row per leg after a settle window

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): stream parity forces a spend-log flush with a /v1/responses row instead of a settle sleep

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): stream parity covers messages -> chat and messages -> converse bridges

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): stream parity bridges use xai/grok-4.7 and us.anthropic.claude-opus-5-5

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): use latest frontier models in stream parity cells (gpt-5.6, claude-opus-5-5)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(integration): switch OpenAI parity cells to gpt-6.1-sol and the chat -> responses bridge to gpt-5.5-pro

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: kerry <kerry@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-10 15:22:20 -07:00
..
__init__.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00
anthropic.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00
bedrock.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00
openai.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00
openai_responses.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00
xai.py test(integration): streamed request bills the same SpendLogs row as the non-streamed request (#45730) 2026-10-10 15:22:20 -07:00