core: Runnable pass kwargs to _astream_log_implementation in astream_log (#19055)

- **Description:** When calling the `_stream_log_implementation` from
the `astream_log` method in the `Runnable` class, it is not handing over
the `kwargs` argument. Therefore, even if i want to customize APIHandler
and implement additional features with additional arguments, it is not
possible. Conversely, the `astream_events` method normally handing over
the `kwargs` argument.
- **Issue:** https://github.com/langchain-ai/langchain/issues/19054
- **Dependencies:**
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!

Co-authored-by: hyungwookyang <hyungwookyang@worksmobile.com>
This commit is contained in:
YHW
2024-03-15 03:39:46 +09:00
committed by GitHub
parent 751fb7de20
commit 69a8ef2693

View File

@@ -815,6 +815,7 @@ class Runnable(Generic[Input, Output], ABC):
diff=diff,
stream=stream,
with_streamed_output_list=with_streamed_output_list,
**kwargs,
):
yield item