Skip to content

Commit 88e823b

Browse files
committed
fix: built in models capabilities
1 parent f5971b9 commit 88e823b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web-app/src/services/providers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { modelSettings } from '@/lib/predefined'
1414
import { fetchModels } from './models'
1515
import { ExtensionManager } from '@/lib/extension'
16+
import { isProd } from '@/lib/version'
1617

1718
export const getProviders = async (): Promise<ModelProvider[]> => {
1819
const engines = !localStorage.getItem('migration_completed')
@@ -65,7 +66,7 @@ export const getProviders = async (): Promise<ModelProvider[]> => {
6566
].filter(Boolean) as string[]
6667
return {
6768
...(modelManifest ?? { id: model, name: model }),
68-
capabilities,
69+
...(!isProd ? { capabilities } : {}),
6970
} as Model
7071
})
7172
}

0 commit comments

Comments
 (0)