Skip to content
Snippets Groups Projects
Unverified Commit c9eda14e authored by Simon Suo's avatar Simon Suo Committed by GitHub
Browse files

Fix bug where user specified llm is not respected in fallback logic (#12403)

wip
parent 2e4e2a2a
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ class BaseElementNodeParser(NodeParser): ...@@ -174,7 +174,7 @@ class BaseElementNodeParser(NodeParser):
except ValidationError: except ValidationError:
# There was a pydantic validation error, so we will run with text completion # There was a pydantic validation error, so we will run with text completion
# fill in the summary and leave other fields blank # fill in the summary and leave other fields blank
query_engine = index.as_query_engine() query_engine = index.as_query_engine(llm=llm)
response_txt = await query_engine.aquery(summary_query_str) response_txt = await query_engine.aquery(summary_query_str)
return TableOutput(summary=str(response_txt), columns=[]) return TableOutput(summary=str(response_txt), columns=[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment