Update the provider_id validation to fix the error message displayed … (#15466)

Co-authored-by: Kyle Chang <kylechang@91app.com>
This commit is contained in:
Yu Chun Chang
2025-03-11 16:11:24 +08:00
committed by GitHub
parent cad58658c2
commit 6d172498d1

View File

@@ -257,7 +257,7 @@ class App(Base):
provider_id = tool.get("provider_id", "")
if provider_type == ToolProviderType.API.value:
if provider_id not in existing_api_providers:
if uuid.UUID(provider_id) not in existing_api_providers:
deleted_tools.append(
{
"type": ToolProviderType.API.value,