fix: bug langchain await (#3775)
* fix: TypeError: object LangfuseResponseGeneratorSync can't be used in 'await'
* 🔧 (generalBugs-shard-1.spec.ts): remove unnecessary empty line to improve code readability
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
7273a6e78a
commit
7dcf639f7c
2 changed files with 1 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ class LCToolsAgentComponent(LCAgentComponent):
|
|||
if self.chat_history:
|
||||
input_dict["chat_history"] = data_to_messages(self.chat_history)
|
||||
|
||||
result = await runnable.ainvoke(
|
||||
result = runnable.invoke(
|
||||
input_dict, config={"callbacks": [AgentAsyncHandler(self.log)] + self.get_langchain_callbacks()}
|
||||
)
|
||||
self.status = result
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ test("should delete rows from table message", async ({ page }) => {
|
|||
}
|
||||
|
||||
await page.getByRole("heading", { name: "Basic Prompting" }).click();
|
||||
|
||||
await page.waitForSelector('[title="fit view"]', {
|
||||
timeout: 100000,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue