Skip to main content

Module error_handling

Module error_handling 

Source
Expand description

Centralized error handling for LLM providers Eliminates duplicate error handling code across providers

Functions§

extract_human_error_message
Extract the most human-readable error message from a provider’s JSON error body.
format_http_error
Format HTTP error with status code and message
handle_gemini_http_error
Handle HTTP response errors for Gemini provider