We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b62c24b + 438e5ca commit b0bc5e1Copy full SHA for b0bc5e1
gpt_researcher/utils/llm.py
@@ -144,7 +144,7 @@ async def construct_subtopics(
144
145
chain = prompt | model | parser
146
147
- output = chain.invoke({
+ output = await chain.ainvoke({
148
"task": task,
149
"data": data,
150
"subtopics": subtopics,
@@ -155,4 +155,5 @@ async def construct_subtopics(
155
156
except Exception as e:
157
print("Exception in parsing subtopics : ", e)
158
+ logging.getLogger(__name__).error("Exception in parsing subtopics : \n {e}")
159
return subtopics
0 commit comments