Repository navigation
Set the node's own prices against its cost on the Energy page - #6
Conversation
With --btc-price, the price of one bitcoin in the tariff's currency, the plugin also reports both costs in msat per million output tokens, the unit sellers price in. The Energy page reads the node's own output price for each model it serves from the payment block of /v1/models, every 30 s, and marks it above cost, paying only if the machine runs anyway, or below cost, next to the cheapest other seller of the same model.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Live run on Windows 11, RTX 4070 Ti: the official v0.78.0-preview.40959817943.1 binary, this branch's packaged zip installed with
|
The Energy page sets the node's own prices against its cost (#6).
The Energy page now sets the node's own price against what serving costs it, which is the part of mesh-llm#2320 step 2 that
wallet pricingdoesn't show today. No host change: sellers price in msat per million tokens, and the node's own offers are already in/v1/models.--btc-pricegives the price of one bitcoin in the tariff's currency. With it, the snapshot also carriesbtc_price,cost_msat_per_1m_output_tokensandcost_msat_per_1m_output_tokens_total. The rate is set by hand: the plugin asks no outside service for it. It needs--electricity-price-per-kwh, and a repeated or non-positive value stops the plugin at startup, like the other flags.bundle/energy.jsreads thepaymentblock of/v1/modelsevery 30 s (the console's chat reads the same block). For each model the node serves (an offer withlocal: true), it shows the node's own output price, the cheapest other seller of that model, and a verdict: above cost (above the idle-included cost), pays only if the machine runs anyway (between the two costs), or below cost. Without--btc-pricethe prices show in msat with a hint to set it. A failed listing leaves the energy figures and the last prices in place.Checked locally: fmt, clippy
-D warnings, 32 Rust tests (new: flag parsing and refusals, the msat conversion, the snapshot fields appearing only with--btc-price), and the page in a harness with a fake/api/statusand/v1/models: four served models hit each verdict, a model served only elsewhere is left out, and without--btc-pricethe hint shows. No console errors.The live run on the RTX 4070 Ti is waiting for the GPU to be free; I'll add it here.