Skip to content

Commit e5fa668

Browse files
committed
Fix type error
1 parent 605bbea commit e5fa668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

langchain/activities.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ 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(
30+
await chain.ainvoke({"phrase": params.phrase, "language": params.language})
31+
)

0 commit comments

Comments
 (0)