mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
feat(ui): show latency overhead badge in AI policy suggestions
This commit is contained in:
parent
39d24bf262
commit
862e6937d2
1 changed files with 11 additions and 0 deletions
|
|
@ -331,6 +331,17 @@ const AiSuggestionModal: React.FC<AiSuggestionModalProps> = ({
|
|||
{template.complexity}
|
||||
</span>
|
||||
)}
|
||||
{template.estimated_latency_ms != null && (
|
||||
<Tooltip title="Estimated latency overhead added to each request">
|
||||
<span className={`px-2 py-0.5 rounded-full text-[10px] font-medium border ${
|
||||
template.estimated_latency_ms <= 1
|
||||
? "bg-green-50 text-green-600 border-green-200"
|
||||
: "bg-amber-50 text-amber-600 border-amber-200"
|
||||
}`}>
|
||||
+{template.estimated_latency_ms <= 1 ? "<1" : template.estimated_latency_ms}ms latency
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
<p className="text-xs text-gray-500 leading-relaxed">
|
||||
{template.description}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue