Documentation
¶
Index ¶
Constants ¶
const OpenRouterCacheTTL = time.Hour
OpenRouterCacheTTL is the on-disk cache lifetime for OpenRouter model listings.
const OpenRouterURL = "https://openrouter.ai/api/v1/models"
OpenRouterURL is the public OpenRouter models endpoint (no auth required).
Variables ¶
var TrustedProviders = []string{"anthropic", "openai", "google"}
TrustedProviders lists the cloud providers shown in `cell models`. Restricted to the major frontier labs to keep the list focused.
Functions ¶
func FetchProviderModels ¶
FetchProviderModels fetches all models from OpenRouter and converts them to ollama.Model so they can be ranked alongside local models. Results are cached on-disk for 1 hour.
func FilterLatestGen ¶
FilterLatestGen keeps only the highest-version model per family. Family is derived by stripping trailing version numbers from the model name part. E.g. "claude-opus-4-5" and "claude-opus-4" → family "claude-opus", keep "claude-opus-4-5".
Types ¶
This section is empty.