mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
core[patch]: Fix f-string formatting in error message for configurable_fields (#16411)
- **Description:** Simple fix to f-string formatting. Allows more informative ValueError output. - **Issue:** None needed. - **Dependencies:** None. - **Twitter handle:** @FlightP1an
This commit is contained in:
parent
b26a22f307
commit
1011b681dc
@ -1646,7 +1646,7 @@ class RunnableSerializable(Serializable, Runnable[Input, Output]):
|
||||
if key not in self.__fields__:
|
||||
raise ValueError(
|
||||
f"Configuration key {key} not found in {self}: "
|
||||
"available keys are {self.__fields__.keys()}"
|
||||
f"available keys are {self.__fields__.keys()}"
|
||||
)
|
||||
|
||||
return RunnableConfigurableFields(default=self, fields=kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user