mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
[Bug Fix] - QA for MCP Gateway - show the cost config on the root of MCP Settings (#12526)
* show cost display * fixes MCP cost display
This commit is contained in:
parent
7ac187b269
commit
4f9793951d
2 changed files with 4 additions and 6 deletions
|
|
@ -15,9 +15,6 @@ const MCPServerCostDisplay: React.FC<MCPServerCostDisplayProps> = ({ costConfig
|
|||
return (
|
||||
<div className="mt-6 pt-6 border-t border-gray-200">
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<Text className="font-medium text-lg">Cost Configuration</Text>
|
||||
</div>
|
||||
<div className="p-4 bg-gray-50 border border-gray-200 rounded-lg">
|
||||
<Text className="text-gray-600">
|
||||
No cost configuration set for this server. Tool calls will be charged at $0.00 per tool call.
|
||||
|
|
@ -31,9 +28,6 @@ const MCPServerCostDisplay: React.FC<MCPServerCostDisplayProps> = ({ costConfig
|
|||
return (
|
||||
<div className="mt-6 pt-6 border-t border-gray-200">
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<Text className="font-medium text-lg">Cost Configuration</Text>
|
||||
</div>
|
||||
|
||||
{hasDefaultCost && costConfig?.default_cost_per_query !== undefined && costConfig?.default_cost_per_query !== null && (
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -211,6 +211,10 @@ export const MCPServerView: React.FC<MCPServerViewProps> = ({
|
|||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Text className="font-medium">Cost Configuration</Text>
|
||||
<MCPServerCostDisplay costConfig={mcpServer.mcp_info?.mcp_server_cost_info} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</Card>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue