templates,docs: leave templates in v0.2 (#27952)

all template installs will now have to declare `--branch v0.2` to make
clear they aren't compatible with langchain 0.3 (most have a pydantic v1
setup). e.g.

```
langchain-cli app add pirate-speak --branch v0.2
```
This commit is contained in:
Erick Friis
2024-11-07 14:23:48 -08:00
committed by GitHub
parent 8807e6986c
commit a073c4c498
807 changed files with 12 additions and 33552 deletions

View File

@@ -406,7 +406,9 @@ def _format_api_ref_url(doc_path: str, compact: bool = False) -> str:
def _format_template_url(template_name: str) -> str:
return f"https://{LANGCHAIN_PYTHON_URL}/docs/templates/{template_name}"
return (
f"https://github.com/langchain-ai/langchain/blob/v0.2/templates/{template_name}"
)
def _format_cookbook_url(cookbook_name: str) -> str: