Documentation
¶
Index ¶
Constants ¶
View Source
const ( TierOpus = "opus" TierSonnet = "sonnet" TierHaiku = "haiku" )
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.
Click to show internal directories.
Click to hide internal directories.