Documentation
¶
Index ¶
Constants ¶
const ( TierOpus = "opus" TierSonnet = "sonnet" TierHaiku = "haiku" // TierFable is Claude Code's top tier. It ranks above Opus, so a fable // request that reaches the pool without a mapped slot lands on the // strongest model rather than falling through to the Sonnet default. TierFable = "fable" )
Variables ¶
This section is empty.
Functions ¶
func MapModel ¶
MapModel picks a concrete upstream model for a Claude-style request.
Precedence:
- A single configuredModel overrides mapping entirely.
- A comma-separated configuredModel is treated as the exclusive candidate pool.
- Otherwise availableModels is the candidate pool.
Matching order within the pool: exact (case-insensitive) name, then tier heuristics, then the first pool entry. An empty pool returns "" — callers must not invent a vendor-specific default such as deepseek-chat.
Types ¶
This section is empty.