Skip to content

Billable time ​

Billable time is the time a session's model spends working on your requests. Hapimatic stores every stretch of it as it happens, so the figure billed for a session can be checked against what was recorded, day by day.

What counts ​

  • A turn's time counts from the moment the prompt is submitted to the moment the model stops, including the tools the model runs and waits on. Nothing after the stop counts.
  • Time spent waiting on a person in the middle of a turn does not count: a permission prompt or a question that needs an answer pauses the count until it is answered.
  • A turn that ends without a stop (the program crashed, or the connection was lost) counts up to its last recorded activity. It is never estimated.
  • Every stretch of counted time is stored, with when it started, when it ended and why it ended.

When it takes effect ​

The definition above takes effect on a computer where billable intervals are switched on: HAPI_BILLABLE_INTERVALS=on in the server's environment, then a restart of the server. Until then the session timer counts as it did before, waits on a person included, and the stored stretches are recorded beside it so the two can be compared.

What the session timer shows ​

Once billable intervals are switched on, the session's Processing time is the sum of its stored stretches plus any carried-forward amount (below). The live count ticks only while the session is billable, so it stops while the model waits on you. The totals read Total processing time.

What pauses it ​

  • A permission prompt, or a question the model asks you, until it is answered.
  • A usage limit that stops the model until the limit resets.

A crash or a server restart ​

When a session's program crashes or the server restarts in the middle of a turn, the stretch is cut at its last recorded activity. Nothing is estimated for the time in between, and the turn's next stretch starts when its activity is seen again.

Which figure is billed ​

A session's billed amount is its total (its closed stretches plus any carried-forward amount) less what was already logged, entered on the day it is logged. A turn still running when a day's time is logged is counted whole after it ends, so its minutes appear in the next entry. Where billable intervals are not switched on, the session timer stays the basis.

The timer's clock controls ​

The timer's clock controls (Adjust, Set, Reset, Disable, Enable and Undo) change the Time Log only. They never change the session timer or billable time.

A long silent stretch ​

A long silent stretch is flagged for review, not cut. When a counted stretch contains more than 30 minutes with no message from the session, the daily check lists it for a person to look at, and the time stays counted until someone decides otherwise.

Earlier time ​

Earlier time is recorded as carried forward. A session that existed before billable intervals were switched on keeps its earlier total as one carried-forward amount, with no stretch history and no date.

Days ​

Billable time is attributed to days in the configured time-log timezone, the same one the Time Log uses.

The self-hosted core is licensed under AGPL-3.0.