Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TieredPricing ¶
type TieredPricing struct {
// contains filtered or unexported fields
}
func NewTieredPricing ¶
func NewTieredPricing(model string) *TieredPricing
func (*TieredPricing) AddTier ¶
func (p *TieredPricing) AddTier(tier Tier)
func (*TieredPricing) Calculate ¶
func (p *TieredPricing) Calculate(inputTokens, outputTokens int64) float64
func (*TieredPricing) GetTiers ¶
func (p *TieredPricing) GetTiers() []Tier
Click to show internal directories.
Click to hide internal directories.