Expand description
Provider error classification and normalization.
Functionsยง
- is_
retryable_ provider_ error - Classifies provider errors as retryable (rate limit, timeout, 5xx) vs permanent.
- normalize_
provider_ alias - Normalizes provider aliases (zhipuai/z-ai -> zai).
- smart_
switch_ model_ key - Normalizes a model reference for use as a key in the attempted models set.