Documentation ¶ Index ¶ type Validator func NewValidator(cc counterCache, scc storageCounterCache, openAiCostPrefix string, ...) *Validator func (v *Validator) Validate(k *key.ResponseKey, promptCost float64, model string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Validator ¶ type Validator struct { // contains filtered or unexported fields } func NewValidator ¶ func NewValidator( cc counterCache, scc storageCounterCache, openAiCostPrefix string, openAiTotalCostPrefix string, rateLimitPrefix string, ) *Validator func (*Validator) Validate ¶ func (v *Validator) Validate(k *key.ResponseKey, promptCost float64, model string) error Source Files ¶ View all Source files validator.go Click to show internal directories. Click to hide internal directories.