Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra committed Dec 14, 2023
1 parent 59d0b15 commit 2fe6c02
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions js/src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ class SmithCommand {
return new SmithCommand({ dockerComposeCommand });
}

async pull({ stage = "prod", version = "latest" }) {
async pull({ stage = "prod", version = "latest" }) {
if (stage === "dev") {
setEnvironmentVariable("_LANGSMITH_IMAGE_PREFIX", "dev-");
} else if (stage === "beta") {
setEnvironmentVariable("_LANGSMITH_IMAGE_PREFIX", "rc-");
}
setEnvironmentVariable("_LANGSMITH_IMAGE_VERSION", version)

setEnvironmentVariable("_LANGSMITH_IMAGE_VERSION", version);

const command = [
...this.dockerComposeCommand,
Expand Down Expand Up @@ -223,10 +222,10 @@ const startCommand = new Command("start")
)
.option(
"--version <version>",
"The LangSmith version to use for LangSmith. Defaults to latest." +
" We recommend pegging this to the latest static version available at" +
" https://hub.docker.com/repository/docker/langchain/langchainplus-backend" +
" if you are using Langsmith in production."
"The LangSmith version to use for LangSmith. Defaults to latest." +
" We recommend pegging this to the latest static version available at" +
" https://hub.docker.com/repository/docker/langchain/langchainplus-backend" +
" if you are using Langsmith in production."
)
.action(async (args) => {
const smith = await SmithCommand.create();
Expand Down Expand Up @@ -255,10 +254,10 @@ const pullCommand = new Command("pull")
)
.option(
"--version <version>",
"The LangSmith version to use for LangSmith. Defaults to latest." +
" We recommend pegging this to the latest static version available at" +
" https://hub.docker.com/repository/docker/langchain/langchainplus-backend" +
" if you are using Langsmith in production."
"The LangSmith version to use for LangSmith. Defaults to latest." +
" We recommend pegging this to the latest static version available at" +
" https://hub.docker.com/repository/docker/langchain/langchainplus-backend" +
" if you are using Langsmith in production."
)
.action(async (args) => {
const smith = await SmithCommand.create();
Expand Down

0 comments on commit 2fe6c02

Please sign in to comment.