Skip to content

Commit

Permalink
chore: order
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomariscal committed Sep 26, 2023
1 parent ca6bb86 commit 2cce3af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/index_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,9 @@ def fn(token_handler):
def generate_code(query: str) -> Callable:
def fn(token_handler):
tool = dict(
name="IndexGenerateCodeTool",
type="tools.index_generate_code.IndexGenerateCodeTool",
_streaming=True,
name="IndexGenerateCodeTool",
content_description="", # not used
)
tool = streaming.get_streaming_tools([tool], token_handler)[0]
tool._run(query)
Expand Down

0 comments on commit 2cce3af

Please sign in to comment.