mirror of
https://github.com/xming521/WeClone.git
synced 2026-11-25 07:57:03 +08:00
The build page counts the requests a build will send from the chats, without calling the model. A trial sends 10 real windows (the answers are kept for the build) and turns that into cost, tokens and time, priced from a bundled snapshot of LiteLLM's price table: the service's own price for a known host, else the median across providers, else no money. A price with off-peak hours is taken for the periods a build started now would run in. Starting a build waits for a trial of the saved settings, unless nothing is left to try. While a build runs, the page shows what it has spent and what is left, per stage too, and warns when spending runs far past the estimate. Codex builds stop once the account's usage limit is met, keeping the answers already paid for. The web build reads only the chats uploaded for it: the page clears earlier uploads when it opens, and a successful build clears its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>