Skip to content

ThinkWatch Core 0.76.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 07:09
· 46 commits to main since this release

This release makes /live report how fast running requests are generating right now, so a client can show a live speed during a long request, and names a broken answer body instead of reporting a decoding error.

Upgrade notes

  • The control-plane protocol version is now 49. ThinkWatch Lite must be upgraded together with core: a Lite release with protocol 48 does not connect to 0.76.0, and the other way round.
  • The request store's schema and the configuration are unchanged; nothing is cleared.
  • For crates that embed the gateway: Ending::streaming takes the gateway's pace table, AppState has a pace field, tw_observe::Meter and EventBus::meter are new, and tw_engine::TextTokens is public. The public API of tw_guard is unchanged.

Live generation speed. /live used to give the speed of requests that finished in the last minute, so it had nothing to show while a long request ran.

  • The gateway keeps reading a successful stream after its first token and estimates the output as it arrives: text, reasoning text and tool arguments, with the same rule as the input estimate.
  • The estimate is multiplied by a ratio per upstream and model. Each streaming request that ends with reported usage updates that ratio (moving average, bounded between 0.5 and 2; skipped when reasoning was hidden). Gemini's cumulative usage in the stream is used when it is higher.
  • LiveView.tokens_per_sec is the total of the running requests over the last 3 seconds: null when nothing runs, 0 when requests run but none is generating yet.
  • RunningView has tokens_per_sec and output_tokens for each running request, null before the first token and for non-streaming requests.
  • The speed recorded for a finished request is unchanged and still uses the usage the upstream reports.

Broken answer bodies. An upstream that hung up in the middle of an answer was reported as "error decoding response body". Such failures now have their own code, gw.upstream.body_broken, with the causes spelled out, and gw.upstream.forward_failed carries every cause, with the URL reduced to its origin.

Downloads

Platform Binary Archive for server installation
Linux, x86_64 twcore-x86_64-unknown-linux-gnu twcore-x86_64-unknown-linux-gnu.tar.gz
Linux, aarch64 twcore-aarch64-unknown-linux-gnu twcore-aarch64-unknown-linux-gnu.tar.gz
macOS, Apple silicon twcore-aarch64-apple-darwin —
Windows, x64 twcore-x86_64-pc-windows-msvc.exe —
Windows, ARM64 twcore-aarch64-pc-windows-msvc.exe —

Each file is published with a .sha256 file beside it. A Linux archive contains twcore, the systemd unit twcore.service and LICENSE. ThinkWatch Lite includes its own copy of twcore; the files here are for running core separately, such as on a server.

Server installation

On Linux (x86_64 or aarch64), the install script sets up twcore as a systemd service. This installs 0.76.0:

curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh -s -- --version 0.76.0

An installation made with the script switches to 0.76.0 with:

sudo twcore upgrade --version 0.76.0 --restart

Configuration, the remote control port and connecting ThinkWatch Lite are described in docs/server.md.

Verifying a download

A .sha256 file holds the SHA-256 of the file followed by its name. With both files in the current directory, on Linux:

sha256sum -c twcore-x86_64-unknown-linux-gnu.tar.gz.sha256

On macOS:

shasum -a 256 -c twcore-aarch64-apple-darwin.sha256

On Windows, in PowerShell, the following prints True when the binary matches:

(Get-FileHash .\twcore-x86_64-pc-windows-msvc.exe).Hash -eq (Get-Content .\twcore-x86_64-pc-windows-msvc.exe.sha256).Split()[0]

The install script and twcore upgrade check the SHA-256 themselves.

What's Changed

  • Name a broken answer body instead of "error decoding response body" by @fylorn in #344
  • Test: leave the slot-wait case room under a busy runner by @fylorn in #345
  • Live speed: /live reports the current generation speed by @fylorn in #346
  • v0.76.0 by @fylorn in #347

Full Changelog: v0.75.0...v0.76.0