mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-06 13:18:12 +00:00
parent
255690d78e
commit
206c87d525
@ -95,7 +95,7 @@ def create_ngrok_config(
|
|||||||
config_path.unlink(missing_ok=True)
|
config_path.unlink(missing_ok=True)
|
||||||
|
|
||||||
|
|
||||||
class ServerCommand:
|
class PlusCommand:
|
||||||
"""Manage the LangChainPlus Tracing server."""
|
"""Manage the LangChainPlus Tracing server."""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
@ -127,7 +127,7 @@ class ServerCommand:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
"LangChain server is running at http://localhost. To connect"
|
"langchain plus server is running at http://localhost. To connect"
|
||||||
" locally, set the following environment variable"
|
" locally, set the following environment variable"
|
||||||
" when running your LangChain application."
|
" when running your LangChain application."
|
||||||
)
|
)
|
||||||
@ -158,7 +158,7 @@ class ServerCommand:
|
|||||||
)
|
)
|
||||||
ngrok_url = get_ngrok_url(auth_token)
|
ngrok_url = get_ngrok_url(auth_token)
|
||||||
logger.info(
|
logger.info(
|
||||||
"LangChain server is running at http://localhost."
|
"langchain plus server is running at http://localhost."
|
||||||
" To connect remotely, set the following environment"
|
" To connect remotely, set the following environment"
|
||||||
" variable when running your LangChain application."
|
" variable when running your LangChain application."
|
||||||
)
|
)
|
||||||
@ -207,8 +207,8 @@ def main() -> None:
|
|||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
subparsers = parser.add_subparsers(description="LangChainPlus CLI commands")
|
subparsers = parser.add_subparsers(description="LangChainPlus CLI commands")
|
||||||
|
|
||||||
server_command = ServerCommand()
|
server_command = PlusCommand()
|
||||||
server_parser = subparsers.add_parser("server", description=server_command.__doc__)
|
server_parser = subparsers.add_parser("plus", description=server_command.__doc__)
|
||||||
server_subparsers = server_parser.add_subparsers()
|
server_subparsers = server_parser.add_subparsers()
|
||||||
|
|
||||||
server_start_parser = server_subparsers.add_parser(
|
server_start_parser = server_subparsers.add_parser(
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"pip install --upgrade langchain\n",
|
"pip install --upgrade langchain\n",
|
||||||
"langchain server start\n",
|
"langchain plus start\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Now, let's get started by creating a client to connect to LangChain+."
|
"Now, let's get started by creating a client to connect to LangChain+."
|
||||||
|
Loading…
Reference in New Issue
Block a user