cache

package
v0.0.82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelCacheTTL = 30 * time.Minute
)

Variables

This section is empty.

Functions

func IsCacheValid

func IsCacheValid(cache *ModelCache) bool

func WriteModelCache

func WriteModelCache(provider string, models []string) error

Types

type ModelCache

type ModelCache struct {
	Models    []string  `json:"models"`
	FetchedAt time.Time `json:"fetched_at"`
}

func ReadModelCache

func ReadModelCache(provider string) (*ModelCache, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL