pricing

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pricing exposes the shared price list to local application code.

Index

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 CompareVersions(a, b string) int

func Cost

func Cost(model Model, usage Usage) (float64, bool)

func EmbeddedDocument

func EmbeddedDocument() []byte

func Install

func Install(list *List)

func LoadPersisted

func LoadPersisted(dir string) error

func PublishedKey

func PublishedKey() ed25519.PublicKey

func Refresh

func Refresh(ctx context.Context, dir string) error

func UnpricedReason

func UnpricedReason(model Model) string

func Version

func Version() string

Types

type Document

type Document = shared.Document

func ParseDocument

func ParseDocument(data []byte) (Document, error)

type Entry

type Entry = shared.Entry

type Family

type Family = shared.Family

type List

type List = shared.List

func Active

func Active() *List

func Embedded

func Embedded() *List

func NewList

func NewList(document Document) *List

func Newest

func Newest(a, b *List) *List

func ParsePublished

func ParsePublished(data, signature []byte, key ed25519.PublicKey) (*List, error)

type Model

type Model = shared.Model

func Normalize

func Normalize(raw, vendor string) Model

type Rate

type Rate = shared.Rate

func Rates

func Rates(model Model) (Rate, bool)

type RateSet

type RateSet = shared.RateSet

type Source

type Source = shared.Source

func CurrentSource

func CurrentSource() Source

type Speed

type Speed = shared.Speed

type Tier

type Tier = shared.Tier

type Usage

type Usage = shared.Usage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL