From 3db44be050e4ca7618e15ab9da7f94d1c6294b8a Mon Sep 17 00:00:00 2001 From: Khoa M Ngo Date: Sat, 18 Jul 2026 20:36:03 -0400 Subject: [PATCH] docs: fix stale `truss chains deploy` references and inaccurate watch prose The `truss chains deploy` command no longer exists; the chains group only exposes push/watch/init. Update the two remaining references to `truss chains push`: - truss-chains/examples/audio-transcription/transcribe.py (example comment) - truss/remote/baseten/utils/status.py (docstring) Also remove the incorrect claim in README.md that `uvx truss watch` creates a production deployment. `watch` live-patches the development deployment; it does not promote to production. Docs-only change; no runtime behavior affected. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01K8mU6a4n9CCggnRJVv2Wpa --- README.md | 9 --------- truss-chains/examples/audio-transcription/transcribe.py | 2 +- truss/remote/baseten/utils/status.py | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 54b829240..adf47f170 100644 --- a/README.md +++ b/README.md @@ -204,15 +204,6 @@ If you stopped the watch session, you can re-attach with: uvx truss watch ``` -This creates a production deployment with its own endpoint. The API URL changes from `/environments/development/` to `/environments/production/`: - -```python -client = OpenAI( - api_key=os.environ["BASETEN_API_KEY"], - base_url="https://model-{model_id}.api.baseten.co/environments/production/sync/v1", -) -``` - Your model ID is the string after `/models/` in the logs URL from `uvx truss push`. You can also find it in your [Baseten dashboard](https://app.baseten.co/models/). # IDE support diff --git a/truss-chains/examples/audio-transcription/transcribe.py b/truss-chains/examples/audio-transcription/transcribe.py index 85fb84982..7b29c51d3 100644 --- a/truss-chains/examples/audio-transcription/transcribe.py +++ b/truss-chains/examples/audio-transcription/transcribe.py @@ -15,7 +15,7 @@ ) -# Deploy the Whisper model with `truss chains deploy whisper_chainlet.py`: +# Deploy the Whisper model with `truss chains push whisper_chainlet.py`: # And insert the predict URL here. You can get it from the CLI output or # the status page, e.g. "https://model-6wgeygoq.api.baseten.co/production/predict" diff --git a/truss/remote/baseten/utils/status.py b/truss/remote/baseten/utils/status.py index a8ff75d2b..ec65129ef 100644 --- a/truss/remote/baseten/utils/status.py +++ b/truss/remote/baseten/utils/status.py @@ -31,7 +31,7 @@ def get_displayable_status(status: str) -> str: """ TODO: Remove this method once Chains is supported in the REST API - This is used by the `truss chains deploy` command right now to + This is used by the `truss chains push` command right now to print the right status. Once Chains are supported by the REST API, the Baseten REST API will return status strings matching the ones here, so we don't need to do any mapping.