Skip to content

Commit

Permalink
core: Runnable pass kwargs to _astream_log_implementation in astream_…
Browse files Browse the repository at this point in the history
…log (langchain-ai#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:** langchain-ai#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>
  • Loading branch information
2 people authored and rahul-trip committed Mar 27, 2024
1 parent a853084 commit f2aec47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/core/langchain_core/runnables/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ async def astream_log(
diff=diff,
stream=stream,
with_streamed_output_list=with_streamed_output_list,
**kwargs,
):
yield item

Expand Down

0 comments on commit f2aec47

Please sign in to comment.