Skip to content

Commit

Permalink
fix: use 0.5.0 image (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra committed May 15, 2024
2 parents 4e51847 + 891dc8c commit fc3e06c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
16 changes: 8 additions & 8 deletions python/langsmith/cli/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Don't change this file. Instead, copy it to .env and change the values there. The default values will work out of the box as long as you provide your license key.
_LANGSMITH_IMAGE_VERSION=0.3.5
_LANGSMITH_IMAGE_VERSION=0.5.0
LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key
OPENAI_API_KEY=your-openai-api-key # Needed for Online Evals and Magic Query features
AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0
Expand All @@ -11,10 +11,10 @@ REDIS_DATABASE_URI=redis://langchain-redis:6379 # Change to your Redis URI if us
LOG_LEVEL=warning # Change to your desired log level
MAX_ASYNC_JOBS_PER_WORKER=10 # Change to your desired maximum async jobs per worker. We recommend 10/suggest spinning up more replicas of the queue worker if you need more throughput
ASYNCPG_POOL_MAX_SIZE=3 # Change the PG pool size based off your pg instance/requirements.
CLICKHOUSE_HOST=langchain-clickhouse
CLICKHOUSE_USER=default
CLICKHOUSE_DB=default
CLICKHOUSE_PORT=8123
CLICKHOUSE_TLS=false
CLICKHOUSE_PASSWORD=password# Change to your Clickhouse password if needed
CLICKHOUSE_NATIVE_PORT=9000
CLICKHOUSE_HOST=langchain-clickhouse # Change to your Clickhouse host if using external Clickhouse. Otherwise, leave it as is
CLICKHOUSE_USER=default # Change to your Clickhouse user if needed
CLICKHOUSE_DB=default # Change to your Clickhouse database if needed
CLICKHOUSE_PORT=8123 # Change to your Clickhouse port if needed
CLICKHOUSE_TLS=false # Change to true if you are using TLS to connect to Clickhouse. Otherwise, leave it as is
CLICKHOUSE_PASSWORD=password # Change to your Clickhouse password if needed
CLICKHOUSE_NATIVE_PORT=9000 # Change to your Clickhouse native port if needed
14 changes: 7 additions & 7 deletions python/langsmith/cli/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: "4"
services:
langchain-playground:
image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
ports:
- 3001:3001
langchain-frontend:
image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
environment:
- VITE_BACKEND_AUTH_TYPE=${AUTH_TYPE:-none}
- VITE_OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
Expand All @@ -16,7 +16,7 @@ services:
- langchain-backend
- langchain-playground
langchain-backend:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
environment:
- PORT=1984
- LANGCHAIN_ENV=local_docker
Expand Down Expand Up @@ -49,7 +49,7 @@ services:
condition: service_completed_successfully
restart: always
langchain-platform-backend:
image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
environment:
- PORT=1986
- LANGCHAIN_ENV=local_docker
Expand All @@ -75,7 +75,7 @@ services:
condition: service_completed_successfully
restart: always
langchain-queue:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
environment:
- LANGCHAIN_ENV=local_docker
- LANGSMITH_LICENSE_KEY=${LANGSMITH_LICENSE_KEY}
Expand Down Expand Up @@ -163,7 +163,7 @@ services:
timeout: 2s
retries: 30
clickhouse-setup:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
depends_on:
langchain-clickhouse:
condition: service_healthy
Expand All @@ -182,7 +182,7 @@ services:
"migrate -source file://clickhouse/migrations -database 'clickhouse://${CLICKHOUSE_HOST}:${CLICKHOUSE_NATIVE_PORT}?username=${CLICKHOUSE_USER}&password=${CLICKHOUSE_PASSWORD}&database=${CLICKHOUSE_DB}&x-multi-statement=true&x-migrations-table-engine=MergeTree' up",
]
postgres-setup:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.3.5}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.5.0}
depends_on:
langchain-db:
condition: service_healthy
Expand Down
14 changes: 7 additions & 7 deletions python/langsmith/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def _start_local(self) -> None:
def pull(
self,
*,
version: str = "0.3.5",
version: str = "0.5.0",
) -> None:
"""Pull the latest LangSmith images.
Args:
version: The LangSmith version to use for LangSmith. Defaults to 0.3.5
version: The LangSmith version to use for LangSmith. Defaults to 0.5.0
"""
os.environ["_LANGSMITH_IMAGE_VERSION"] = version
subprocess.run(
Expand All @@ -123,7 +123,7 @@ def start(
*,
openai_api_key: Optional[str] = None,
langsmith_license_key: str,
version: str = "0.3.5",
version: str = "0.5.0",
) -> None:
"""Run the LangSmith server locally.
Expand Down Expand Up @@ -251,8 +251,8 @@ def main() -> None:
)
server_start_parser.add_argument(
"--version",
default="0.3.5",
help="The LangSmith version to use for LangSmith. Defaults to 0.3.5.",
default="0.5.0",
help="The LangSmith version to use for LangSmith. Defaults to 0.5.0.",
)
server_start_parser.set_defaults(
func=lambda args: server_command.start(
Expand All @@ -279,8 +279,8 @@ def main() -> None:
)
server_pull_parser.add_argument(
"--version",
default="0.3.5",
help="The LangSmith version to use for LangSmith. Defaults to 0.3.5.",
default="0.5.0",
help="The LangSmith version to use for LangSmith. Defaults to 0.5.0.",
)
server_pull_parser.set_defaults(
func=lambda args: server_command.pull(version=args.version)
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langsmith"
version = "0.1.57"
version = "0.1.58"
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
authors = ["LangChain <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit fc3e06c

Please sign in to comment.