litellm_fix(tests): fix mapped tests - Azure AI cost calculator and Bedrock#20130
Closed
shin-bot-litellm wants to merge 1 commit intoBerriAI:mainfrom
Closed
litellm_fix(tests): fix mapped tests - Azure AI cost calculator and Bedrock#20130shin-bot-litellm wants to merge 1 commit intoBerriAI:mainfrom
shin-bot-litellm wants to merge 1 commit intoBerriAI:mainfrom
Conversation
…edrock - Fix Azure AI cost calculator test: use Logging class instead of non-existent LitellmLoggingObject - Fix Bedrock test: use Claude 3.5 Sonnet instead of Sonnet 4.5 (which now supports tool search)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Contributor
Author
|
Split into separate PRs:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes failing mapped tests.
1. Azure AI Cost Calculator Test
Test:
test_additional_costs_in_cost_breakdownStatus: New test with bug (not a regression)
Introduced in: PR #20091 (
5345a76) - "[Feat] v2 - Logs view with side panel"Issue: Test imports non-existent
LitellmLoggingObjectclassFix: Use
Loggingclass with required parameters2. Bedrock Tool Search Header Test
Test:⚠️ LLM translation test - higher risk area
test_advanced_tool_use_header_filtered_for_non_opus_4_5Status: REGRESSION
Breaking commit:
7d5439a- PR #19871 "fix(bedrock): support tool search header translation for Sonnet 4.5"Date: 2026-01-27
Why it broke: Test assumed only Opus 4.5 supports tool-search on Bedrock. PR #19871 added Sonnet 4.5 support, invalidating the test assumption.
Risk:
Fix: Change test model from Sonnet 4.5 to Claude 3.5 Sonnet (which genuinely does NOT support tool-search)
Changes
Azure AI Cost Calculator Test
Loggingclass instead of non-existentLitellmLoggingObjectBedrock Test
anthropic.claude-sonnet-4-5-20250929-v1:0toanthropic.claude-3-5-sonnet-20241022-v2:0Testing