Expand description
OpenAI provider error handling and formatting utilities.
This module contains error detection, formatting, and recovery logic for OpenAI API interactions.
Functionsยง
- fallback_
model_ if_ not_ found - Provide a fallback model when the requested model is unavailable.
- format_
openai_ error - Format an OpenAI API error with request metadata.
- is_
flex_ service_ tier_ unsupported - Detect if an OpenAI API error indicates
service_tier=flexis unsupported. - is_
model_ not_ found - Detect if an OpenAI API error indicates the model was not found or is inaccessible.
- is_
responses_ api_ unsupported - Detect if an error indicates Responses API is not supported for this model/endpoint.