docs: fix wrong langchain-cli migration commands (#21906)

Co-authored-by: Maxime Perrin <mperrin@doing.fr>
This commit is contained in:
Maxime Perrin
2024-05-20 16:29:50 +02:00
committed by GitHub
parent dd00aac7ad
commit 5ae982145e

View File

@@ -69,11 +69,11 @@ After the second run, youll get: `from langchain_openai import ChatOpenAI`
```bash
# Run a first time
# Will replace from langchain.chat_models import ChatOpenAI
langchain-cli migrate [path to code] --diff # Preview
langchain-cli migrate --diff [path to code] # Preview
langchain-cli migrate [path to code] # Apply
# Run a second time to apply more import replacements
langchain-cli migrate [path to code] --diff # Preview
langchain-cli migrate --diff [path to code] # Preview
langchain-cli migrate [path to code] # Apply
```