From 5844ef56110e96c3aebbbfe65be52f06605b0106 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sun, 4 Oct 2026 21:50:15 +0700 Subject: [PATCH] refactor(goclaw): comment out optional MiniMax and trace env vars --- goclaw/.env.example | 12 ++++++------ goclaw/README.md | 9 ++++----- goclaw/compose.yml | 8 ++++---- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/goclaw/.env.example b/goclaw/.env.example index 3d08333..167790e 100644 --- a/goclaw/.env.example +++ b/goclaw/.env.example @@ -21,11 +21,11 @@ POSTGRES_DB=goclaw # Apply schema migrations and data hooks on startup. GOCLAW_AUTO_UPGRADE=true -# MiniMax keys, for the MiniMax LLM provider and text-to-speech. Leave empty -# when MiniMax is not used. -GOCLAW_MINIMAX_API_KEY= -GOCLAW_TTS_MINIMAX_API_KEY= -GOCLAW_TTS_MINIMAX_GROUP_ID= +# MiniMax keys, for the MiniMax LLM provider and text-to-speech. Uncomment +# here and in compose.yml to use MiniMax. +# GOCLAW_MINIMAX_API_KEY= +# GOCLAW_TTS_MINIMAX_API_KEY= +# GOCLAW_TTS_MINIMAX_GROUP_ID= # Set to 1 to log full LLM request and response bodies. -GOCLAW_TRACE_VERBOSE=0 +# GOCLAW_TRACE_VERBOSE=0 diff --git a/goclaw/README.md b/goclaw/README.md index 8c50bef..e50f5bb 100644 --- a/goclaw/README.md +++ b/goclaw/README.md @@ -47,9 +47,9 @@ itself is not used here. | `GOCLAW_ENCRYPTION_KEY` | — | AES-256-GCM key for stored provider keys | | `POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB` | `goclaw` | Database credentials, read by both containers | | `GOCLAW_AUTO_UPGRADE` | `true` | Apply schema migrations and data hooks on startup | -| `GOCLAW_MINIMAX_API_KEY` | empty | MiniMax LLM provider key | -| `GOCLAW_TTS_MINIMAX_API_KEY` / `GOCLAW_TTS_MINIMAX_GROUP_ID` | empty | MiniMax text-to-speech credentials | -| `GOCLAW_TRACE_VERBOSE` | `0` | Log full LLM request and response bodies | +| `GOCLAW_MINIMAX_API_KEY` | optional | MiniMax LLM provider key | +| `GOCLAW_TTS_MINIMAX_API_KEY` / `GOCLAW_TTS_MINIMAX_GROUP_ID` | optional | MiniMax text-to-speech credentials | +| `GOCLAW_TRACE_VERBOSE` | optional | Set to `1` to log full LLM request and response bodies | `GOCLAW_AUTO_UPGRADE` defaults to `true`, the value upstream recommends for Docker. The image entrypoint already runs `goclaw upgrade` before `serve`, but @@ -58,8 +58,7 @@ any pending migrations itself rather than stopping on a schema check. The MiniMax variables are the one case where a provider key comes from the environment rather than the dashboard: GoClaw reads them directly for the -MiniMax provider and its text-to-speech. Leave them empty when MiniMax is not -used. +MiniMax provider and its text-to-speech. `GOCLAW_HOST`, `GOCLAW_PORT`, `GOCLAW_CONFIG` and `GOCLAW_SKILLS_DIR` are set in `compose.yml` rather than here — they are properties of this layout, not of diff --git a/goclaw/compose.yml b/goclaw/compose.yml index 6e12c9e..a83133e 100644 --- a/goclaw/compose.yml +++ b/goclaw/compose.yml @@ -14,10 +14,10 @@ services: - GOCLAW_CONFIG=/app/data/config.json - GOCLAW_SKILLS_DIR=/app/data/skills - GOCLAW_AUTO_UPGRADE=${GOCLAW_AUTO_UPGRADE:-true} - - GOCLAW_MINIMAX_API_KEY=${GOCLAW_MINIMAX_API_KEY:-} - - GOCLAW_TTS_MINIMAX_API_KEY=${GOCLAW_TTS_MINIMAX_API_KEY:-} - - GOCLAW_TTS_MINIMAX_GROUP_ID=${GOCLAW_TTS_MINIMAX_GROUP_ID:-} - - GOCLAW_TRACE_VERBOSE=${GOCLAW_TRACE_VERBOSE:-0} + # - GOCLAW_MINIMAX_API_KEY=${GOCLAW_MINIMAX_API_KEY:-} + # - GOCLAW_TTS_MINIMAX_API_KEY=${GOCLAW_TTS_MINIMAX_API_KEY:-} + # - GOCLAW_TTS_MINIMAX_GROUP_ID=${GOCLAW_TTS_MINIMAX_GROUP_ID:-} + # - GOCLAW_TRACE_VERBOSE=${GOCLAW_TRACE_VERBOSE:-0} volumes: - goclaw-data:/app/data - goclaw-workspace:/app/workspace