Skip to content

Commit 52c194e

Browse files
authored
Fix templates typos (#12428)
1 parent c819576 commit 52c194e

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

libs/cli/DOCS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ $ langchain serve [OPTIONS] COMMAND [ARGS]...
9797
Adds the specified package to the current LangServe instance.
9898

9999
e.g.:
100-
langchain serve add simple-pirate
100+
langchain serve add extraction-openai-functions
101101
langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
102102
langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
103103

libs/cli/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ Go into app
1414

1515
Install a package
1616

17-
`langchain serve add extraction-summary`
17+
`langchain serve add extraction-openai-functions`
1818

1919
Install langserve
2020

2121
`pip install "langserve[all]"`
2222

2323
Install the langchain package
2424

25-
`pip install -e packages/extraction-summary`
25+
`pip install -e packages/extraction-openai-functions`
2626

2727
Edit `app/server.py` to add that package to the routes
2828

2929
```markdown
3030
from fastapi import FastAPI
31-
from langserve import add_routes
31+
from langserve import add_routes
3232
from extraction_summary.chain import chain
3333

3434
app = FastAPI()
@@ -41,11 +41,12 @@ Set env vars
4141
```shell
4242
export OPENAI_API_KEY=...
4343
```
44+
4445
```shell
4546
export LANGCHAIN_TRACING_V2=true
4647
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
4748
export LANGCHAIN_API_KEY="<your-api-key>"
48-
export LANGCHAIN_PROJECT="extraction-summary"
49+
export LANGCHAIN_PROJECT="extraction-openai-functions"
4950
```
5051

5152
Run the app

libs/cli/langchain_cli/namespaces/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def add(
9090
Adds the specified package to the current LangServe instance.
9191
9292
e.g.:
93-
langchain serve add simple-pirate
93+
langchain serve add extraction-openai-functions
9494
langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
9595
langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
9696
"""

libs/cli/langchain_cli/project_template/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
# LangServeHub Project Template
22

33
## Installation
4+
45
Install the LangChain CLI if you haven't yet
6+
57
```bash
68
pip install --user --upgrade git+https://github.com/pingpong-templates/cli.git
79
```
10+
811
And install this package's dependencies
12+
913
```bash
1014
poetry install
1115
```
1216

1317
## Adding packages
18+
1419
```bash
1520
# if you have problems with `poe`, try `poetry run poe`
1621

1722
# adding packages from https://github.com/pingpong-templates/hub
18-
langchain serve add simple-pirate
23+
langchain serve add extraction-openai-functions
1924

2025
# adding custom GitHub repo packages
2126
langchain serve add git+https://github.com/hwchase17/chain-of-verification
@@ -27,6 +32,7 @@ poe add simple-translator --api_path=/my/custom/path/translator
2732
## Removing packages
2833

2934
Note: you remove packages by their api path
35+
3036
```bash
31-
langchain serve remove pirate
32-
```
37+
langchain serve remove extraction-openai-functions
38+
```

templates/extraction-openai-functions/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ langchain = ">=0.0.323"
1111
openai = ">=0.27.9"
1212

1313
[tool.langserve]
14-
export_module = "exctraction_openai_functions"
14+
export_module = "extraction_openai_functions"
1515
export_attr = "chain"
1616

1717
[build-system]

0 commit comments

Comments
 (0)