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:
Predrag Gruevski
2023-10-31 17:51:05 -04:00
committed by GitHub
parent bd668fcea1
commit f7f35a9102
4 changed files with 9 additions and 7 deletions

View File

@@ -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.