Skip to content

Commit

Permalink
Refactor model name replacement logic in DashboardGrid.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed May 2, 2024
1 parent dedf3c5 commit b1b5654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/ui/src/components/Dashboard/DashboardGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const DashboardGrid = () => {
<div className="w-full">
<div className="flex items-end justify-between">
<span className="text-xs lowercase text-scale-1000 text-gray-600 dark:text-gray-400">
{bot.model.replace("-dbase", "")}
{bot.model
.replace("-dbase", "")
.replace(/_dialoqbase_[0-9]+$/, "")}
</span>
</div>
</div>
Expand Down

0 comments on commit b1b5654

Please sign in to comment.