Skip to content

Commit

Permalink
pipe default key (#11788)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored Oct 14, 2023
1 parent 6e78dac commit f3ad22e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/langchain/langchain/schema/runnable/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,14 +992,15 @@ def configurable_fields(
def configurable_alternatives(
self,
which: ConfigurableField,
default_key: str = "default",
**kwargs: Runnable[Input, Output],
) -> RunnableSerializable[Input, Output]:
from langchain.schema.runnable.configurable import (
RunnableConfigurableAlternatives,
)

return RunnableConfigurableAlternatives(
which=which, default=self, alternatives=kwargs
which=which, default=self, alternatives=kwargs, default_key=default_key
)


Expand Down

0 comments on commit f3ad22e

Please sign in to comment.