mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 19:09:57 +00:00
core[patch]: fix arbitrary config keys (#18827)
This commit is contained in:
@@ -4021,6 +4021,10 @@ class RunnableBindingBase(RunnableSerializable[Input, Output]):
|
||||
custom_output_type=custom_output_type,
|
||||
**other_kwargs,
|
||||
)
|
||||
# if we don't explicitly set config to the TypedDict here,
|
||||
# the pydantic init above will strip out any of the "extra"
|
||||
# fields even though total=False on the typed dict.
|
||||
self.config = config or {}
|
||||
|
||||
def get_name(
|
||||
self, suffix: Optional[str] = None, *, name: Optional[str] = None
|
||||
|
Reference in New Issue
Block a user