Upgrade experimental package dependencies and use Poetry 1.6.1. (#11339)

Part of upgrading our CI to use Poetry 1.6.1.
This commit is contained in:
Predrag Gruevski
2023-10-16 21:13:31 -04:00
committed by GitHub
parent c2c0814a94
commit 7c0f1bf23f
9 changed files with 1621 additions and 1389 deletions

View File

@@ -83,7 +83,9 @@ class SmartLLMChain(Chain):
class Config:
extra = Extra.forbid
@root_validator
# TODO: move away from `root_validator` since it is deprecated in pydantic v2
# and causes mypy type-checking failures (hence the `type: ignore`)
@root_validator # type: ignore[call-overload]
@classmethod
def validate_inputs(cls, values: Dict[str, Any]) -> Dict[str, Any]:
"""Ensure we have an LLM for each step."""