Openrouter_api.Api_error
API error response from OpenRouter.
module Code : sig ... end
module Details : sig ... end
type t = {
error : Details.t;
}
val t_of_jsonaf : Ppx_jsonaf_conv_lib.Jsonaf_kernel.t -> t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val of_json_or_body : body_string:string -> Jsonaf.t -> string
Try to parse error details from JSON, falling back to raw body if parsing fails.