feat: add disable_models_service configuration to manage model service availability and update related components

This commit is contained in:
Junyan Qin
2026-01-01 15:40:39 +08:00
parent 75c2a063cc
commit 61f08f3218
15 changed files with 194 additions and 113 deletions
+1
View File
@@ -242,6 +242,7 @@ export interface ApiRespSystemInfo {
cloud_service_url: string;
enable_marketplace: boolean;
allow_modify_login_info: boolean;
disable_models_service: boolean;
}
export interface ApiRespPluginSystemStatus {
+1 -1
View File
@@ -57,7 +57,7 @@ export class BackendClient extends BaseHttpClient {
// ============ Provider API ============
public getProviderRequesters(
model_type: string,
model_type?: string,
): Promise<ApiRespProviderRequesters> {
return this.get('/api/v1/provider/requesters', { type: model_type });
}
+1
View File
@@ -9,6 +9,7 @@ export let systemInfo: ApiRespSystemInfo = {
enable_marketplace: true,
cloud_service_url: '',
allow_modify_login_info: true,
disable_models_service: false,
};
/**