Skip to main content

Module error_detection

Module error_detection 

Source
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.