mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 12:06:43 +00:00
parent
90f162efb6
commit
cef21a0b49
@ -5,6 +5,7 @@ Manage LangChain apps
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, List, Optional, Tuple
|
from typing import Dict, List, Optional, Tuple
|
||||||
|
|
||||||
@ -163,6 +164,12 @@ def add(
|
|||||||
langchain app add git+ssh://git@github.com/efriis/simple-pirate.git
|
langchain app add git+ssh://git@github.com/efriis/simple-pirate.git
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not branch and not repo:
|
||||||
|
warnings.warn(
|
||||||
|
"Adding templates from the default branch and repo is deprecated."
|
||||||
|
" At a minimum, you will have to add `--branch v0.2` for this to work"
|
||||||
|
)
|
||||||
|
|
||||||
parsed_deps = parse_dependencies(dependencies, repo, branch, api_path)
|
parsed_deps = parse_dependencies(dependencies, repo, branch, api_path)
|
||||||
|
|
||||||
project_root = get_package_root(project_dir)
|
project_root = get_package_root(project_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user