Versions in this module Expand all Collapse all v1 v1.30.1 Mar 11, 2026 v1.30.0 Mar 9, 2026 Changes in this version + const CacheFileName + const ModelsDevAPIURL + func ModelSupportsReasoning(ctx context.Context, modelID string) bool + type CachedData struct + CachedAt time.Time + Database Database + LastRefresh time.Time + type Cost struct + CacheRead float64 + CacheWrite float64 + Input float64 + Output float64 + type Database struct + Providers map[string]Provider + UpdatedAt time.Time + type Limit struct + Context int + Output int64 + type Modalities struct + Input []string + Output []string + type Model struct + Attachment bool + Cost *Cost + Family string + ID string + Knowledge string + LastUpdated string + Limit Limit + Modalities Modalities + Name string + OpenWeights bool + Reasoning bool + ReleaseDate string + Temperature bool + ToolCall bool + type Provider struct + API string + Doc string + Env []string + ID string + Models map[string]Model + NPM string + Name string + type Store struct + func NewDatabaseStore(db *Database) *Store + func NewStore() (*Store, error) + func (s *Store) GetDatabase(ctx context.Context) (*Database, error) + func (s *Store) GetModel(ctx context.Context, id string) (*Model, error) + func (s *Store) GetProvider(ctx context.Context, providerID string) (*Provider, error) + func (s *Store) ResolveModelAlias(ctx context.Context, providerID, modelName string) string