diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 64eceae3297..abcf1ab22e5 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -1113,6 +1113,36 @@ "supports_vision": true, "tool_use_system_prompt_tokens": 346 }, + "au.anthropic.claude-opus-4-6-v1:0": { + "cache_creation_input_token_cost": 6.875e-06, + "cache_creation_input_token_cost_above_200k_tokens": 1.375e-05, + "cache_read_input_token_cost": 5.5e-07, + "cache_read_input_token_cost_above_200k_tokens": 1.1e-06, + "input_cost_per_token": 5.5e-06, + "input_cost_per_token_above_200k_tokens": 1.1e-05, + "litellm_provider": "bedrock_converse", + "max_input_tokens": 200000, + "max_output_tokens": 128000, + "max_tokens": 128000, + "mode": "chat", + "output_cost_per_token": 2.75e-05, + "output_cost_per_token_above_200k_tokens": 4.125e-05, + "search_context_cost_per_query": { + "search_context_size_high": 0.01, + "search_context_size_low": 0.01, + "search_context_size_medium": 0.01 + }, + "supports_assistant_prefill": false, + "supports_computer_use": true, + "supports_function_calling": true, + "supports_pdf_input": true, + "supports_prompt_caching": true, + "supports_reasoning": true, + "supports_response_schema": true, + "supports_tool_choice": true, + "supports_vision": true, + "tool_use_system_prompt_tokens": 346 + }, "anthropic.claude-sonnet-4-20250514-v1:0": { "cache_creation_input_token_cost": 3.75e-06, "cache_read_input_token_cost": 3e-07, diff --git a/ui/litellm-dashboard/src/components/guardrails/custom_code/CustomCodeModal.tsx b/ui/litellm-dashboard/src/components/guardrails/custom_code/CustomCodeModal.tsx index 866d24df50b..578c8189d61 100644 --- a/ui/litellm-dashboard/src/components/guardrails/custom_code/CustomCodeModal.tsx +++ b/ui/litellm-dashboard/src/components/guardrails/custom_code/CustomCodeModal.tsx @@ -233,6 +233,45 @@ const CustomCodeModal: React.FC = ({ structured_messages: [], model: "gpt-4" } + }, + pre_mcp_call: { + name: "Pre MCP (MCP tool as OpenAI tool)", + data: { + texts: [ + "Tool: read_wiki_structure\nArguments: {\"repoName\": \"BerriAI/litellm\"}" + ], + images: [], + tools: [ + { + type: "function", + function: { + name: "read_wiki_structure", + description: "Read the structure of a GitHub repository (MCP tool passed as OpenAI tool)", + parameters: { + type: "object", + properties: { + repoName: { type: "string", description: "Repository name, e.g. BerriAI/litellm" } + }, + required: ["repoName"] + } + } + } + ], + tool_calls: [ + { + id: "call_mcp_001", + type: "function", + function: { + name: "read_wiki_structure", + arguments: "{\"repoName\": \"BerriAI/litellm\"}" + } + } + ], + structured_messages: [ + { role: "user", content: "Tool: read_wiki_structure\nArguments: {\"repoName\": \"BerriAI/litellm\"}" } + ], + model: "mcp-tool-call" + } } }; @@ -597,6 +636,13 @@ const CustomCodeModal: React.FC = ({ > Pre-call +