Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseLLMURL = "https://basellm.github.io/llm-metadata/api/newapi/ratio_config-v1-base.json" ModelsDevURL = "https://models.dev/api.json" )
Variables ¶
This section is empty.
Functions ¶
func ConvertBaseLLM ¶
func ConvertBaseLLM(data []byte) (map[string]ModelPricing, error)
func ConvertModelsDev ¶
func ConvertModelsDev(data []byte) (map[string]ModelPricing, error)
Types ¶
type MatchResult ¶
type MatchResult struct {
Pricing ModelPricing
MatchType string // "exact" or "fuzzy"
MatchedName string
}
func Match ¶
func Match(modelName string, source map[string]ModelPricing) *MatchResult
Click to show internal directories.
Click to hide internal directories.