Expand description
Maps HTTP status codes and OpenAI error bodies to tt_shared::ProviderError.
OpenAI error body shape:
{ "error": { "message": "...", "type": "...", "code": "...", "param": null } }Functions§
- map_
reqwest_ error - Map a
reqwest::Error(network-level failure) toProviderError. - map_
response_ error - Map an OpenAI HTTP status + raw body text into a
ProviderError.