Documentation
¶
Index ¶
- Constants
- Variables
- type Breakers
- type Budget
- type Chain
- type ChainOption
- type Classifier
- type Completer
- type CostRecord
- type CostTracker
- type Entry
- type MatchKind
- type ModelSummary
- type Price
- type PriceLookup
- type PriceStatus
- type PriceTable
- type Request
- type StatusError
- type TokenAccountant
- type TokenCounter
- type Usage
Constants ¶
View Source
const ( DefaultBreakerCooldown = upstream.DefaultBreakerCooldown DefaultBreakerTrip = upstream.DefaultBreakerTrip MatchExact = upstream.MatchExact MatchNone = upstream.MatchNone MatchNormalized = upstream.MatchNormalized PricePriced = upstream.PricePriced PriceUnpriced = upstream.PriceUnpriced )
Variables ¶
View Source
var ( ErrBudgetExhausted = upstream.ErrBudgetExhausted ErrCircuitOpen = upstream.ErrCircuitOpen ErrEmptyChain = upstream.ErrEmptyChain ErrPriceUnknown = upstream.ErrPriceUnknown ClassifyStatus = upstream.ClassifyStatus DefaultPriceTable = upstream.DefaultPriceTable LookupPrice = upstream.LookupPrice LookupPriceStrict = upstream.LookupPriceStrict NewBreakers = upstream.NewBreakers NewBudget = upstream.NewBudget NewChain = upstream.NewChain NewCostTracker = upstream.NewCostTracker NewCostTrackerWithTable = upstream.NewCostTrackerWithTable NewPriceTable = upstream.NewPriceTable PriceOf = upstream.PriceOf //nolint:staticcheck // 上游已弃用:改用 PriceTable.Lookup PriceOfMatched = upstream.PriceOfMatched //nolint:staticcheck // 上游已弃用:改用 PriceTable.Lookup WithBackoff = upstream.WithBackoff WithBreaker = upstream.WithBreaker WithBudget = upstream.WithBudget WithClassifier = upstream.WithClassifier WithCompleter = upstream.WithCompleter WithRetries = upstream.WithRetries WithTokenCounter = upstream.WithTokenCounter WithTracker = upstream.WithTracker )
Functions ¶
This section is empty.
Types ¶
type ChainOption ¶
type ChainOption = upstream.ChainOption
type Classifier ¶
type Classifier = upstream.Classifier
type CostRecord ¶
type CostRecord = upstream.CostRecord
type CostTracker ¶
type CostTracker = upstream.CostTracker
type ModelSummary ¶
type ModelSummary = upstream.ModelSummary
type PriceLookup ¶
type PriceLookup = upstream.PriceLookup
type PriceStatus ¶
type PriceStatus = upstream.PriceStatus
type PriceTable ¶
type PriceTable = upstream.PriceTable
type StatusError ¶
type StatusError = upstream.StatusError
type TokenAccountant ¶
type TokenAccountant = upstream.TokenAccountant
type TokenCounter ¶
type TokenCounter = upstream.TokenCounter
Click to show internal directories.
Click to hide internal directories.