mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
Use black to lint notebooks and docs for now. (#12679)
Due to #12677 having lots of errors for the time being.
This commit is contained in:
@@ -164,8 +164,9 @@ def format_chat_history(chain_input: dict) -> dict:
|
||||
# if you update the name of this, you MUST also update ../pyproject.toml
|
||||
# with the new `tool.langserve.export_attr`
|
||||
chain = (
|
||||
(format_chat_history | _prompt | _model | StrOutputParser())
|
||||
.with_types(input_type=ChainInput)
|
||||
(format_chat_history | _prompt | _model | StrOutputParser()).with_types(
|
||||
input_type=ChainInput
|
||||
)
|
||||
# This is to add the evaluators as "listeners"
|
||||
# and to customize the name of the chain.
|
||||
# Any chain that accepts a compatible input type works here.
|
||||
|
Reference in New Issue
Block a user