Documentation
¶
Index ¶
- func EstimateCostWithCostMap(model string, tks int, div float64, costMap map[string]float64) (float64, error)
- func EstimateTotalCostWithCostMaps(model string, ptks, ctks int, div float64, promptCostMap map[string]float64, ...) (float64, error)
- type CostMap
- type Provider
- type Setting
- type UpdateSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateCostWithCostMap ¶ added in v1.28.0
Types ¶
type Setting ¶ added in v1.0.0
type Setting struct {
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
Provider string `json:"provider"`
Setting map[string]string `json:"setting,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
AllowedModels []string `json:"allowedModels"`
CostMap *CostMap `json:"costMap"`
}
Click to show internal directories.
Click to hide internal directories.