Documentation
¶
Overview ¶
Package models exposes the embedded catalog of supported model identifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterByProvider ¶
FilterByProvider returns provider/model pairs for the requested provider.
func HasProvider ¶
HasProvider reports whether the provider exists in the catalog.
func ProviderOf ¶
ProviderOf extracts the provider prefix from a provider/model identifier.
Types ¶
type Entry ¶
type Entry struct {
ID string `json:"id"`
InputTokens int `json:"input_tokens"`
OutputTokens int `json:"output_tokens"`
SupportsImageInput bool `json:"supports_image_input"`
// InputCostPerMTok and OutputCostPerMTok are the model's USD price per
// million input and output tokens, when known.
InputCostPerMTok float64 `json:"input_cost_per_mtok,omitempty"`
OutputCostPerMTok float64 `json:"output_cost_per_mtok,omitempty"`
}
Entry describes a supported API model and its key token/modal capability limits.
func Entries ¶
func Entries() []Entry
Entries returns the structured model catalog in catalog order.
func EntriesByProvider ¶
EntriesByProvider returns structured catalog entries for the requested provider.