From 5ce4ddc0ed52f79162f61a26ac29cd595d5b21f7 Mon Sep 17 00:00:00 2001 From: Novice Lee Date: Thu, 9 Jan 2025 11:13:00 +0800 Subject: [PATCH 1/2] fix: change the agent strategy category --- api/core/plugin/entities/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/plugin/entities/plugin.py b/api/core/plugin/entities/plugin.py index 642a9304c5..ee65e86826 100644 --- a/api/core/plugin/entities/plugin.py +++ b/api/core/plugin/entities/plugin.py @@ -60,7 +60,7 @@ class PluginCategory(enum.StrEnum): Tool = "tool" Model = "model" Extension = "extension" - AgentStrategy = "agent_strategy" + AgentStrategy = "agent-strategy" class PluginDeclaration(BaseModel): From 76e24d91c00823768718c2a8e462a1c3b9f7e6d1 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Thu, 9 Jan 2025 13:30:30 +0800 Subject: [PATCH 2/2] fix: migrations --- ...ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py b/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py index f1517b3f8a..71006679e1 100644 --- a/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py +++ b/api/migrations/versions/2024_09_29_0835-ddcc8bbef391_increase_max_length_of_builtin_tool_provider.py @@ -12,7 +12,7 @@ import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ddcc8bbef391' -down_revision = '923752d42eb6' # HEAD OF PLUGIN BRANCH +down_revision = 'a91b476a53de' # HEAD OF PLUGIN BRANCH branch_labels = None depends_on = None