Documentation
¶
Overview ¶
Package pricing exposes the shared price list to local application code.
Index ¶
- Constants
- func CompareVersions(a, b string) int
- func Cost(model Model, usage Usage) (float64, bool)
- func EmbeddedDocument() []byte
- func Install(list *List)
- func LoadPersisted(dir string) error
- func PublishedKey() ed25519.PublicKey
- func Refresh(ctx context.Context, dir string) error
- func UnpricedReason(model Model) string
- func Version() string
- type Document
- type Entry
- type Family
- type List
- type Model
- type Rate
- type RateSet
- type Source
- type Speed
- type Tier
- type Usage
Constants ¶
View Source
const FamilyClaude = shared.FamilyClaude
View Source
const FamilyGPT = shared.FamilyGPT
View Source
const FamilyGemini = shared.FamilyGemini
View Source
const FamilyGrok = shared.FamilyGrok
View Source
const FamilyUnknown = shared.FamilyUnknown
View Source
const FormatVersion = shared.FormatVersion
View Source
const OriginCached = shared.OriginCached
View Source
const OriginEmbedded = shared.OriginEmbedded
View Source
const OriginFetched = shared.OriginFetched
View Source
const PublishedURL = shared.PublishedURL
View Source
const ReasonBilledByCursor = shared.ReasonBilledByCursor
View Source
const SourceLiteLLM = shared.SourceLiteLLM
View Source
const SourceManual = shared.SourceManual
View Source
const SpeedFast = shared.SpeedFast
View Source
const SpeedStandard = shared.SpeedStandard
View Source
const SpeedUltrafast = shared.SpeedUltrafast
View Source
const SpeedUnknown = shared.SpeedUnknown
View Source
const VendorClaudeCode = shared.VendorClaudeCode
View Source
const VendorCodex = shared.VendorCodex
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
func EmbeddedDocument ¶
func EmbeddedDocument() []byte
func LoadPersisted ¶
func PublishedKey ¶
func UnpricedReason ¶
Types ¶
type Document ¶
func ParseDocument ¶
Click to show internal directories.
Click to hide internal directories.