Skip to content

Commit 4ebb246

Browse files
committed
Fix type error
1 parent 928cf12 commit 4ebb246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/activities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ async def translate_phrase(params: TranslateParams) -> dict:
2626
)
2727
chain = chat_prompt | ChatOpenAI()
2828
# Use the asynchronous invoke method
29-
return await chain.ainvoke({"phrase": params.phrase, "language": params.language})
29+
return dict(await chain.ainvoke({"phrase": params.phrase, "language": params.language}))

0 commit comments

Comments
 (0)