Skip to content

Commit 906c539

Browse files
authored
Merge pull request #5531 from menloresearch/config/remove-mcp-production-gate
config: remove MCP and tool use production gate
2 parents ea662c4 + 63761ef commit 906c539

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

web-app/src/containers/DropdownModelProvider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { ModelSetting } from '@/containers/ModelSetting'
1616
import ProvidersAvatar from '@/containers/ProvidersAvatar'
1717
import { Fzf } from 'fzf'
1818
import { localStorageKey } from '@/constants/localStorage'
19-
import { isProd } from '@/lib/version'
2019

2120
type 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>

web-app/src/routes/settings/providers/$providerName.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import { toast } from 'sonner'
3939
import { ActiveModel } from '@/types/models'
4040
import { useEffect, useState } from 'react'
4141
import { predefinedProviders } from '@/mock/data'
42-
import { isProd } from '@/lib/version'
4342

4443
// as route.threadsDetail
4544
export 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}

0 commit comments

Comments
 (0)