Skip to main content

named_error

Function named_error 

Source
pub(super) async fn named_error(
    response: Response,
    name: &str,
) -> Result<Response, Response>
Expand description

An error answer from Anthropic (a rejected key, a used-up credit), with the account’s name added to its message, so the failure the agent shows names the account and nothing of the key. Other answers are returned as they are. Err holds the finished answer, Ok the response to relay as it is.