Skip to main content

Module error_classification

Module error_classification 

Source
Expand description

错误分类逻辑:将 HTTP 状态码和提供商错误映射到 V2 标准错误码。

Error classification logic.

Functions§

classify_error_from_response
Classify an error from HTTP status and optional response body.
classify_to_standard_code
Maps an error class name string to the corresponding AI-Protocol V2 standard error code.