Documentation
¶
Overview ¶
Package models provides utilities for working with LLM models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateContextWindow ¶
EstimateContextWindow returns an estimated context window size based on model name. Falls back to config.DefaultContextWindow when no matcher pattern hits.
func LookupContextWindow ¶ added in v0.104.1
LookupContextWindow returns the matched context window size and whether a matcher pattern actually hit. Callers that need to distinguish a real match from the default fallback (e.g. the model picker, which renders "?" for unknown models) should use this instead of EstimateContextWindow.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.