mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 01:46:07 +00:00
feat: add disable_models_service configuration to manage model service availability and update related components
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ export let systemInfo: ApiRespSystemInfo = {
|
||||
enable_marketplace: true,
|
||||
cloud_service_url: '',
|
||||
allow_modify_login_info: true,
|
||||
disable_models_service: false,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user