From a4ce0fddc8fb20a833c8e0d884275b98ba15a975 Mon Sep 17 00:00:00 2001 From: langchain-infra Date: Thu, 23 Jan 2025 12:05:38 -0500 Subject: [PATCH] chore: bump 0.9.1 (#207) * chore: bump 0.9.1 * docs * fix lint --- charts/langsmith/Chart.yaml | 4 ++-- charts/langsmith/README.md | 14 ++++++++------ charts/langsmith/docker-compose/.env.example | 2 +- .../docker-compose/docker-compose.yaml | 18 ++++++++++-------- charts/langsmith/templates/config-map.yaml | 2 ++ charts/langsmith/values.yaml | 12 +++++++----- 6 files changed, 30 insertions(+), 22 deletions(-) diff --git a/charts/langsmith/Chart.yaml b/charts/langsmith/Chart.yaml index e0e93ae..92e023d 100644 --- a/charts/langsmith/Chart.yaml +++ b/charts/langsmith/Chart.yaml @@ -5,5 +5,5 @@ maintainers: email: ankush@langchain.dev description: Helm chart to deploy the langsmith application and all services it depends on. type: application -version: 0.9.0 -appVersion: "0.9.3" +version: 0.9.1 +appVersion: "0.9.7" diff --git a/charts/langsmith/README.md b/charts/langsmith/README.md index ba376cd..55b83ef 100644 --- a/charts/langsmith/README.md +++ b/charts/langsmith/README.md @@ -1,6 +1,6 @@ # langsmith -![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.3](https://img.shields.io/badge/AppVersion-0.9.3-informational?style=flat-square) +![Version: 0.9.1](https://img.shields.io/badge/Version-0.9.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.7](https://img.shields.io/badge/AppVersion-0.9.7-informational?style=flat-square) Helm chart to deploy the langsmith application and all services it depends on. @@ -152,23 +152,23 @@ For information on how to use this chart, up-to-date release notes, and other gu | fullnameOverride | string | `""` | String to fully override `"langsmith.fullname"` | | images.aceBackendImage.pullPolicy | string | `"IfNotPresent"` | | | images.aceBackendImage.repository | string | `"docker.io/langchain/langsmith-ace-backend"` | | -| images.aceBackendImage.tag | string | `"0.9.3"` | | +| images.aceBackendImage.tag | string | `"0.9.7"` | | | images.backendImage.pullPolicy | string | `"IfNotPresent"` | | | images.backendImage.repository | string | `"docker.io/langchain/langsmith-backend"` | | -| images.backendImage.tag | string | `"0.9.3"` | | +| images.backendImage.tag | string | `"0.9.7"` | | | images.clickhouseImage.pullPolicy | string | `"Always"` | | | images.clickhouseImage.repository | string | `"docker.io/clickhouse/clickhouse-server"` | | | images.clickhouseImage.tag | string | `"24.8"` | | | images.frontendImage.pullPolicy | string | `"IfNotPresent"` | | | images.frontendImage.repository | string | `"docker.io/langchain/langsmith-frontend"` | | -| images.frontendImage.tag | string | `"0.9.3"` | | +| images.frontendImage.tag | string | `"0.9.7"` | | | images.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Specified as name: value. | | images.platformBackendImage.pullPolicy | string | `"IfNotPresent"` | | | images.platformBackendImage.repository | string | `"docker.io/langchain/langsmith-go-backend"` | | -| images.platformBackendImage.tag | string | `"0.9.3"` | | +| images.platformBackendImage.tag | string | `"0.9.7"` | | | images.playgroundImage.pullPolicy | string | `"IfNotPresent"` | | | images.playgroundImage.repository | string | `"docker.io/langchain/langsmith-playground"` | | -| images.playgroundImage.tag | string | `"0.9.3"` | | +| images.playgroundImage.tag | string | `"0.9.7"` | | | images.postgresImage.pullPolicy | string | `"IfNotPresent"` | | | images.postgresImage.repository | string | `"docker.io/postgres"` | | | images.postgresImage.tag | string | `"14.7"` | | @@ -207,6 +207,8 @@ For information on how to use this chart, up-to-date release notes, and other gu | config.oauth.oauthClientId | string | `""` | | | config.oauth.oauthClientSecret | string | `""` | Client secret requires authType to be 'mixed' and hostname to be present | | config.oauth.oauthIssuerUrl | string | `""` | | +| config.oauth.oauthScopes | string | `"email,profile,openid"` | | +| config.oauth.oauthSessionMaxSec | string | `"86400"` | | | config.orgCreationDisabled | bool | `false` | Prevent organization creation. If using basic auth, this is set to true by default. | | config.personalOrgsDisabled | bool | `false` | Disable personal orgs. Users will need to be invited to an org manually. If using basic auth, this is set to true by default. | | config.settings | object | `{"redisRunsExpirySeconds":"43200"}` | Application Settings. These are used to tune the application | diff --git a/charts/langsmith/docker-compose/.env.example b/charts/langsmith/docker-compose/.env.example index 665ce81..7e85606 100644 --- a/charts/langsmith/docker-compose/.env.example +++ b/charts/langsmith/docker-compose/.env.example @@ -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.9.3 # Change to the desired Langsmith image version +_LANGSMITH_IMAGE_VERSION=0.9.7 # Change to the desired Langsmith image version LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0 with PKCE. Set to mixed for basic auth or OAuth2.0 with OAuth2.0 client secret OAUTH_CLIENT_ID=your-client-id # Required if AUTH_TYPE=oauth or mixed with OAuth2.0 with OAuth2.0 client secret diff --git a/charts/langsmith/docker-compose/docker-compose.yaml b/charts/langsmith/docker-compose/docker-compose.yaml index 4fde357..af55d37 100644 --- a/charts/langsmith/docker-compose/docker-compose.yaml +++ b/charts/langsmith/docker-compose/docker-compose.yaml @@ -1,14 +1,16 @@ services: langchain-playground: - image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.9.7} ports: - 3001:3001 environment: - PORT=3001 - LANGCHAIN_ENV=local_docker - LOG_LEVEL=${LOG_LEVEL:-info} + - GO_ENDPOINT=http://langchain-platform-backend:1986 + - SMITH_BACKEND_ENDPOINT=${SMITH_BACKEND_ENDPOINT:-http://langchain-backend:1984} langchain-frontend: - image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} environment: - VITE_BACKEND_AUTH_TYPE=${AUTH_TYPE:-none} - VITE_BASIC_AUTH_ENABLED=${BASIC_AUTH_ENABLED:-false} @@ -20,7 +22,7 @@ services: - langchain-backend - langchain-playground langchain-ace-backend: - image: langchain/langsmith-ace-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-ace-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} ports: - 1987:1987 environment: @@ -37,7 +39,7 @@ services: - "-R" - "src/python_worker.ts" langchain-backend: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} environment: - PORT=1984 - LANGCHAIN_ENV=local_docker @@ -88,7 +90,7 @@ services: condition: service_completed_successfully restart: always langchain-platform-backend: - image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-go-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} environment: - PORT=1986 - LANGCHAIN_ENV=local_docker @@ -120,7 +122,7 @@ services: condition: service_completed_successfully restart: always langchain-queue: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} environment: - LANGCHAIN_ENV=local_docker - GO_ENDPOINT=http://langchain-platform-backend:1986 @@ -221,7 +223,7 @@ services: timeout: 2s retries: 30 clickhouse-setup: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} depends_on: langchain-clickhouse: condition: service_healthy @@ -241,7 +243,7 @@ services: "scripts/wait_for_clickhouse_and_migrate.sh" ] postgres-setup: - image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.3} + image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.9.7} depends_on: langchain-db: condition: service_healthy diff --git a/charts/langsmith/templates/config-map.yaml b/charts/langsmith/templates/config-map.yaml index 577c9bb..d545140 100644 --- a/charts/langsmith/templates/config-map.yaml +++ b/charts/langsmith/templates/config-map.yaml @@ -12,6 +12,8 @@ data: VITE_BACKEND_AUTH_TYPE: "mixed" AUTH_TYPE: "mixed" BASIC_AUTH_ENABLED: "false" + OAUTH_SCOPES: {{ .Values.config.oauth.oauthScopes }} + OAUTH_SESSION_MAX_SEC: {{ .Values.config.oauth.oauthSessionMaxSec | quote }} {{- else if .Values.config.oauth.enabled }} VITE_BACKEND_AUTH_TYPE: "oauth" AUTH_TYPE: "oauth" diff --git a/charts/langsmith/values.yaml b/charts/langsmith/values.yaml index 38ca7d5..9dcddd5 100644 --- a/charts/langsmith/values.yaml +++ b/charts/langsmith/values.yaml @@ -17,23 +17,23 @@ images: aceBackendImage: repository: "docker.io/langchain/langsmith-ace-backend" pullPolicy: IfNotPresent - tag: "0.9.3" + tag: "0.9.7" backendImage: repository: "docker.io/langchain/langsmith-backend" pullPolicy: IfNotPresent - tag: "0.9.3" + tag: "0.9.7" frontendImage: repository: "docker.io/langchain/langsmith-frontend" pullPolicy: IfNotPresent - tag: "0.9.3" + tag: "0.9.7" platformBackendImage: repository: "docker.io/langchain/langsmith-go-backend" pullPolicy: IfNotPresent - tag: "0.9.3" + tag: "0.9.7" playgroundImage: repository: "docker.io/langchain/langsmith-playground" pullPolicy: IfNotPresent - tag: "0.9.3" + tag: "0.9.7" postgresImage: repository: "docker.io/postgres" pullPolicy: IfNotPresent @@ -97,6 +97,8 @@ config: # -- Client secret requires authType to be 'mixed' and hostname to be present oauthClientSecret: "" oauthIssuerUrl: "" + oauthScopes: "email,profile,openid" # Comma-separated list of scopes. We require at least 'email', 'profile', and 'openid'. Some OIDC providers require the 'offline_access' scope for refresh tokens. + oauthSessionMaxSec: "86400" # 24 hours. Maximum age of a session in seconds. Your session will attempt to refresh until the max age at which point you will be logged out. # -- TTL configuration # Optional. Used to set TTLS for longlived and shortlived objects. ttl: