Documentation
¶
Overview ¶
Package promptdiff computes structural and token diffs between two prompt versions, with README-matching output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CostLine ¶
type CostLine struct {
Model string
Old float64
New float64
Delta float64
// Approx is true when Model has no known BPE vocabulary, so the token
// counts behind Old/New/Delta are approximated with cl100k_base rather
// than the model's real tokenizer.
Approx bool
}
CostLine is one model row of the cost projection.
Click to show internal directories.
Click to hide internal directories.