File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
apps/sim/app/(landing)/models/components Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1+ export const PROVIDER_COLORS : Record < string , string > = {
2+ anthropic : '#D97757' ,
3+ openai : '#E8E8E8' ,
4+ google : '#4285F4' ,
5+ xai : '#555555' ,
6+ mistral : '#F7D046' ,
7+ groq : '#F55036' ,
8+ cerebras : '#6D5BF7' ,
9+ deepseek : '#4D6BFE' ,
10+ fireworks : '#FF6D3A' ,
11+ bedrock : '#FF9900' ,
12+ }
13+
14+ const DEFAULT_COLOR = '#888888'
15+
16+ export function getProviderColor ( providerId : string ) : string {
17+ return PROVIDER_COLORS [ providerId ] ?? DEFAULT_COLOR
18+ }
Original file line number Diff line number Diff line change 33import type { ComponentType } from 'react'
44import { useMemo } from 'react'
55import Link from 'next/link'
6- import { getProviderColor } from '@/app/(landing)/models/components/model-colors '
6+ import { getProviderColor } from '@/app/(landing)/models/components/consts '
77import type { CatalogModel } from '@/app/(landing)/models/utils'
88import {
99 formatPrice ,
Original file line number Diff line number Diff line change 22
33import { useMemo } from 'react'
44import Link from 'next/link'
5- import { getProviderColor } from '@/app/(landing)/models/components/model-colors '
5+ import { getProviderColor } from '@/app/(landing)/models/components/consts '
66import type { CatalogModel } from '@/app/(landing)/models/utils'
77
88function formatShortDate ( date : string ) : string {
You can’t perform that action at this time.
0 commit comments