feat: enhance quota panel to support additional model providers and integrate trial models feature

This commit is contained in:
CodingOnStar
2026-01-21 15:48:46 +08:00
parent d4f5a113ed
commit e0fb167db3
2 changed files with 35 additions and 23 deletions

View File

@ -1,3 +1,5 @@
import type { ModelProviderQuotaGetPaid } from '@/app/components/header/account-setting/model-provider-page/utils'
export enum SSOProtocol {
SAML = 'saml',
OIDC = 'oidc',
@ -26,6 +28,7 @@ type License = {
}
export type SystemFeatures = {
trial_models: ModelProviderQuotaGetPaid[]
plugin_installation_permission: {
plugin_installation_scope: InstallationScope
restrict_to_marketplace_only: boolean
@ -62,6 +65,7 @@ export type SystemFeatures = {
}
export const defaultSystemFeatures: SystemFeatures = {
trial_models: [],
plugin_installation_permission: {
plugin_installation_scope: InstallationScope.ALL,
restrict_to_marketplace_only: false,