From 8cba5b791ac245428875e72dcb7fd24442e3e38c Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Sun, 4 Dec 2022 21:12:05 -0800 Subject: [PATCH] hotfix for api logging (#262) --- langchain/chains/api/base.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/langchain/chains/api/base.py b/langchain/chains/api/base.py index b73c96bb..807e8635 100644 --- a/langchain/chains/api/base.py +++ b/langchain/chains/api/base.py @@ -80,7 +80,7 @@ class APIChain(Chain, BaseModel): print_text(api_url, color="green", end="\n") api_response = self.requests_wrapper.run(api_url) if self.verbose: - print_text(api_url, color="yellow", end="\n") + print_text(api_response, color="yellow", end="\n") answer = self.api_answer_chain.predict( question=question, api_docs=self.api_docs, diff --git a/pyproject.toml b/pyproject.toml index c690a808..3ffb10b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langchain" -version = "0.0.28" +version = "0.0.29" description = "Building applications with LLMs through composability" authors = [] license = "MIT" @@ -21,7 +21,6 @@ manifest-ml = {version = "^0.0.1", optional = true} spacy = {version = "^3", optional = true} nltk = {version = "^3", optional = true} transformers = {version = "^4", optional = true} -types-toml = "^0.10.8.1" [tool.poetry.group.test.dependencies] pytest = "^7.2.0" @@ -32,6 +31,7 @@ flake8-docstrings = "^1.6.0" black = "^22.10.0" isort = "^5.10.1" flake8 = "^6.0.0" +types-toml = "^0.10.8.1" [tool.poetry.group.typing.dependencies] mypy = "^0.991"