mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user