Skip to content

Commit 6bccdcd

Browse files
Merge pull request #14620 from BerriAI/litellm_dev_09_16_2025_p2
(feat) Anthropic - document pricing for cache creation tokens above 1hr
2 parents cd53f25 + 22d3e49 commit 6bccdcd

File tree

7 files changed

+34746
-34109
lines changed

7 files changed

+34746
-34109
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@ test.py
9595
litellm_config.yaml
9696
.cursor
9797
.vscode/launch.json
98-
litellm/proxy/to_delete_loadtest_work/*
98+
litellm/proxy/to_delete_loadtest_work/*
99+
update_model_cost_map.py

litellm/llms/anthropic/chat/transformation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@ def _map_tool_helper(
200200
)
201201

202202
_allowed_properties = set(AnthropicInputSchema.__annotations__.keys())
203-
input_schema_filtered = {k: v for k, v in _input_schema.items() if k in _allowed_properties}
204-
input_anthropic_schema: AnthropicInputSchema = AnthropicInputSchema(**input_schema_filtered)
203+
input_schema_filtered = {
204+
k: v for k, v in _input_schema.items() if k in _allowed_properties
205+
}
206+
input_anthropic_schema: AnthropicInputSchema = AnthropicInputSchema(
207+
**input_schema_filtered
208+
)
205209

206210
_tool = AnthropicMessagesTool(
207211
name=tool["function"]["name"],

0 commit comments

Comments
 (0)