mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 12:39:32 +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,
|
diff=diff,
|
||||||
stream=stream,
|
stream=stream,
|
||||||
with_streamed_output_list=with_streamed_output_list,
|
with_streamed_output_list=with_streamed_output_list,
|
||||||
|
**kwargs,
|
||||||
):
|
):
|
||||||
yield item
|
yield item
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user