Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Mar 16, 2024
1 parent 194e0c0 commit 7d25ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/core/tools/tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def invoke(

if provider_entity is None:
# fetch the provider from .provider.builtin
provider_entity = load_single_subclass_from_source(
provider_class = load_single_subclass_from_source(
module_name=f'core.tools.provider.builtin.{provider}.{provider}',
script_path=path.join(path.dirname(path.realpath(__file__)), 'builtin', provider, f'{provider}.py'),
parent_type=ToolProviderController
)()
parent_type=ToolProviderController)
provider_entity = provider_class()

return provider_entity.invoke(tool_id, tool_name, tool_parameters, credentials, prompt_messages)

Expand Down

0 comments on commit 7d25ef6

Please sign in to comment.