File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
routes/settings/providers Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import { ModelSetting } from '@/containers/ModelSetting'
1616import ProvidersAvatar from '@/containers/ProvidersAvatar'
1717import { Fzf } from 'fzf'
1818import { localStorageKey } from '@/constants/localStorage'
19- import { isProd } from '@/lib/version'
2019
2120type DropdownModelProviderProps = {
2221 model ?: ThreadModel
@@ -396,7 +395,7 @@ const DropdownModelProvider = ({
396395 </ span >
397396
398397 < div className = "flex-1" > </ div >
399- { ! isProd && capabilities . length > 0 && (
398+ { capabilities . length > 0 && (
400399 < div className = "flex-shrink-0 -mr-1.5" >
401400 < Capabilities capabilities = { capabilities } />
402401 </ div >
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import { toast } from 'sonner'
3939import { ActiveModel } from '@/types/models'
4040import { useEffect , useState } from 'react'
4141import { predefinedProviders } from '@/mock/data'
42- import { isProd } from '@/lib/version'
4342
4443// as route.threadsDetail
4544export const Route = createFileRoute ( '/settings/providers/$providerName' ) ( {
@@ -455,19 +454,15 @@ function ProviderDetail() {
455454 title = {
456455 < div className = "flex items-center gap-2" >
457456 < h1 className = "font-medium" > { model . id } </ h1 >
458- { ! isProd && (
459- < Capabilities capabilities = { capabilities } />
460- ) }
457+ < Capabilities capabilities = { capabilities } />
461458 </ div >
462459 }
463460 actions = {
464461 < div className = "flex items-center gap-1" >
465- { ! isProd && (
466- < DialogEditModel
467- provider = { provider }
468- modelId = { model . id }
469- />
470- ) }
462+ < DialogEditModel
463+ provider = { provider }
464+ modelId = { model . id }
465+ />
471466 { model . settings && (
472467 < ModelSetting
473468 provider = { provider }
You can’t perform that action at this time.
0 commit comments