mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-15 06:58:10 +01:00
🗑️ chore: Remove Deprecated Project Model and Associated Fields (#11773)
* chore: remove projects and projectIds usage * chore: empty line linting * chore: remove isCollaborative property across agent models and related tests - Removed the isCollaborative property from agent models, controllers, and tests, as it is deprecated in favor of ACL permissions. - Updated related validation schemas and data provider types to reflect this change. - Ensured all references to isCollaborative were stripped from the codebase to maintain consistency and clarity.
This commit is contained in:
parent
3398f6a17a
commit
37cc5faff5
41 changed files with 94 additions and 821 deletions
|
|
@ -781,7 +781,6 @@ export type TStartupConfig = {
|
|||
sharedLinksEnabled: boolean;
|
||||
publicSharedLinksEnabled: boolean;
|
||||
analyticsGtmId?: string;
|
||||
instanceProjectId: string;
|
||||
bundlerURL?: string;
|
||||
staticBundlerURL?: string;
|
||||
sharePointFilePickerEnabled?: boolean;
|
||||
|
|
@ -1748,8 +1747,6 @@ export enum Constants {
|
|||
SAVED_TAG = 'Saved',
|
||||
/** Max number of Conversation starters for Agents/Assistants */
|
||||
MAX_CONVO_STARTERS = 4,
|
||||
/** Global/instance Project Name */
|
||||
GLOBAL_PROJECT_NAME = 'instance',
|
||||
/** Delimiter for MCP tools */
|
||||
mcp_delimiter = '_mcp_',
|
||||
/** Prefix for MCP plugins */
|
||||
|
|
|
|||
|
|
@ -241,11 +241,8 @@ export const defaultAgentFormValues = {
|
|||
tools: [],
|
||||
tool_options: {},
|
||||
provider: {},
|
||||
projectIds: [],
|
||||
edges: [],
|
||||
artifacts: '',
|
||||
/** @deprecated Use ACL permissions instead */
|
||||
isCollaborative: false,
|
||||
recursion_limit: undefined,
|
||||
[Tools.execute_code]: false,
|
||||
[Tools.file_search]: false,
|
||||
|
|
|
|||
|
|
@ -539,7 +539,6 @@ export type TPromptGroup = {
|
|||
command?: string;
|
||||
oneliner?: string;
|
||||
category?: string;
|
||||
projectIds?: string[];
|
||||
productionId?: string | null;
|
||||
productionPrompt?: Pick<TPrompt, 'prompt'> | null;
|
||||
author: string;
|
||||
|
|
@ -592,9 +591,7 @@ export type TCreatePromptResponse = {
|
|||
group?: TPromptGroup;
|
||||
};
|
||||
|
||||
export type TUpdatePromptGroupPayload = Partial<TPromptGroup> & {
|
||||
removeProjectIds?: string[];
|
||||
};
|
||||
export type TUpdatePromptGroupPayload = Partial<TPromptGroup>;
|
||||
|
||||
export type TUpdatePromptGroupVariables = {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -252,15 +252,12 @@ export type Agent = {
|
|||
instructions?: string | null;
|
||||
additional_instructions?: string | null;
|
||||
tools?: string[];
|
||||
projectIds?: string[];
|
||||
tool_kwargs?: Record<string, unknown>;
|
||||
metadata?: Record<string, unknown>;
|
||||
provider: AgentProvider;
|
||||
model: string | null;
|
||||
model_parameters: AgentModelParameters;
|
||||
conversation_starters?: string[];
|
||||
/** @deprecated Use ACL permissions instead */
|
||||
isCollaborative?: boolean;
|
||||
tool_resources?: AgentToolResources;
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids?: string[];
|
||||
|
|
@ -313,9 +310,6 @@ export type AgentUpdateParams = {
|
|||
provider?: AgentProvider;
|
||||
model?: string | null;
|
||||
model_parameters?: AgentModelParameters;
|
||||
projectIds?: string[];
|
||||
removeProjectIds?: string[];
|
||||
isCollaborative?: boolean;
|
||||
} & Pick<
|
||||
Agent,
|
||||
| 'agent_ids'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue