MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / prevVisibleStep

Method prevVisibleStep

tui/modify.go:281–288  ·  view source on GitHub ↗

prevVisibleStep returns the previous non-skipped step. Returns -1 if none.

(from modifyStep)

Source from the content-addressed store, hash-verified

279
280// prevVisibleStep returns the previous non-skipped step. Returns -1 if none.
281func (m *modifyModel) prevVisibleStep(from modifyStep) modifyStep {
282 for s := from - 1; s >= modifyStepGPU; s-- {
283 if !m.skippedSteps[s] {
284 return s
285 }
286 }
287 return -1
288}
289
290type modifyPricingMsg struct {
291 rates map[string]float64

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected