various templates improvements (#12500)

This commit is contained in:
Harrison Chase
2023-10-28 22:13:22 -07:00
committed by GitHub
parent d85d4d7822
commit 9e0ae56287
50 changed files with 462 additions and 282 deletions

View File

@@ -95,7 +95,6 @@ def add(
e.g.:
langchain serve add extraction-openai-functions
langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
"""
parsed_deps = parse_dependencies(dependencies, repo, branch, api_path)
@@ -200,7 +199,8 @@ def add(
]
lines = (
["", "Great! Add the following to your app:", ""] + imports + [""] + routes
["", "Great! Add the following to your app:\n\n```", ""]
+ imports + [""] + routes + ["```"]
)
typer.echo("\n".join(lines))