Skip to main content

sdk_error_message

Function sdk_error_message 

Source
pub fn sdk_error_message(error: &Value) -> String
Expand description

The message of an error the OpenAI SDK raises without a status, such as an error payload inside a stream: its message, or the error as JSON.