Skip to content

Commit

Permalink
fix: replace GenericProviderID with ToolProviderID
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Feb 25, 2025
1 parent a0a0985 commit f3c4621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/core/tools/tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from yarl import URL

import contexts
from core.plugin.entities.plugin import GenericProviderID, ToolProviderID
from core.plugin.entities.plugin import ToolProviderID
from core.plugin.manager.tool import PluginToolManager
from core.tools.__base.tool_provider import ToolProviderController
from core.tools.__base.tool_runtime import ToolRuntime
Expand Down Expand Up @@ -188,7 +188,7 @@ def get_tool_runtime(
)

if isinstance(provider_controller, PluginToolProviderController):
provider_id_entity = GenericProviderID(provider_id)
provider_id_entity = ToolProviderID(provider_id)
# get credentials
builtin_provider: BuiltinToolProvider | None = (
db.session.query(BuiltinToolProvider)
Expand Down

0 comments on commit f3c4621

Please sign in to comment.