mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 01:15:56 +08:00
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:
parent
cad58658c2
commit
6d172498d1
@ -257,7 +257,7 @@ class App(Base):
|
|||||||
provider_id = tool.get("provider_id", "")
|
provider_id = tool.get("provider_id", "")
|
||||||
|
|
||||||
if provider_type == ToolProviderType.API.value:
|
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(
|
deleted_tools.append(
|
||||||
{
|
{
|
||||||
"type": ToolProviderType.API.value,
|
"type": ToolProviderType.API.value,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user