M3: model pricing and per-step cost accumulation
Extends the model catalog with per-token pricing and accumulates cost per engine step, threading the running total through the store and up into harness-app so it can be surfaced in the UI.
This commit is contained in:
@@ -254,6 +254,8 @@ impl EngineHandle {
|
||||
temperature: None,
|
||||
max_steps: DEFAULT_MAX_STEPS,
|
||||
instructions: self.inner.config.instructions.clone(),
|
||||
// Populated from models.dev metadata in the follow-up increment.
|
||||
cost: None,
|
||||
};
|
||||
|
||||
// Reserve the run slot *before* spawning. If we inserted after spawning, a run that
|
||||
|
||||
Reference in New Issue
Block a user