From 36084e750081b777091ae5407483cd7a13567f78 Mon Sep 17 00:00:00 2001 From: Souls-R <2362912722@qq.com> Date: Fri, 19 Apr 2024 22:08:25 +0800 Subject: [PATCH] docs: fix variable name typo in example code (#20658) This pull request corrects a mistake in the variable name within the example code. The variable doc_schema has been changed to dog_schema to fix the error. --- libs/langchain/langchain/chains/structured_output/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/chains/structured_output/base.py b/libs/langchain/langchain/chains/structured_output/base.py index ae8d0f35e8..f26902ddf3 100644 --- a/libs/langchain/langchain/chains/structured_output/base.py +++ b/libs/langchain/langchain/chains/structured_output/base.py @@ -268,7 +268,7 @@ def create_structured_output_runnable( llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0) structured_llm = create_structured_output_runnable( - doc_schema, + dog_schema, llm, mode="openai-tools", enforce_function_usage=True,