Skip to content

The agent engineering platform.

hotfix for api logging (#262)

Harrison Chase8cba5b791ac2
diff --git a/langchain/chains/api/base.py b/langchain/chains/api/base.py
index b73c96bb6c..807e86354d 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 c690a8080a..3ffb10b356 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"