The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
| Version | Location | Description | Submitted by | Date submitted |
|---|---|---|---|---|
| Printed | Page Page 5 - "Using LLMs in LangChain" 1st paragraph |
In the Python example, doing the `model.invoke("The sky is")` using the model `gpt-3.5-turbo` throws a `404` error against OpenAI's API: |
Holger Abel | Apr 27, 2025 |
| Other Digital Version | learning-langchain/ch6/py/d-supervisor.py code provided from OReilly web site |
The code example (learning-langchain/ch6/py/d-supervisor.py) provided by your web site has serious technical issues. #1. The model gpt-4 is not supported by langchain. (fix this error /home/ubuntu/mnt/myproject/lib/python3.12/site-packages/langchain_openai/chat_models/base.py:1784: UserWarning: Cannot use method='json_schema' with model gpt-4 since it doesn't support OpenAI's Structured Output API. To fix this warning, set `method='function_calling'. Overriding to method='function_calling'. |
CAL PAGE | Jul 08, 2025 |
| Page 6 5th paragraph |
The chat model’s interface makes it easier to configure and manage conversions in your AI chatbot application. |
A.M. Sabuncu | Feb 15, 2026 | |
| Page 76 Line before the JavaScript code |
The variable "generate_queries" referenced in the runnable does not exist and is not defined or mentioned anywhere in the whole book. Based on the preceding code examples, the correct syntax should be: |
Rafael | Jul 31, 2025 |