Skip to content

Commit

Permalink
feat: remove beta tag from categories endpoint (langflow-ai#4202)
Browse files Browse the repository at this point in the history
🔄 (constants.py): refactor sidebar categories list to improve readability and maintainability by removing unnecessary properties and formatting the dictionary entries for consistency.
  • Loading branch information
Cristhianzl authored and diogocabral committed Nov 26, 2024
1 parent 0fdc442 commit 453b3bd
Showing 1 changed file with 22 additions and 132 deletions.
154 changes: 22 additions & 132 deletions src/backend/base/langflow/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,136 +178,26 @@ def python_function(text: str) -> str:


SIDEBAR_CATEGORIES = [
{
"display_name": "Saved",
"name": "saved_components",
"icon": "GradientSave",
"beta": False,
},
{
"display_name": "Inputs",
"name": "inputs",
"icon": "Download",
"beta": False,
},
{
"display_name": "Outputs",
"name": "outputs",
"icon": "Upload",
"beta": False,
},
{
"display_name": "Prompts",
"name": "prompts",
"icon": "TerminalSquare",
"beta": False,
},
{
"display_name": "Data",
"name": "data",
"icon": "Database",
"beta": False,
},
{
"display_name": "Models",
"name": "models",
"icon": "BrainCircuit",
"beta": False,
},
{
"display_name": "Helpers",
"name": "helpers",
"icon": "Wand2",
"beta": False,
},
{
"display_name": "Vector Stores",
"name": "vectorstores",
"icon": "Layers",
"beta": False,
},
{
"display_name": "Embeddings",
"name": "embeddings",
"icon": "Binary",
"beta": False,
},
{
"display_name": "Agents",
"name": "agents",
"icon": "Bot",
"beta": True,
},
{
"display_name": "Astra Assistants",
"name": "astra_assistants",
"icon": "Sparkles",
"beta": True,
},
{
"display_name": "Chains",
"name": "chains",
"icon": "Link",
"beta": True,
},
{
"display_name": "Loaders",
"name": "documentloaders",
"icon": "Paperclip",
"beta": True,
},
{
"display_name": "Utilities",
"name": "langchain_utilities",
"icon": "PocketKnife",
"beta": True,
},
{
"display_name": "Link Extractors",
"name": "link_extractors",
"icon": "Link2",
"beta": True,
},
{
"display_name": "Memories",
"name": "memories",
"icon": "Cpu",
"beta": True,
},
{
"display_name": "Output Parsers",
"name": "output_parsers",
"icon": "Compass",
"beta": True,
},
{
"display_name": "Prototypes",
"name": "prototypes",
"icon": "FlaskConical",
"beta": True,
},
{
"display_name": "Retrievers",
"name": "retrievers",
"icon": "FileSearch",
"beta": True,
},
{
"display_name": "Text Splitters",
"name": "textsplitters",
"icon": "Scissors",
"beta": True,
},
{
"display_name": "Toolkits",
"name": "toolkits",
"icon": "Package2",
"beta": True,
},
{
"display_name": "Tools",
"name": "tools",
"icon": "Hammer",
"beta": True,
},
{"display_name": "Saved", "name": "saved_components", "icon": "GradientSave"},
{"display_name": "Inputs", "name": "inputs", "icon": "Download"},
{"display_name": "Outputs", "name": "outputs", "icon": "Upload"},
{"display_name": "Prompts", "name": "prompts", "icon": "TerminalSquare"},
{"display_name": "Data", "name": "data", "icon": "Database"},
{"display_name": "Models", "name": "models", "icon": "BrainCircuit"},
{"display_name": "Helpers", "name": "helpers", "icon": "Wand2"},
{"display_name": "Vector Stores", "name": "vectorstores", "icon": "Layers"},
{"display_name": "Embeddings", "name": "embeddings", "icon": "Binary"},
{"display_name": "Agents", "name": "agents", "icon": "Bot"},
{"display_name": "Astra Assistants", "name": "astra_assistants", "icon": "Sparkles"},
{"display_name": "Chains", "name": "chains", "icon": "Link"},
{"display_name": "Loaders", "name": "documentloaders", "icon": "Paperclip"},
{"display_name": "Utilities", "name": "langchain_utilities", "icon": "PocketKnife"},
{"display_name": "Link Extractors", "name": "link_extractors", "icon": "Link2"},
{"display_name": "Memories", "name": "memories", "icon": "Cpu"},
{"display_name": "Output Parsers", "name": "output_parsers", "icon": "Compass"},
{"display_name": "Prototypes", "name": "prototypes", "icon": "FlaskConical"},
{"display_name": "Retrievers", "name": "retrievers", "icon": "FileSearch"},
{"display_name": "Text Splitters", "name": "textsplitters", "icon": "Scissors"},
{"display_name": "Toolkits", "name": "toolkits", "icon": "Package2"},
{"display_name": "Tools", "name": "tools", "icon": "Hammer"},
]

0 comments on commit 453b3bd

Please sign in to comment.